Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001332/0.001332, allocations: 117.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 211.7 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.614/1.614, allocations: 230.4 MB / 250 MB, free: 9.035 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 63.84 kB / 367.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3605, allocations: 53.31 MB / 420.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004025/0.3645, allocations: 1.941 MB / 422.6 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.3671, allocations: 1.321 MB / 423.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.3673, allocations: 7.938 kB / 423.9 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000365/0.3676, allocations: 67.66 kB / 424 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004236/0.368, allocations: 139.4 kB / 424.1 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007407/0.3688, allocations: 225.8 kB / 424.3 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.3691, allocations: 195.4 kB / 424.5 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.3692, allocations: 29.67 kB / 424.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.3694, allocations: 75.69 kB / 424.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.3695, allocations: 91.55 kB / 424.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.861e-05/0.3695, allocations: 12 kB / 424.7 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.3697, allocations: 67.95 kB / 424.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.3698, allocations: 59.77 kB / 424.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.37, allocations: 83.36 kB / 424.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004714/0.3704, allocations: 250.9 kB / 425.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3704, allocations: 4 kB / 425.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3704, allocations: 0 / 425.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.3705, allocations: 4 kB / 425.2 MB, free: 3.969 MB / 334.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.000896/0.3714, allocations: 0.5541 MB / 425.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3714, allocations: 8.031 kB / 425.7 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.386e-05/0.3715, allocations: 28.8 kB / 425.8 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000483/0.372, allocations: 299.7 kB / 426.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.372, allocations: 4.375 kB / 426.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.372, allocations: 16.12 kB / 426.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004241/0.3724, allocations: 180.3 kB / 426.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3724, allocations: 0 / 426.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.3724, allocations: 11.94 kB / 426.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3725, allocations: 4 kB / 426.3 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.3726, allocations: 39.91 kB / 426.3 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006532/0.3733, allocations: 399.2 kB / 426.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.3736, allocations: 142.5 kB / 426.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.3737, allocations: 59.41 kB / 426.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.3737, allocations: 4 kB / 426.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002025/0.3739, allocations: 79.31 kB / 427 MB, free: 1.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.3739, allocations: 0 / 427 MB, free: 1.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004883/0.3744, allocations: 177.7 kB / 427.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.3746, allocations: 187.9 kB / 427.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.375, allocations: 343 kB / 427.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.375, allocations: 29.7 kB / 427.7 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.3752, allocations: 128.4 kB / 427.8 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.3752, allocations: 19.89 kB / 427.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-05/0.3753, allocations: 41.59 kB / 427.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.3755, allocations: 338.8 kB / 428.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.762e-05/0.3755, allocations: 23.98 kB / 428.2 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.3757, allocations: 108.8 kB / 428.4 MB, free: 444 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.3759, allocations: 101.9 kB / 428.5 MB, free: 320 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3759, allocations: 0 / 428.5 MB, free: 320 kB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002903/0.3762, allocations: 145.3 kB / 428.6 MB, free: 168 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3762, allocations: 8 kB / 428.6 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3762, allocations: 0 / 428.6 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.3762, allocations: 4 kB / 428.6 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.3764, allocations: 19.98 kB / 428.6 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.3764, allocations: 4 kB / 428.6 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.193e-05/0.3765, allocations: 15.88 kB / 428.6 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.3765, allocations: 4 kB / 428.6 MB, free: 112 kB / 334.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.0001918/0.3767, allocations: 162.1 kB / 428.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.3768, allocations: 81.44 kB / 428.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.413e-05/0.3768, allocations: 33.73 kB / 428.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.3769, allocations: 4 kB / 428.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3769, allocations: 0 / 428.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.141e-05/0.3769, allocations: 3.938 kB / 428.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.3771, allocations: 245.5 kB / 429.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3771, allocations: 96 / 429.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.577e-05/0.3772, allocations: 19.98 kB / 429.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.3772, allocations: 4 kB / 429.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.3772, allocations: 4 kB / 429.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.3772, allocations: 7.938 kB / 429.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3772, allocations: 3.938 kB / 429.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.3776, allocations: 187.5 kB / 429.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.3777, allocations: 120.9 kB / 429.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.3777, allocations: 4 kB / 429.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.271e-05/0.3778, allocations: 7.984 kB / 429.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.424e-05/0.3779, allocations: 8 kB / 429.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.3779, allocations: 11.97 kB / 429.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002848/0.3782, allocations: 249.9 kB / 429.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3782, allocations: 0 / 429.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.3785, allocations: 43.86 kB / 429.8 MB, free: 14.82 MB / 350.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.001599/0.3801, allocations: 435.5 kB / 430.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000265/0.3803, allocations: 75.89 kB / 430.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3803, allocations: 3.938 kB / 430.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.284e-05/0.3804, allocations: 31.97 kB / 430.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.3809, allocations: 89.19 kB / 430.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000762/0.3817, allocations: 393.6 kB / 430.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.3821, allocations: 0.7557 MB / 431.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.076e-05/0.3822, allocations: 21.55 kB / 431.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.073e-05/0.3823, allocations: 27.36 kB / 431.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3823, allocations: 0 / 431.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of Templates: time 0.007942/0.3902, allocations: 3.112 MB / 434.7 MB, free: 10.02 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches