Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001586/0.001586, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001141/0.00114, allocations: 78.67 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1019/0.1019, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.448e-05, allocations: 7.938 kB / 386 MB, free: 1.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3138, allocations: 50.36 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1543/0.4682, allocations: 81.86 MB / 0.5061 GB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003556/0.4686, allocations: 83.89 kB / 0.5061 GB, free: 12.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02746/0.4961, allocations: 5.898 MB / 0.5119 GB, free: 6.195 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4961, allocations: 4 kB / 0.5119 GB, free: 6.191 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.503e-05/0.4962, allocations: 4 kB / 0.5119 GB, free: 6.188 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007688/0.497, allocations: 491.5 kB / 0.5124 GB, free: 5.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.497, allocations: 8.031 kB / 0.5124 GB, free: 5.648 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.588e-05/0.4971, allocations: 19.72 kB / 0.5124 GB, free: 5.629 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005742/0.4977, allocations: 265.6 kB / 0.5127 GB, free: 5.328 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.4978, allocations: 4 kB / 0.5127 GB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.9e-05/0.4978, allocations: 15.95 kB / 0.5127 GB, free: 5.309 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004443/0.4982, allocations: 167.5 kB / 0.5128 GB, free: 5.117 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.4983, allocations: 0 / 0.5128 GB, free: 5.117 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.4983, allocations: 4 kB / 0.5128 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.4983, allocations: 0 / 0.5128 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.4985, allocations: 47.92 kB / 0.5129 GB, free: 5.066 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000736/0.4992, allocations: 367.3 kB / 0.5132 GB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.4995, allocations: 134.5 kB / 0.5134 GB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.4997, allocations: 55.56 kB / 0.5134 GB, free: 4.414 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.4997, allocations: 4 kB / 0.5134 GB, free: 4.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.4999, allocations: 75.33 kB / 0.5135 GB, free: 4.324 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 3.256e-06/0.4999, allocations: 0 / 0.5135 GB, free: 4.324 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004128/0.5003, allocations: 129.3 kB / 0.5136 GB, free: 4.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.5005, allocations: 166.3 kB / 0.5138 GB, free: 3.992 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004314/0.5009, allocations: 245 kB / 0.514 GB, free: 3.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.501, allocations: 25.7 kB / 0.514 GB, free: 3.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.5011, allocations: 178.8 kB / 0.5142 GB, free: 3.535 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.5011, allocations: 23.81 kB / 0.5142 GB, free: 3.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-06/0.5012, allocations: 0 / 0.5142 GB, free: 3.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5013, allocations: 322.8 kB / 0.5145 GB, free: 3.188 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.644e-05/0.5014, allocations: 23.98 kB / 0.5146 GB, free: 3.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.5015, allocations: 79.73 kB / 0.5146 GB, free: 3.059 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.5017, allocations: 39.06 kB / 0.5147 GB, free: 3.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5017, allocations: 0 / 0.5147 GB, free: 3.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002818/0.502, allocations: 113.5 kB / 0.5148 GB, free: 2.906 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.502, allocations: 4 kB / 0.5148 GB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.502, allocations: 4 kB / 0.5148 GB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.502, allocations: 4.109 kB / 0.5148 GB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.5022, allocations: 24.12 kB / 0.5148 GB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.5022, allocations: 4 kB / 0.5148 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000158/0.5024, allocations: 7.984 kB / 0.5148 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.5025, allocations: 8 kB / 0.5148 GB, free: 2.852 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 0.0001252/0.5026, allocations: 120.7 kB / 0.5149 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.5028, allocations: 81.22 kB / 0.515 GB, free: 2.641 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003354/0.5031, allocations: 119.5 kB / 0.5151 GB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.5032, allocations: 0 / 0.5151 GB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.5032, allocations: 7.984 kB / 0.5151 GB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.5032, allocations: 0 / 0.5151 GB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003095/0.5035, allocations: 233.5 kB / 0.5154 GB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5035, allocations: 0 / 0.5154 GB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.338e-05/0.5036, allocations: 11.98 kB / 0.5154 GB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.5036, allocations: 0 / 0.5154 GB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.5037, allocations: 8 kB / 0.5154 GB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.5037, allocations: 0 / 0.5154 GB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.5037, allocations: 7.938 kB / 0.5154 GB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003719/0.5041, allocations: 208.5 kB / 0.5156 GB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.5042, allocations: 112.9 kB / 0.5157 GB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/0.5043, allocations: 8 kB / 0.5157 GB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.5045, allocations: 8 kB / 0.5157 GB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.5045, allocations: 7.984 kB / 0.5157 GB, free: 1.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.5046, allocations: 11.89 kB / 0.5157 GB, free: 1.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003275/0.5049, allocations: 193.4 kB / 0.5159 GB, free: 1.602 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5049, allocations: 0 / 0.5159 GB, free: 1.602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003934/0.5053, allocations: 39.94 kB / 0.516 GB, free: 1.562 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.001192/0.5065, allocations: 396.9 kB / 0.5163 GB, free: 1.168 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.5069, allocations: 79.86 kB / 0.5164 GB, free: 1.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5069, allocations: 0 / 0.5164 GB, free: 1.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.049e-05/0.507, allocations: 24 kB / 0.5164 GB, free: 1.066 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.5077, allocations: 68.5 kB / 0.5165 GB, free: 1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008094/0.5085, allocations: 287.2 kB / 0.5168 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2782/0.7868, allocations: 0.7331 MB / 0.5175 GB, free: 85.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.787, allocations: 21.66 kB / 0.5175 GB, free: 85.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.412e-06/0.787, allocations: 0 / 0.5175 GB, free: 85.71 MB / 362.7 MB Notification: Performance of Templates: time 0.01007/0.797, allocations: 2.801 MB / 0.5202 GB, free: 85.59 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches