Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.00131/0.00131, allocations: 192 kB / 18 MB, free: 5.219 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.513/1.513, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002238, allocations: 51.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4177/0.4199, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003432/0.4234, allocations: 1.872 MB / 402.6 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.4254, allocations: 1.126 MB / 403.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.4255, allocations: 3.938 kB / 403.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003585/0.4259, allocations: 71.66 kB / 403.8 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.4262, allocations: 95.58 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007349/0.4269, allocations: 254.8 kB / 404.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002416/0.4272, allocations: 171.5 kB / 404.3 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.4273, allocations: 33.52 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.4274, allocations: 71.7 kB / 404.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.4276, allocations: 79.69 kB / 404.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.4276, allocations: 8 kB / 404.5 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.4278, allocations: 71.88 kB / 404.6 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.4279, allocations: 51.78 kB / 404.6 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.428, allocations: 79.47 kB / 404.7 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003449/0.4284, allocations: 232.3 kB / 404.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4284, allocations: 0 / 404.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4284, allocations: 0 / 404.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.4284, allocations: 0 / 404.9 MB, free: 4.684 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007698/0.4292, allocations: 0.535 MB / 405.4 MB, free: 4.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.4293, allocations: 15.89 kB / 405.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.985e-05/0.4293, allocations: 20.66 kB / 405.5 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004073/0.4298, allocations: 287.5 kB / 405.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.4298, allocations: 8.375 kB / 405.8 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.4298, allocations: 8.125 kB / 405.8 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003697/0.4302, allocations: 162 kB / 405.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4302, allocations: 0 / 405.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.4302, allocations: 4 kB / 405.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.4302, allocations: 0 / 405.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.4304, allocations: 39.97 kB / 406 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005195/0.4309, allocations: 378.4 kB / 406.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/0.4312, allocations: 123.9 kB / 406.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.658e-05/0.4312, allocations: 42.56 kB / 406.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.4313, allocations: 4 kB / 406.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.4315, allocations: 83.31 kB / 406.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.4315, allocations: 0 / 406.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003932/0.4319, allocations: 153.3 kB / 406.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.409e-05/0.432, allocations: 166.1 kB / 406.9 MB, free: 2.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.4323, allocations: 322.7 kB / 407.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.4323, allocations: 29.7 kB / 407.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.865e-05/0.4324, allocations: 128 kB / 407.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/0.4325, allocations: 23.73 kB / 407.4 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.4325, allocations: 25.97 kB / 407.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4327, allocations: 342.8 kB / 407.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.968e-05/0.4327, allocations: 23.92 kB / 407.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.4329, allocations: 78.86 kB / 407.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.433, allocations: 88.2 kB / 407.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.433, allocations: 4 kB / 408 MB, free: 1.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002326/0.4333, allocations: 121.4 kB / 408.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.4333, allocations: 8.125 kB / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.4333, allocations: 4 kB / 408.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.4333, allocations: 0 / 408.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.4334, allocations: 19.98 kB / 408.1 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.4335, allocations: 4 kB / 408.1 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.63e-05/0.4335, allocations: 15.78 kB / 408.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.4336, allocations: 7.938 kB / 408.1 MB, free: 1.117 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001423/0.4337, allocations: 153.8 kB / 408.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.4338, allocations: 69.36 kB / 408.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.036e-05/0.4339, allocations: 29.7 kB / 408.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.4339, allocations: 0 / 408.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4339, allocations: 4 kB / 408.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.4339, allocations: 3.938 kB / 408.4 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.4341, allocations: 245.9 kB / 408.6 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4341, allocations: 4 kB / 408.6 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.4342, allocations: 8 kB / 408.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.4342, allocations: 4 kB / 408.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.4342, allocations: 3.984 kB / 408.6 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4342, allocations: 64 / 408.6 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4342, allocations: 8 kB / 408.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.4345, allocations: 166.4 kB / 408.8 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.363e-05/0.4346, allocations: 105 kB / 408.9 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.4346, allocations: 7.984 kB / 408.9 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.687e-05/0.4347, allocations: 11.98 kB / 408.9 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.4348, allocations: 8 kB / 408.9 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.4348, allocations: 11.92 kB / 409 MB, free: 184 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.435, allocations: 237.9 kB / 409.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.794e-06/0.435, allocations: 3.938 kB / 409.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.4353, allocations: 35.94 kB / 409.2 MB, free: 15.91 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.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 (9): * Single equations (assignments): 7 * 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.00102/0.4363, allocations: 427.8 kB / 409.6 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.4366, allocations: 71.91 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4366, allocations: 0 / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.96e-05/0.4367, allocations: 31.92 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.4371, allocations: 60.48 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006409/0.4378, allocations: 369.4 kB / 410.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.4381, allocations: 0.7436 MB / 410.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.724e-05/0.4382, allocations: 25.53 kB / 410.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.166e-05/0.4383, allocations: 27.38 kB / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of SimCode: time 1.773e-06/0.4383, allocations: 0 / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Templates: time 0.006579/0.4449, allocations: 2.811 MB / 413.8 MB, free: 11.48 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches