Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009282/0.0009283, allocations: 176.2 kB / 16.45 MB, free: 5.684 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.283/1.283, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.00078/0.00078, allocations: 80.88 kB / 270.9 MB, free: 8.363 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.06703/0.06703, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003995/0.0003996, allocations: 20 kB / 392.7 MB, free: 66.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07002/0.07044, allocations: 50.37 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.001646/0.07212, allocations: 1.563 MB / 444.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000996/0.07313, allocations: 0.933 MB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.663e-05/0.07323, allocations: 0 / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004353/0.07367, allocations: 139.6 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.07389, allocations: 91.69 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003668/0.07427, allocations: 167.6 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.07443, allocations: 163.5 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.082e-05/0.07453, allocations: 29.53 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.651e-05/0.07461, allocations: 71.62 kB / 446.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.761e-05/0.0747, allocations: 63.7 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.07472, allocations: 0 / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.532e-05/0.07482, allocations: 47.97 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.287e-05/0.07487, allocations: 35.84 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.602e-05/0.07492, allocations: 57.58 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.07507, allocations: 155.9 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.07508, allocations: 0 / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.07508, allocations: 0 / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.07509, allocations: 0 / 446.5 MB, free: 12.27 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005165/0.07561, allocations: 488.1 kB / 447 MB, free: 11.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.07565, allocations: 12.03 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.064e-05/0.0757, allocations: 23.72 kB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.07594, allocations: 257.6 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.07597, allocations: 11.94 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.07599, allocations: 4 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003597/0.07635, allocations: 163.6 kB / 447.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.07638, allocations: 0 / 447.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.07641, allocations: 0 / 447.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.07642, allocations: 11.88 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.07656, allocations: 35.97 kB / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/0.07714, allocations: 458.4 kB / 448 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.07743, allocations: 134.5 kB / 448.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.07756, allocations: 59.36 kB / 448.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.0776, allocations: 0 / 448.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.07781, allocations: 97.09 kB / 448.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.873e-06/0.07783, allocations: 3.938 kB / 448.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004551/0.07829, allocations: 145.4 kB / 448.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.07836, allocations: 170.1 kB / 448.6 MB, free: 9.945 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.07867, allocations: 265.3 kB / 448.8 MB, free: 9.676 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.0787, allocations: 37.69 kB / 448.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.502e-05/0.07878, allocations: 116.4 kB / 449 MB, free: 9.516 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.595e-05/0.07881, allocations: 15.81 kB / 449 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.07883, allocations: 0 / 449 MB, free: 9.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.113e-05/0.0789, allocations: 330.8 kB / 449.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.572e-05/0.079, allocations: 20 kB / 449.3 MB, free: 9.148 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.07912, allocations: 82.84 kB / 449.4 MB, free: 9.043 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.752e-05/0.07923, allocations: 31.94 kB / 449.4 MB, free: 9.012 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.07925, allocations: 0 / 449.4 MB, free: 9.012 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002903/0.07955, allocations: 129.4 kB / 449.6 MB, free: 8.879 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.07957, allocations: 4 kB / 449.6 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.07959, allocations: 4 kB / 449.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.07961, allocations: 0 / 449.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.07972, allocations: 15.98 kB / 449.6 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.07974, allocations: 3.953 kB / 449.6 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.07987, allocations: 19.84 kB / 449.6 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.07989, allocations: 7.984 kB / 449.6 MB, free: 8.824 MB / 298.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.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.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.0001273/0.08003, allocations: 149.7 kB / 449.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.08014, allocations: 69.45 kB / 449.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.974e-05/0.08021, allocations: 29.64 kB / 449.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.08023, allocations: 0 / 449.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.08024, allocations: 4 kB / 449.9 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.08025, allocations: 3.953 kB / 449.9 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.08047, allocations: 233.5 kB / 450.1 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.08049, allocations: 0 / 450.1 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.561e-05/0.08053, allocations: 4 kB / 450.1 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.08055, allocations: 4.062 kB / 450.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.08057, allocations: 11.98 kB / 450.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.08058, allocations: 320 / 450.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.0806, allocations: 4 kB / 450.1 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000296/0.0809, allocations: 171.4 kB / 450.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.011e-05/0.08101, allocations: 116.8 kB / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.08106, allocations: 8 kB / 450.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.08117, allocations: 7.984 kB / 450.4 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/0.08122, allocations: 4 kB / 450.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.08125, allocations: 4 kB / 450.4 MB, free: 7.906 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002108/0.08147, allocations: 196.4 kB / 450.6 MB, free: 7.715 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.08148, allocations: 0 / 450.6 MB, free: 7.715 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000444/0.08193, allocations: 39.89 kB / 450.7 MB, free: 7.676 MB / 298.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.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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 (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.001157/0.0831, allocations: 433.2 kB / 451.1 MB, free: 7.242 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002619/0.08338, allocations: 71.91 kB / 451.1 MB, free: 7.172 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.0834, allocations: 4 kB / 451.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.901e-05/0.08351, allocations: 31.92 kB / 451.2 MB, free: 7.137 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005548/0.08407, allocations: 64.92 kB / 451.2 MB, free: 7.074 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006399/0.08473, allocations: 390.4 kB / 451.6 MB, free: 6.652 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.08493, allocations: 0.7322 MB / 452.4 MB, free: 5.895 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.747e-05/0.085, allocations: 23.44 kB / 452.4 MB, free: 5.871 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.08501, allocations: 0 / 452.4 MB, free: 5.871 MB / 298.7 MB Notification: Performance of Templates: time 0.005412/0.09043, allocations: 2.668 MB / 455.1 MB, free: 3.199 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches