Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|superSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|superSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001679, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.002051/0.002052, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.505/1.505, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 58.58 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1079, allocations: 49.44 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.004151/0.1121, allocations: 1.872 MB / 352.6 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.1143, allocations: 1.13 MB / 353.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.1145, allocations: 11.88 kB / 353.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003919/0.1149, allocations: 71.66 kB / 353.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004045/0.1154, allocations: 91.59 kB / 353.9 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.1164, allocations: 268.9 kB / 354.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000327/0.1168, allocations: 167.5 kB / 354.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.1169, allocations: 29.55 kB / 354.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.1171, allocations: 75.7 kB / 354.4 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.1173, allocations: 79.61 kB / 354.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.531e-05/0.1173, allocations: 8 kB / 354.5 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.1175, allocations: 55.98 kB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.1177, allocations: 59.81 kB / 354.6 MB, free: 492 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.1178, allocations: 75.48 kB / 354.7 MB, free: 416 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.1182, allocations: 227.5 kB / 354.9 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1182, allocations: 0 / 354.9 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1183, allocations: 8 kB / 354.9 MB, free: 180 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1183, allocations: 3.938 kB / 354.9 MB, free: 176 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009252/0.1192, allocations: 0.5273 MB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.1193, allocations: 11.89 kB / 355.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.1194, allocations: 24.66 kB / 355.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.1198, allocations: 283.6 kB / 355.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.1198, allocations: 4.375 kB / 355.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.1198, allocations: 16.06 kB / 355.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003776/0.1202, allocations: 159.6 kB / 356 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1202, allocations: 0 / 356 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.1203, allocations: 0 / 356 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.1203, allocations: 4 kB / 356 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.1204, allocations: 35.91 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005921/0.121, allocations: 382.4 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.1213, allocations: 119.9 kB / 356.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.1214, allocations: 50.5 kB / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.1214, allocations: 4.062 kB / 356.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.1217, allocations: 79.38 kB / 356.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 3.286e-06/0.1217, allocations: 3.984 kB / 356.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004291/0.1222, allocations: 157.2 kB / 356.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.955e-05/0.1223, allocations: 158.2 kB / 356.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.1226, allocations: 326.7 kB / 357.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.1227, allocations: 25.7 kB / 357.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.845e-05/0.1228, allocations: 132.3 kB / 357.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.1228, allocations: 19.8 kB / 357.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/0.1229, allocations: 25.72 kB / 357.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.123, allocations: 338.8 kB / 357.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.967e-05/0.1231, allocations: 23.98 kB / 357.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.1233, allocations: 94.77 kB / 357.9 MB, free: 12.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.1235, allocations: 80.22 kB / 358 MB, free: 12.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.1235, allocations: 0 / 358 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002647/0.1237, allocations: 129.3 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1238, allocations: 7.938 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.1238, allocations: 4 kB / 358.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.1238, allocations: 0 / 358.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.1239, allocations: 28.23 kB / 358.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.124, allocations: 0 / 358.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.836e-05/0.1241, allocations: 11.94 kB / 358.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.1241, allocations: 7.984 kB / 358.2 MB, free: 12.61 MB / 302.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,superSample1.y,superSample1.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.0001522/0.1242, allocations: 162.4 kB / 358.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.484e-05/0.1243, allocations: 69.34 kB / 358.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.988e-05/0.1244, allocations: 25.72 kB / 358.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.1244, allocations: 3.984 kB / 358.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1244, allocations: 0 / 358.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.1244, allocations: 7.938 kB / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.1247, allocations: 233.6 kB / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1247, allocations: 0 / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/0.1248, allocations: 8 kB / 358.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.1248, allocations: 4.047 kB / 358.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.1248, allocations: 8 kB / 358.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.1248, allocations: 0 / 358.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1248, allocations: 3.938 kB / 358.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.1251, allocations: 166.4 kB / 358.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.1252, allocations: 112.8 kB / 358.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.467e-05/0.1253, allocations: 11.98 kB / 359 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.372e-05/0.1253, allocations: 0 / 359 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.1254, allocations: 11.98 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.1254, allocations: 7.938 kB / 359 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.1257, allocations: 241.9 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1257, allocations: 0 / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.126, allocations: 36 kB / 359.2 MB, free: 11.41 MB / 302.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,superSample1.y,sample1.y,superSample1.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.001062/0.1271, allocations: 430.3 kB / 359.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002769/0.1273, allocations: 79.83 kB / 359.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1274, allocations: 0 / 359.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.661e-05/0.1274, allocations: 27.98 kB / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.1279, allocations: 68.3 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007064/0.1286, allocations: 399.3 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.1289, allocations: 0.7397 MB / 361 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.782e-05/0.129, allocations: 23.42 kB / 361 MB, free: 9.746 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.129, allocations: 0 / 361 MB, free: 9.746 MB / 302.1 MB Notification: Performance of Templates: time 0.005988/0.135, allocations: 2.892 MB / 363.9 MB, free: 6.871 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches