Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008763/0.0008764, allocations: 94.17 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000924/0.000924, allocations: 179.9 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.3 MB / 242.3 MB, free: 244 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002239, allocations: 8.188 kB / 302.1 MB, free: 6.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07127/0.07151, allocations: 50.4 MB / 352.5 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.001903/0.07343, allocations: 1.613 MB / 354.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.07506, allocations: 1.115 MB / 355.2 MB, free: 1 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.263e-05/0.07516, allocations: 4 kB / 355.2 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.07543, allocations: 59.78 kB / 355.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.07564, allocations: 83.72 kB / 355.4 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006284/0.07628, allocations: 242.8 kB / 355.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.07649, allocations: 171.5 kB / 355.8 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.877e-05/0.0766, allocations: 29.55 kB / 355.8 MB, free: 436 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.433e-05/0.0767, allocations: 67.7 kB / 355.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.07681, allocations: 79.55 kB / 355.9 MB, free: 288 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.07684, allocations: 4 kB / 355.9 MB, free: 284 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.07696, allocations: 47.98 kB / 356 MB, free: 236 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.254e-05/0.07705, allocations: 55.75 kB / 356 MB, free: 180 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.239e-05/0.07713, allocations: 105.1 kB / 356.1 MB, free: 68 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.07735, allocations: 171.9 kB / 356.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.07736, allocations: 0 / 356.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.07737, allocations: 4 kB / 356.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.07738, allocations: 0 / 356.3 MB, free: 15.89 MB / 302.1 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.0005727/0.07796, allocations: 0.5001 MB / 356.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.07799, allocations: 12.03 kB / 356.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.169e-05/0.07805, allocations: 24.66 kB / 356.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.07836, allocations: 295.4 kB / 357.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.07839, allocations: 8.375 kB / 357.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.07842, allocations: 8.125 kB / 357.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.07875, allocations: 187.6 kB / 357.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.07877, allocations: 0 / 357.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.07879, allocations: 11.94 kB / 357.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.0788, allocations: 0 / 357.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.07892, allocations: 39.97 kB / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000469/0.0794, allocations: 399.2 kB / 357.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/0.07966, allocations: 138.5 kB / 357.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.943e-05/0.07978, allocations: 63.36 kB / 358 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.07981, allocations: 8 kB / 358 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001711/0.07999, allocations: 79.28 kB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.08, allocations: 0 / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.000383/0.08039, allocations: 169.7 kB / 358.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.08048, allocations: 187.9 kB / 358.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.08081, allocations: 338.6 kB / 358.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.08084, allocations: 33.7 kB / 358.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.69e-05/0.08092, allocations: 120.4 kB / 358.9 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.08096, allocations: 23.73 kB / 358.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.08099, allocations: 17.72 kB / 358.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.911e-05/0.0811, allocations: 342.8 kB / 359.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.227e-05/0.08118, allocations: 27.98 kB / 359.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.0813, allocations: 100.4 kB / 359.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.08147, allocations: 101.9 kB / 359.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.08148, allocations: 0 / 359.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000247/0.08173, allocations: 141.6 kB / 359.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.08176, allocations: 8 kB / 359.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.08177, allocations: 3.984 kB / 359.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.08179, allocations: 7.938 kB / 359.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.0819, allocations: 23.94 kB / 359.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.08192, allocations: 7.984 kB / 359.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.61e-05/0.08201, allocations: 11.88 kB / 359.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.08203, allocations: 4 kB / 359.7 MB, free: 12.13 MB / 302.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001286/0.08217, allocations: 158 kB / 359.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-05/0.08227, allocations: 77.34 kB / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.299e-05/0.08233, allocations: 29.7 kB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.08234, allocations: 4 kB / 360 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.08235, allocations: 3.938 kB / 360 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.08236, allocations: 3.938 kB / 360 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.08256, allocations: 253.5 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.08257, allocations: 0 / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.567e-05/0.08265, allocations: 15.98 kB / 360.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.08266, allocations: 4.094 kB / 360.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.08268, allocations: 8 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.08269, allocations: 0 / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.0827, allocations: 4 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.08297, allocations: 187.2 kB / 360.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.979e-05/0.08307, allocations: 116.8 kB / 360.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.08311, allocations: 7.984 kB / 360.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.816e-05/0.08319, allocations: 8 kB / 360.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.08324, allocations: 7.984 kB / 360.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.08327, allocations: 7.938 kB / 360.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.08349, allocations: 245.9 kB / 360.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0835, allocations: 0 / 360.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002761/0.08378, allocations: 36 kB / 360.8 MB, free: 10.87 MB / 302.1 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.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 (11): * Single equations (assignments): 9 * 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.0009103/0.0847, allocations: 424.6 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002212/0.08493, allocations: 87.78 kB / 361.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.08495, allocations: 0 / 361.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.582e-05/0.08503, allocations: 27.98 kB / 361.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.08549, allocations: 92.59 kB / 361.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005936/0.08609, allocations: 466.9 kB / 361.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.08636, allocations: 0.7517 MB / 362.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.957e-05/0.08642, allocations: 19.44 kB / 362.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.08642, allocations: 0 / 362.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Templates: time 0.004758/0.09119, allocations: 3.044 MB / 365.7 MB, free: 6.078 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches