Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 174.4 kB / 16.45 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.4 MB / 222.6 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006905/0.0006906, allocations: 86.31 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06683/0.06683, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.0004249, allocations: 12 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.08572, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.001383/0.08714, allocations: 1.27 MB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006118/0.08777, allocations: 0.4883 MB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.338e-05/0.08786, allocations: 7.938 kB / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.736e-05/0.08789, allocations: 0 / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.08802, allocations: 11.92 kB / 444.8 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.08825, allocations: 47.89 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.087e-05/0.08833, allocations: 43.8 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.366e-05/0.08842, allocations: 12.17 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.393e-05/0.08848, allocations: 15.94 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.879e-05/0.08853, allocations: 19.91 kB / 445 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.08856, allocations: 3.938 kB / 445 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/0.08858, allocations: 4 kB / 445 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.08861, allocations: 15.92 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.84e-05/0.08863, allocations: 37.64 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.929e-05/0.0887, allocations: 31.94 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.08871, allocations: 0 / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.08872, allocations: 0 / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.08872, allocations: 0 / 445 MB, free: 13.77 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000395/0.08912, allocations: 375.3 kB / 445.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.08916, allocations: 12.03 kB / 445.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.911e-05/0.0892, allocations: 7.906 kB / 445.4 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.08935, allocations: 198.7 kB / 445.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.327e-06/0.08937, allocations: 4 kB / 445.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.08938, allocations: 3.938 kB / 445.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.08964, allocations: 117.9 kB / 445.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.08966, allocations: 4 kB / 445.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.08968, allocations: 0 / 445.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.08969, allocations: 0 / 445.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.977e-05/0.08977, allocations: 31.86 kB / 445.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002436/0.09002, allocations: 274.5 kB / 446 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.441e-05/0.09013, allocations: 75.78 kB / 446.1 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.584e-05/0.09019, allocations: 38.62 kB / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.09022, allocations: 3.984 kB / 446.2 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.09024, allocations: 30.56 kB / 446.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.09024, allocations: 0 / 446.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002272/0.09048, allocations: 89.64 kB / 446.3 MB, free: 12.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.09052, allocations: 110.8 kB / 446.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.26e-05/0.09061, allocations: 145.5 kB / 446.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.065e-06/0.09062, allocations: 29.7 kB / 446.6 MB, free: 11.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.765e-05/0.09066, allocations: 92.33 kB / 446.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.214e-05/0.09067, allocations: 4 kB / 446.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.09068, allocations: 0 / 446.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.223e-05/0.09074, allocations: 318.8 kB / 447 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.223e-05/0.09079, allocations: 12 kB / 447 MB, free: 11.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.172e-05/0.09084, allocations: 39.36 kB / 447 MB, free: 11.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.147e-05/0.09088, allocations: 15.98 kB / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.09089, allocations: 4 kB / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001155/0.09101, allocations: 69.53 kB / 447.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.09103, allocations: 12.12 kB / 447.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.09104, allocations: 3.984 kB / 447.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.09106, allocations: 0 / 447.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.974e-05/0.09113, allocations: 8 kB / 447.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.09115, allocations: 7.938 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.169e-05/0.09119, allocations: 7.953 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.09121, allocations: 3.984 kB / 447.1 MB, free: 11.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.09127, allocations: 122.5 kB / 447.3 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.053e-05/0.09133, allocations: 53.59 kB / 447.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.543e-05/0.09136, allocations: 19.77 kB / 447.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.09137, allocations: 0 / 447.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.09138, allocations: 96 / 447.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.09139, allocations: 7.984 kB / 447.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.09151, allocations: 169.6 kB / 447.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.09152, allocations: 3.984 kB / 447.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.719e-05/0.09158, allocations: 12 kB / 447.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.09159, allocations: 3.938 kB / 447.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.0916, allocations: 12 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.09161, allocations: 0 / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.09162, allocations: 4 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.09176, allocations: 185 kB / 447.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.09181, allocations: 93 kB / 447.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.09183, allocations: 7.984 kB / 447.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.185e-05/0.0919, allocations: 4 kB / 447.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.09194, allocations: 4 kB / 447.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.09195, allocations: 0 / 447.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.092, allocations: 107.2 kB / 447.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09201, allocations: 0 / 447.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.09221, allocations: 11.95 kB / 447.9 MB, free: 10.46 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.208e-05/0.0923, allocations: 103.2 kB / 448.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001305/0.09244, allocations: 31.92 kB / 448.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.09245, allocations: 4 kB / 448.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.597e-05/0.09249, allocations: 7.984 kB / 448.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.09284, allocations: 28.42 kB / 448.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003021/0.09315, allocations: 224.3 kB / 448.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.0933, allocations: 0.6965 MB / 449 MB, free: 9.301 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.09334, allocations: 11.44 kB / 449 MB, free: 9.289 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.09334, allocations: 0 / 449 MB, free: 9.289 MB / 298.7 MB Notification: Performance of Templates: time 0.001737/0.09508, allocations: 0.8127 MB / 449.9 MB, free: 8.48 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches