Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 184.6 kB / 16.45 MB, free: 5.656 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.532/1.532, 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.0007557/0.0007558, allocations: 100.9 kB / 270.9 MB, free: 8.344 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.0669/0.0669, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003672, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.07745, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001765/0.07927, allocations: 1.548 MB / 443.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.0804, allocations: 0.9915 MB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.004e-05/0.0805, allocations: 3.938 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002411/0.08075, allocations: 59.78 kB / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.08093, allocations: 83.72 kB / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.08141, allocations: 191.6 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.08156, allocations: 143.5 kB / 445.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.162e-05/0.08166, allocations: 29.53 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.308e-05/0.08174, allocations: 63.7 kB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.557e-05/0.08182, allocations: 67.67 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.08184, allocations: 4 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.08195, allocations: 43.98 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.08201, allocations: 47.81 kB / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.728e-05/0.08206, allocations: 53.58 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.08222, allocations: 164 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.08223, allocations: 0 / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.08224, allocations: 0 / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.08225, allocations: 4 kB / 445.8 MB, free: 12.95 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.0004766/0.08274, allocations: 0.4999 MB / 446.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.913e-05/0.08277, allocations: 8.031 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.129e-05/0.08284, allocations: 23.72 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.08309, allocations: 282.3 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.08312, allocations: 8 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.08314, allocations: 4 kB / 446.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.08342, allocations: 167.5 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.08344, allocations: 0 / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.08346, allocations: 4 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.08347, allocations: 4 kB / 446.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.677e-05/0.08357, allocations: 31.92 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003803/0.08396, allocations: 386.4 kB / 447.2 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001983/0.08417, allocations: 115.9 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.21e-05/0.08425, allocations: 42.56 kB / 447.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.08428, allocations: 4 kB / 447.4 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001678/0.08445, allocations: 79.38 kB / 447.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.08446, allocations: 3.938 kB / 447.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003183/0.08479, allocations: 149.3 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.08485, allocations: 166.2 kB / 447.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/0.0851, allocations: 326.7 kB / 448.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.08512, allocations: 25.7 kB / 448.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.08518, allocations: 136.2 kB / 448.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.08521, allocations: 23.86 kB / 448.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.08522, allocations: 4 kB / 448.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.782e-05/0.08527, allocations: 326.8 kB / 448.6 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.078e-05/0.08534, allocations: 23.98 kB / 448.6 MB, free: 9.852 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.112e-05/0.08543, allocations: 86.78 kB / 448.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.015e-05/0.0855, allocations: 39.92 kB / 448.8 MB, free: 9.703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.08551, allocations: 0 / 448.8 MB, free: 9.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001822/0.0857, allocations: 121.4 kB / 448.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.08572, allocations: 4 kB / 448.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.08573, allocations: 128 / 448.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.08575, allocations: 8 kB / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.658e-05/0.08585, allocations: 19.98 kB / 448.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.08586, allocations: 0 / 448.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.178e-05/0.08594, allocations: 11.95 kB / 448.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.08596, allocations: 4 kB / 448.9 MB, free: 9.531 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,table.y,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 0.0001005/0.08606, allocations: 165.8 kB / 449.1 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-05/0.08613, allocations: 65.36 kB / 449.2 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.549e-05/0.08618, allocations: 25.77 kB / 449.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.08619, allocations: 8 kB / 449.2 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.0862, allocations: 0 / 449.2 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.08621, allocations: 0 / 449.2 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001336/0.08635, allocations: 245.4 kB / 449.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.08636, allocations: 4 kB / 449.4 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.88e-05/0.08642, allocations: 12 kB / 449.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.08643, allocations: 0 / 449.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.08645, allocations: 7.984 kB / 449.5 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.08645, allocations: 3.938 kB / 449.5 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.08646, allocations: 0 / 449.5 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.08666, allocations: 162.5 kB / 449.6 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.08674, allocations: 120.8 kB / 449.7 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.08677, allocations: 3.984 kB / 449.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.82e-05/0.08688, allocations: 8 kB / 449.7 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.08693, allocations: 11.98 kB / 449.8 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.08695, allocations: 4 kB / 449.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001622/0.08712, allocations: 241.9 kB / 450 MB, free: 8.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08712, allocations: 0 / 450 MB, free: 8.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.08735, allocations: 31.98 kB / 450 MB, free: 8.324 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,table.y,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.0007307/0.08809, allocations: 427.5 kB / 450.4 MB, free: 7.898 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001876/0.08829, allocations: 72.09 kB / 450.5 MB, free: 7.828 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.0883, allocations: 4.062 kB / 450.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.612e-05/0.08837, allocations: 27.98 kB / 450.5 MB, free: 7.797 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.08873, allocations: 56.45 kB / 450.6 MB, free: 7.742 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004517/0.0892, allocations: 426.1 kB / 451 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.08934, allocations: 0.74 MB / 451.8 MB, free: 6.527 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.08939, allocations: 27.42 kB / 451.8 MB, free: 6.504 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.0894, allocations: 0 / 451.8 MB, free: 6.504 MB / 298.7 MB Notification: Performance of Templates: time 0.003682/0.09309, allocations: 2.886 MB / 454.7 MB, free: 3.613 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches