Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001611/0.001611, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002161/0.002161, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.62/2.62, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002348/0.002348, allocations: 59.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6722/0.6746, allocations: 50.54 MB / 409.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.007578/0.6823, allocations: 1.918 MB / 411.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003395/0.6858, allocations: 1.216 MB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.6861, allocations: 7.938 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009143/0.687, allocations: 143.5 kB / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006367/0.6877, allocations: 159.4 kB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008713/0.6886, allocations: 178.9 kB / 413.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004226/0.689, allocations: 199.4 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.6892, allocations: 37.66 kB / 413.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.6894, allocations: 79.69 kB / 413.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.6896, allocations: 75.58 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.6897, allocations: 8 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.6899, allocations: 59.95 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.6901, allocations: 47.84 kB / 414 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.6902, allocations: 75.47 kB / 414.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005608/0.6908, allocations: 215 kB / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/0.6908, allocations: 0 / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.6908, allocations: 0 / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.6909, allocations: 4 kB / 414.3 MB, free: 13.14 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.001447/0.6923, allocations: 0.5209 MB / 414.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.706e-05/0.6924, allocations: 12.03 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.6925, allocations: 20.66 kB / 414.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006149/0.6932, allocations: 270.8 kB / 415.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.6932, allocations: 8.312 kB / 415.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.6932, allocations: 16.12 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005466/0.6938, allocations: 155.6 kB / 415.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.6938, allocations: 3.938 kB / 415.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.6939, allocations: 4 kB / 415.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.6939, allocations: 11.94 kB / 415.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.6941, allocations: 35.97 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009576/0.695, allocations: 458.5 kB / 415.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.6954, allocations: 138.5 kB / 415.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.6956, allocations: 55.42 kB / 416 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.879e-05/0.6957, allocations: 8 kB / 416 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.696, allocations: 101 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.874e-06/0.696, allocations: 0 / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006078/0.6966, allocations: 153.3 kB / 416.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001932/0.6968, allocations: 170.1 kB / 416.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.6973, allocations: 269 kB / 416.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.6974, allocations: 29.7 kB / 416.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.6975, allocations: 116.4 kB / 416.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.6976, allocations: 19.8 kB / 416.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.776e-05/0.6977, allocations: 41.98 kB / 416.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00024/0.6979, allocations: 330.8 kB / 417.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.303e-05/0.698, allocations: 27.98 kB / 417.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.6982, allocations: 70.86 kB / 417.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.6985, allocations: 97.05 kB / 417.4 MB, free: 9.684 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.6985, allocations: 0 / 417.4 MB, free: 9.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003597/0.6989, allocations: 125.5 kB / 417.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.6989, allocations: 11.12 kB / 417.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.6989, allocations: 0 / 417.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.729e-05/0.699, allocations: 0 / 417.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.6991, allocations: 19.98 kB / 417.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.6991, allocations: 4 kB / 417.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.6993, allocations: 15.78 kB / 417.6 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.6993, allocations: 4 kB / 417.6 MB, free: 9.504 MB / 334.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,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.0002365/0.6995, allocations: 153.7 kB / 417.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.6997, allocations: 73.47 kB / 417.8 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.719e-05/0.6998, allocations: 25.7 kB / 417.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.6998, allocations: 0 / 417.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.6998, allocations: 4 kB / 417.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.6999, allocations: 3.938 kB / 417.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004042/0.7003, allocations: 233.9 kB / 418.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.7003, allocations: 7.938 kB / 418.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.425e-05/0.7004, allocations: 11.98 kB / 418.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.7004, allocations: 3.938 kB / 418.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.7004, allocations: 8.062 kB / 418.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.7004, allocations: 0 / 418.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.7004, allocations: 0 / 418.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004099/0.7008, allocations: 175.3 kB / 418.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.701, allocations: 112.8 kB / 418.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.679e-05/0.7011, allocations: 12 kB / 418.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.902e-05/0.7012, allocations: 3.984 kB / 418.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.7013, allocations: 7.938 kB / 418.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.7013, allocations: 8 kB / 418.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003664/0.7017, allocations: 208.4 kB / 418.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7017, allocations: 0 / 418.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004548/0.7022, allocations: 35.94 kB / 418.6 MB, free: 8.324 MB / 334.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,hold1.y,hold1.u,shiftSample1.y,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.001578/0.7038, allocations: 407.6 kB / 419 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003562/0.7041, allocations: 75.91 kB / 419.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.7041, allocations: 0 / 419.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.7043, allocations: 35.92 kB / 419.2 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.7049, allocations: 69.11 kB / 419.2 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.7059, allocations: 375.9 kB / 419.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/0.7065, allocations: 0.728 MB / 420.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.252e-05/0.7066, allocations: 23.42 kB / 420.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of SimCode: time 1.573e-06/0.7067, allocations: 4 kB / 420.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of Templates: time 0.008223/0.7149, allocations: 2.778 MB / 423.1 MB, free: 3.93 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches