Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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/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/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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008511/0.0008511, allocations: 181.4 kB / 17.46 MB, free: 4.25 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.32/1.32, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.0006815/0.0006814, allocations: 97.34 kB / 272 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0683/0.0683, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004047/0.0004047, allocations: 16 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09636/0.09679, allocations: 50.28 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3056/0.4024, allocations: 81.85 MB / 0.5126 GB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.4027, allocations: 85.94 kB / 0.5126 GB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01457/0.4173, allocations: 6.35 MB / 0.5188 GB, free: 9.938 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4173, allocations: 0 / 0.5188 GB, free: 9.938 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.4174, allocations: 4 kB / 0.5188 GB, free: 9.934 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005594/0.4179, allocations: 0.4996 MB / 0.5193 GB, free: 9.395 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.418, allocations: 12.03 kB / 0.5193 GB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.214e-05/0.418, allocations: 16.75 kB / 0.5194 GB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/0.4184, allocations: 269.2 kB / 0.5196 GB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.4184, allocations: 10.62 kB / 0.5196 GB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.4184, allocations: 12.36 kB / 0.5196 GB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002919/0.4187, allocations: 156.7 kB / 0.5198 GB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.4187, allocations: 4.172 kB / 0.5198 GB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.4188, allocations: 3.938 kB / 0.5198 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.4188, allocations: 8 kB / 0.5198 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.934e-05/0.4189, allocations: 33.92 kB / 0.5198 GB, free: 8.887 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004088/0.4193, allocations: 361.8 kB / 0.5202 GB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.4195, allocations: 116.7 kB / 0.5203 GB, free: 8.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.623e-05/0.4196, allocations: 42.06 kB / 0.5203 GB, free: 8.355 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.4196, allocations: 7.938 kB / 0.5203 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001173/0.4197, allocations: 77.81 kB / 0.5204 GB, free: 8.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.4197, allocations: 0 / 0.5204 GB, free: 8.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003054/0.42, allocations: 141.4 kB / 0.5205 GB, free: 8.152 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.4201, allocations: 140.3 kB / 0.5207 GB, free: 7.988 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.4203, allocations: 260.2 kB / 0.5209 GB, free: 7.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.4203, allocations: 29.7 kB / 0.521 GB, free: 7.734 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.665e-05/0.4204, allocations: 119.9 kB / 0.5211 GB, free: 7.637 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.4204, allocations: 22.77 kB / 0.5211 GB, free: 7.621 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/0.4204, allocations: 3.812 kB / 0.5211 GB, free: 7.621 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.794e-05/0.4205, allocations: 329.7 kB / 0.5214 GB, free: 7.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.252e-05/0.4205, allocations: 19.73 kB / 0.5214 GB, free: 7.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.962e-05/0.4206, allocations: 76.61 kB / 0.5215 GB, free: 7.195 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.4207, allocations: 81.78 kB / 0.5216 GB, free: 7.121 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4208, allocations: 0 / 0.5216 GB, free: 7.121 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001666/0.4209, allocations: 122.4 kB / 0.5217 GB, free: 7.016 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.421, allocations: 7.938 kB / 0.5217 GB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.421, allocations: 0 / 0.5217 GB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.421, allocations: 4 kB / 0.5217 GB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.998e-05/0.4211, allocations: 8 kB / 0.5217 GB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.4211, allocations: 7.938 kB / 0.5217 GB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.253e-05/0.4211, allocations: 12.2 kB / 0.5217 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.4212, allocations: 4 kB / 0.5217 GB, free: 6.973 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 9.56e-05/0.4213, allocations: 154.2 kB / 0.5219 GB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.208e-05/0.4213, allocations: 61.27 kB / 0.5219 GB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.4215, allocations: 109.7 kB / 0.5221 GB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.4216, allocations: 7.984 kB / 0.5221 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4216, allocations: 0 / 0.5221 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.4216, allocations: 0 / 0.5221 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.4217, allocations: 236.3 kB / 0.5223 GB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4217, allocations: 4.062 kB / 0.5223 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.95e-05/0.4218, allocations: 7.938 kB / 0.5223 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4218, allocations: 4 kB / 0.5223 GB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.4218, allocations: 0 / 0.5223 GB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4218, allocations: 3.984 kB / 0.5223 GB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4218, allocations: 4 kB / 0.5223 GB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/0.422, allocations: 162.7 kB / 0.5225 GB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.4221, allocations: 119.5 kB / 0.5226 GB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.4221, allocations: 4 kB / 0.5226 GB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.008e-05/0.4222, allocations: 11.17 kB / 0.5226 GB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.891e-05/0.4222, allocations: 4 kB / 0.5226 GB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.4222, allocations: 0 / 0.5226 GB, free: 6.086 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001469/0.4224, allocations: 195.6 kB / 0.5228 GB, free: 5.926 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4224, allocations: 0 / 0.5228 GB, free: 5.926 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002383/0.4226, allocations: 39.86 kB / 0.5228 GB, free: 5.891 MB / 330.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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0008372/0.4235, allocations: 439.4 kB / 0.5232 GB, free: 5.465 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001922/0.4237, allocations: 70.59 kB / 0.5233 GB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4237, allocations: 0 / 0.5233 GB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.867e-05/0.4238, allocations: 34.31 kB / 0.5233 GB, free: 5.391 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.4241, allocations: 63.45 kB / 0.5234 GB, free: 5.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.4246, allocations: 378.6 kB / 0.5238 GB, free: 4.957 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001349/0.4248, allocations: 0.7319 MB / 0.5245 GB, free: 4.203 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.981e-05/0.4248, allocations: 19.44 kB / 0.5245 GB, free: 4.184 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.4248, allocations: 0 / 0.5245 GB, free: 4.184 MB / 330.7 MB Notification: Performance of Templates: time 0.003672/0.4285, allocations: 2.622 MB / 0.5271 GB, free: 1.582 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches