Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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-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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_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_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.0009891/0.000989, allocations: 176.1 kB / 16.45 MB, free: 5.684 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.314/1.314, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0006844/0.0006845, allocations: 94.09 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.06764/0.06764, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000435/0.0004351, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07478/0.07523, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00166/0.07693, allocations: 1.555 MB / 444.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.07802, allocations: 0.9175 MB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.625e-05/0.07813, allocations: 4 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004677/0.0786, allocations: 139.6 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.07882, allocations: 95.7 kB / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003944/0.07922, allocations: 159.6 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001625/0.07939, allocations: 159.5 kB / 446.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.309e-05/0.07949, allocations: 25.56 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.093e-05/0.07959, allocations: 67.69 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.543e-05/0.07968, allocations: 59.7 kB / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.07971, allocations: 0 / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.07982, allocations: 47.91 kB / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.32e-05/0.07987, allocations: 27.91 kB / 446.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.84e-05/0.07991, allocations: 53.58 kB / 446.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.08007, allocations: 144 kB / 446.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.08008, allocations: 0 / 446.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.08009, allocations: 0 / 446.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.0801, allocations: 4 kB / 446.5 MB, free: 12.32 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000536/0.08064, allocations: 496.1 kB / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.08068, allocations: 12.03 kB / 447 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.08073, allocations: 15.81 kB / 447 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.08098, allocations: 261.5 kB / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.081, allocations: 3.938 kB / 447.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.08102, allocations: 12 kB / 447.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.08129, allocations: 150.7 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.08131, allocations: 0 / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.08132, allocations: 4 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.08133, allocations: 4 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.671e-05/0.08143, allocations: 35.86 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003774/0.08181, allocations: 354.5 kB / 447.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.08199, allocations: 111.9 kB / 447.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.457e-05/0.08206, allocations: 42.5 kB / 447.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.0821, allocations: 4 kB / 447.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.08223, allocations: 79.38 kB / 448 MB, free: 10.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.244e-06/0.08224, allocations: 3.984 kB / 448 MB, free: 10.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002875/0.08253, allocations: 141.2 kB / 448.2 MB, free: 10.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.08258, allocations: 136.5 kB / 448.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.08278, allocations: 261 kB / 448.6 MB, free: 9.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.0828, allocations: 29.7 kB / 448.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.08286, allocations: 116.4 kB / 448.7 MB, free: 9.812 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.08288, allocations: 27.73 kB / 448.7 MB, free: 9.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.08289, allocations: 0 / 448.7 MB, free: 9.785 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.64e-05/0.08294, allocations: 326.8 kB / 449 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.351e-05/0.083, allocations: 23.98 kB / 449.1 MB, free: 9.434 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.315e-05/0.08307, allocations: 62 kB / 449.1 MB, free: 9.352 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.089e-05/0.08314, allocations: 31.97 kB / 449.2 MB, free: 9.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.08315, allocations: 0 / 449.2 MB, free: 9.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001622/0.08332, allocations: 117.4 kB / 449.3 MB, free: 9.199 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.08334, allocations: 4 kB / 449.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.08335, allocations: 0 / 449.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.08337, allocations: 8.125 kB / 449.3 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.982e-05/0.08344, allocations: 15.98 kB / 449.3 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.08345, allocations: 3.938 kB / 449.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.503e-05/0.08352, allocations: 11.86 kB / 449.3 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.08354, allocations: 4 kB / 449.3 MB, free: 9.152 MB / 298.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 8.228e-05/0.08362, allocations: 149.9 kB / 449.5 MB, free: 8.996 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.702e-05/0.08369, allocations: 61.5 kB / 449.5 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.002e-05/0.08373, allocations: 29.77 kB / 449.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.08374, allocations: 0 / 449.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.08375, allocations: 0 / 449.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.08376, allocations: 4 kB / 449.6 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.08388, allocations: 229.5 kB / 449.8 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.08389, allocations: 0 / 449.8 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-05/0.08392, allocations: 7.938 kB / 449.8 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.08393, allocations: 4 kB / 449.8 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.08394, allocations: 3.984 kB / 449.8 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.08395, allocations: 0 / 449.8 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.08396, allocations: 4 kB / 449.8 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.08414, allocations: 162.4 kB / 450 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-05/0.0842, allocations: 108.9 kB / 450.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.08424, allocations: 4 kB / 450.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.105e-05/0.0843, allocations: 8 kB / 450.1 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.265e-05/0.08434, allocations: 7.984 kB / 450.1 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.08436, allocations: 8 kB / 450.1 MB, free: 8.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001288/0.08449, allocations: 192.5 kB / 450.3 MB, free: 8.082 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.0845, allocations: 0 / 450.3 MB, free: 8.082 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002187/0.08472, allocations: 28 kB / 450.3 MB, free: 8.055 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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.0007128/0.08544, allocations: 419.5 kB / 450.7 MB, free: 7.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001823/0.08564, allocations: 68.05 kB / 450.8 MB, free: 7.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.08565, allocations: 4.062 kB / 450.8 MB, free: 7.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.829e-05/0.08571, allocations: 23.98 kB / 450.8 MB, free: 7.543 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.08605, allocations: 60.31 kB / 450.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004018/0.08646, allocations: 369.7 kB / 451.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.08659, allocations: 0.7283 MB / 452 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.08664, allocations: 23.42 kB / 452 MB, free: 6.309 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.08664, allocations: 0 / 452 MB, free: 6.309 MB / 298.7 MB Notification: Performance of Templates: time 0.003482/0.09013, allocations: 2.586 MB / 454.6 MB, free: 3.715 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches