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.001215/0.001215, allocations: 174.2 kB / 16.8 MB, free: 5.012 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.422/1.422, allocations: 205.4 MB / 223 MB, free: 9.02 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.0007083/0.0007083, allocations: 92.97 kB / 271.3 MB, free: 8.25 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.06813/0.06813, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003456/0.0003458, allocations: 8 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08535/0.08572, allocations: 50.38 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002134/0.08791, allocations: 1.587 MB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.0893, allocations: 0.9365 MB / 446.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.08947, allocations: 11.94 kB / 446.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000554/0.09004, allocations: 143.7 kB / 446.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.09032, allocations: 99.69 kB / 446.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004742/0.09081, allocations: 163.6 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.09102, allocations: 175.5 kB / 446.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.09115, allocations: 33.84 kB / 446.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.09126, allocations: 67.62 kB / 446.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.09138, allocations: 63.69 kB / 447 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.09141, allocations: 4 kB / 447 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.09155, allocations: 43.92 kB / 447 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.188e-05/0.09162, allocations: 35.84 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.432e-05/0.09171, allocations: 93.23 kB / 447.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.09191, allocations: 151.6 kB / 447.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.09193, allocations: 4 kB / 447.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09194, allocations: 0 / 447.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.09195, allocations: 0 / 447.3 MB, free: 11.82 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.0006427/0.0926, allocations: 484.2 kB / 447.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.09265, allocations: 12.03 kB / 447.8 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.188e-05/0.09272, allocations: 20.73 kB / 447.8 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.09301, allocations: 258.9 kB / 448 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.09304, allocations: 8.375 kB / 448 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.545e-05/0.09306, allocations: 12.12 kB / 448.1 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.09337, allocations: 142.7 kB / 448.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.09339, allocations: 0 / 448.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.09342, allocations: 4 kB / 448.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.09343, allocations: 7.938 kB / 448.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.746e-05/0.09353, allocations: 31.97 kB / 448.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004411/0.09398, allocations: 366.3 kB / 448.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.0942, allocations: 107.9 kB / 448.7 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.574e-05/0.09428, allocations: 42.56 kB / 448.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.09431, allocations: 7.984 kB / 448.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.09445, allocations: 75.33 kB / 448.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.09447, allocations: 0 / 448.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003125/0.09478, allocations: 145.3 kB / 449 MB, free: 9.895 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.09484, allocations: 136.4 kB / 449.1 MB, free: 9.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.09505, allocations: 261.3 kB / 449.4 MB, free: 9.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.09507, allocations: 33.69 kB / 449.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.421e-05/0.09513, allocations: 116.1 kB / 449.5 MB, free: 9.309 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.09516, allocations: 19.75 kB / 449.5 MB, free: 9.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.09517, allocations: 4 kB / 449.5 MB, free: 9.285 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.09523, allocations: 330.7 kB / 449.8 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.293e-05/0.09529, allocations: 27.98 kB / 449.9 MB, free: 8.926 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.609e-05/0.09537, allocations: 69.94 kB / 449.9 MB, free: 8.836 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.09548, allocations: 80.22 kB / 450 MB, free: 8.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.09549, allocations: 0 / 450 MB, free: 8.742 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001771/0.09567, allocations: 113.7 kB / 450.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.0957, allocations: 11.94 kB / 450.1 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.09571, allocations: 4.062 kB / 450.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.09573, allocations: 0 / 450.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.806e-05/0.09581, allocations: 15.98 kB / 450.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.09583, allocations: 0 / 450.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.935e-05/0.0959, allocations: 15.84 kB / 450.2 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.09592, allocations: 8.125 kB / 450.2 MB, free: 8.57 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.82e-05/0.09602, allocations: 145.8 kB / 450.3 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.049e-05/0.09609, allocations: 57.5 kB / 450.4 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.621e-05/0.09614, allocations: 21.7 kB / 450.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.09615, allocations: 4 kB / 450.4 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.09616, allocations: 0 / 450.4 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.09617, allocations: 3.938 kB / 450.4 MB, free: 8.328 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001342/0.09631, allocations: 225.6 kB / 450.6 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.09632, allocations: 8.062 kB / 450.6 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.695e-05/0.09635, allocations: 7.938 kB / 450.7 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.09636, allocations: 0 / 450.7 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.09638, allocations: 7.984 kB / 450.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.09639, allocations: 4 kB / 450.7 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.09639, allocations: 0 / 450.7 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/0.09659, allocations: 158.4 kB / 450.8 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.09666, allocations: 108.9 kB / 450.9 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.09669, allocations: 4 kB / 450.9 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.077e-05/0.09676, allocations: 4 kB / 450.9 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.178e-05/0.0968, allocations: 12.02 kB / 450.9 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.09682, allocations: 11.88 kB / 451 MB, free: 7.695 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.09696, allocations: 196.5 kB / 451.1 MB, free: 7.504 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09697, allocations: 0 / 451.1 MB, free: 7.504 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002314/0.09721, allocations: 28 kB / 451.2 MB, free: 7.477 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007826/0.098, allocations: 421.1 kB / 451.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002055/0.09821, allocations: 63.86 kB / 451.6 MB, free: 6.992 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.09823, allocations: 3.938 kB / 451.7 MB, free: 6.988 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.057e-05/0.09829, allocations: 27.98 kB / 451.7 MB, free: 6.961 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.09867, allocations: 56.8 kB / 451.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004635/0.09915, allocations: 385.5 kB / 452.1 MB, free: 6.492 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.0993, allocations: 0.7283 MB / 452.8 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.09935, allocations: 15.44 kB / 452.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.09936, allocations: 0 / 452.9 MB, free: 5.723 MB / 298.7 MB Notification: Performance of Templates: time 0.004228/0.1036, allocations: 2.59 MB / 455.4 MB, free: 3.129 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