Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.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.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 115 kB / 16.63 MB, free: 6.812 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.001167/0.001167, allocations: 186 kB / 17.55 MB, free: 5.934 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.367/1.367, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 47.08 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1095, allocations: 49.44 MB / 349.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003504/0.1131, allocations: 1.955 MB / 351.5 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.1149, allocations: 1.118 MB / 352.6 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.115, allocations: 7.938 kB / 352.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000347/0.1154, allocations: 59.8 kB / 352.7 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.1157, allocations: 87.72 kB / 352.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000724/0.1164, allocations: 232.1 kB / 353 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.1167, allocations: 175.5 kB / 353.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.1169, allocations: 45.53 kB / 353.2 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.1171, allocations: 75.69 kB / 353.3 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.1172, allocations: 83.61 kB / 353.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.1172, allocations: 12 kB / 353.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.1174, allocations: 59.97 kB / 353.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.871e-05/0.1175, allocations: 51.83 kB / 353.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.1176, allocations: 83.42 kB / 353.6 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003362/0.1179, allocations: 239.4 kB / 353.8 MB, free: 476 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.118, allocations: 4 kB / 353.8 MB, free: 472 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.118, allocations: 4 kB / 353.8 MB, free: 468 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.118, allocations: 0 / 353.8 MB, free: 468 kB / 286.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.0008354/0.1188, allocations: 0.535 MB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1189, allocations: 15.89 kB / 354.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.141e-05/0.119, allocations: 20.66 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.1193, allocations: 287.6 kB / 354.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.1193, allocations: 4.375 kB / 354.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.1194, allocations: 12.12 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.1197, allocations: 176.3 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.1198, allocations: 4 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.1198, allocations: 7.984 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.1198, allocations: 0 / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.1199, allocations: 43.92 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005575/0.1205, allocations: 474.5 kB / 355.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.1208, allocations: 134.5 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.1209, allocations: 63.34 kB / 355.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.1209, allocations: 12 kB / 355.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.1211, allocations: 93.03 kB / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.1211, allocations: 0 / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004151/0.1215, allocations: 173.5 kB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.754e-05/0.1216, allocations: 187.9 kB / 356 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.122, allocations: 330.6 kB / 356.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.122, allocations: 37.62 kB / 356.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.01e-05/0.1221, allocations: 124.4 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.824e-05/0.1221, allocations: 19.75 kB / 356.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.214e-05/0.1222, allocations: 33.7 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1223, allocations: 342.8 kB / 356.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.1224, allocations: 23.98 kB / 356.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.1225, allocations: 95.08 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.1227, allocations: 97.08 kB / 357.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1227, allocations: 4 kB / 357.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002451/0.123, allocations: 137.7 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.123, allocations: 14.62 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.123, allocations: 4 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.123, allocations: 0 / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.1231, allocations: 23.98 kB / 357.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.964e-06/0.1232, allocations: 4 kB / 357.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.041e-05/0.1232, allocations: 11.94 kB / 357.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.1233, allocations: 4 kB / 357.3 MB, free: 12.59 MB / 302.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.000132/0.1234, allocations: 153.8 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.584e-05/0.1235, allocations: 73.41 kB / 357.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.928e-05/0.1236, allocations: 29.7 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1236, allocations: 4.031 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.1236, allocations: 4 kB / 357.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1236, allocations: 7.875 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.1238, allocations: 253.5 kB / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1238, allocations: 4 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.461e-05/0.1239, allocations: 15.98 kB / 357.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1239, allocations: 0 / 357.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.124, allocations: 8.062 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.124, allocations: 0 / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.124, allocations: 0 / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.1243, allocations: 187.2 kB / 358 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.891e-05/0.1244, allocations: 112.9 kB / 358.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.1244, allocations: 4 kB / 358.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.066e-05/0.1245, allocations: 11.98 kB / 358.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.1245, allocations: 7.938 kB / 358.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.1246, allocations: 11.98 kB / 358.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002232/0.1248, allocations: 241.9 kB / 358.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1248, allocations: 4 kB / 358.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000273/0.1251, allocations: 35.91 kB / 358.5 MB, free: 11.33 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,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.0009255/0.126, allocations: 433.5 kB / 358.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002378/0.1263, allocations: 87.83 kB / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1263, allocations: 0 / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.483e-05/0.1264, allocations: 43.92 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.1268, allocations: 79.03 kB / 359.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005974/0.1274, allocations: 434.6 kB / 359.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.1277, allocations: 0.7398 MB / 360.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.931e-05/0.1278, allocations: 37.53 kB / 360.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.287e-05/0.1279, allocations: 23.42 kB / 360.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1279, allocations: 0 / 360.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Templates: time 0.006219/0.1341, allocations: 2.881 MB / 363.2 MB, free: 6.711 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches