Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001152, allocations: 180.4 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 97.59 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002676, allocations: 7.938 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2702, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1345/0.4048, allocations: 81.22 MB / 482.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.4051, allocations: 91.92 kB / 482.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01638/0.4215, allocations: 6.053 MB / 488.9 MB, free: 9.098 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.407e-06/0.4216, allocations: 3.984 kB / 488.9 MB, free: 9.094 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.4216, allocations: 4 kB / 488.9 MB, free: 9.09 MB / 362.7 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.0007328/0.4224, allocations: 0.5039 MB / 489.4 MB, free: 8.531 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.4224, allocations: 8.031 kB / 489.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.181e-05/0.4225, allocations: 27.75 kB / 489.4 MB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.4229, allocations: 257.6 kB / 489.7 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.423, allocations: 11.94 kB / 489.7 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.423, allocations: 4 kB / 489.7 MB, free: 8.188 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/0.4233, allocations: 164.1 kB / 489.8 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.4234, allocations: 0 / 489.8 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.4234, allocations: 0 / 489.8 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.4234, allocations: 7.938 kB / 489.8 MB, free: 7.992 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.951e-05/0.4235, allocations: 43.92 kB / 489.9 MB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005656/0.4241, allocations: 454.6 kB / 490.3 MB, free: 7.445 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002332/0.4243, allocations: 138.5 kB / 490.5 MB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.4244, allocations: 7.938 kB / 490.5 MB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001785/0.4245, allocations: 97.17 kB / 490.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.4246, allocations: 0 / 490.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003993/0.425, allocations: 157.2 kB / 490.7 MB, free: 6.992 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.4251, allocations: 166.2 kB / 490.9 MB, free: 6.793 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.4254, allocations: 236.5 kB / 491.1 MB, free: 6.555 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.4254, allocations: 37.7 kB / 491.1 MB, free: 6.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.393e-05/0.4255, allocations: 120.3 kB / 491.3 MB, free: 6.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.813e-05/0.4255, allocations: 23.73 kB / 491.3 MB, free: 6.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/0.4255, allocations: 0 / 491.3 MB, free: 6.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4257, allocations: 326.8 kB / 491.6 MB, free: 6.035 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.989e-05/0.4258, allocations: 23.98 kB / 491.6 MB, free: 6.012 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.4259, allocations: 82.8 kB / 491.7 MB, free: 5.906 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.574e-05/0.426, allocations: 31.98 kB / 491.7 MB, free: 5.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.426, allocations: 3.938 kB / 491.7 MB, free: 5.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002284/0.4262, allocations: 129.5 kB / 491.9 MB, free: 5.738 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.4263, allocations: 8 kB / 491.9 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.4263, allocations: 4.266 kB / 491.9 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.4263, allocations: 4 kB / 491.9 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.352e-05/0.4264, allocations: 19.92 kB / 491.9 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.4264, allocations: 4 kB / 491.9 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.284e-05/0.4265, allocations: 7.938 kB / 491.9 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.4265, allocations: 4 kB / 491.9 MB, free: 5.688 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample1.u,shiftSample1.y,hold1.u,hold1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001762/0.4267, allocations: 153.9 kB / 492.1 MB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.172e-05/0.4268, allocations: 65.41 kB / 492.1 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.4271, allocations: 119.4 kB / 492.3 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4271, allocations: 3.953 kB / 492.3 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4271, allocations: 3.984 kB / 492.3 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.4271, allocations: 7.984 kB / 492.3 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.4274, allocations: 229.6 kB / 492.5 MB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4274, allocations: 0 / 492.5 MB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.4274, allocations: 20.05 kB / 492.5 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4274, allocations: 0 / 492.5 MB, free: 5.027 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.4274, allocations: 4 kB / 492.5 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4274, allocations: 0 / 492.5 MB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4275, allocations: 7.891 kB / 492.5 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.4277, allocations: 216.6 kB / 492.7 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.4279, allocations: 116.8 kB / 492.9 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.4279, allocations: 0 / 492.9 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.775e-05/0.428, allocations: 8 kB / 492.9 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.4281, allocations: 7.984 kB / 492.9 MB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.4281, allocations: 4 kB / 492.9 MB, free: 4.605 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002327/0.4283, allocations: 200.5 kB / 493.1 MB, free: 4.406 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4283, allocations: 0 / 493.1 MB, free: 4.406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.4287, allocations: 43.92 kB / 493.1 MB, free: 4.363 MB / 362.7 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.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001089/0.4298, allocations: 449.2 kB / 493.5 MB, free: 4.082 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003151/0.4301, allocations: 75.91 kB / 493.6 MB, free: 4.008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4301, allocations: 8.312 kB / 493.6 MB, free: 4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.45e-05/0.4302, allocations: 31.92 kB / 493.7 MB, free: 3.969 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.4307, allocations: 60.38 kB / 493.7 MB, free: 3.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008311/0.4316, allocations: 365 kB / 494.1 MB, free: 3.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004949/0.4321, allocations: 0.74 MB / 494.8 MB, free: 2.754 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.4322, allocations: 25.53 kB / 494.8 MB, free: 2.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.72e-05/0.4323, allocations: 15.44 kB / 494.9 MB, free: 2.715 MB / 362.7 MB Notification: Performance of SimCode: time 7.71e-07/0.4323, allocations: 0 / 494.9 MB, free: 2.715 MB / 362.7 MB Notification: Performance of Templates: time 0.007095/0.4394, allocations: 2.418 MB / 497.3 MB, free: 332 kB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches