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.000903/0.000903, allocations: 91.17 kB / 17.31 MB, free: 6.535 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.0009705/0.0009705, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.268/1.268, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002268, allocations: 11.92 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0718/0.07204, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.001884/0.07396, allocations: 1.582 MB / 354.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.07545, allocations: 1.072 MB / 355.1 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.933e-05/0.07555, allocations: 11.94 kB / 355.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.0758, allocations: 63.78 kB / 355.2 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.07601, allocations: 83.72 kB / 355.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.07663, allocations: 230.6 kB / 355.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.07683, allocations: 163.5 kB / 355.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.564e-05/0.07693, allocations: 25.56 kB / 355.7 MB, free: 480 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.218e-05/0.07703, allocations: 67.64 kB / 355.8 MB, free: 412 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.07714, allocations: 71.67 kB / 355.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.629e-05/0.07717, allocations: 0 / 355.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.07729, allocations: 47.98 kB / 355.9 MB, free: 292 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.128e-05/0.07737, allocations: 51.77 kB / 355.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.705e-05/0.07746, allocations: 101.2 kB / 356 MB, free: 132 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.07767, allocations: 163.9 kB / 356.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.07768, allocations: 0 / 356.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.07768, allocations: 0 / 356.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.07769, allocations: 4 kB / 356.2 MB, free: 15.96 MB / 302.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.0005641/0.07826, allocations: 0.4923 MB / 356.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.0783, allocations: 16.02 kB / 356.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.07836, allocations: 20.66 kB / 356.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.07865, allocations: 279.6 kB / 357 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.07868, allocations: 12.38 kB / 357 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.0787, allocations: 8.125 kB / 357 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.079, allocations: 155.6 kB / 357.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.07902, allocations: 0 / 357.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.07904, allocations: 7.984 kB / 357.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.07905, allocations: 4 kB / 357.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.07916, allocations: 39.86 kB / 357.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/0.07962, allocations: 382.4 kB / 357.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.07986, allocations: 123.9 kB / 357.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.899e-05/0.07996, allocations: 46.55 kB / 357.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.08, allocations: 4 kB / 357.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001681/0.08017, allocations: 75.39 kB / 357.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.08018, allocations: 0 / 357.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003534/0.08054, allocations: 153.2 kB / 358 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.08062, allocations: 166.4 kB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.08095, allocations: 330.6 kB / 358.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.08098, allocations: 29.7 kB / 358.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.841e-05/0.08106, allocations: 132 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.08109, allocations: 11.81 kB / 358.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.08113, allocations: 21.7 kB / 358.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.08123, allocations: 334.8 kB / 359 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.173e-05/0.08131, allocations: 23.98 kB / 359 MB, free: 12.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.08142, allocations: 86.78 kB / 359.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.08158, allocations: 92.47 kB / 359.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.08159, allocations: 4 kB / 359.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002243/0.08182, allocations: 113.4 kB / 359.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.08185, allocations: 4 kB / 359.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.08186, allocations: 7.984 kB / 359.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.08188, allocations: 3.938 kB / 359.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.08198, allocations: 19.98 kB / 359.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.08199, allocations: 0 / 359.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.438e-05/0.08208, allocations: 19.95 kB / 359.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-06/0.0821, allocations: 11.94 kB / 359.4 MB, free: 12.44 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,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.0001191/0.08223, allocations: 154.6 kB / 359.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.783e-05/0.08231, allocations: 61.5 kB / 359.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.08237, allocations: 29.7 kB / 359.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.08238, allocations: 0 / 359.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.08239, allocations: 4 kB / 359.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.0824, allocations: 3.938 kB / 359.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.08259, allocations: 241.5 kB / 359.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.0826, allocations: 0 / 359.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.716e-05/0.08267, allocations: 15.92 kB / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.08268, allocations: 4 kB / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.0827, allocations: 0 / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.08271, allocations: 0 / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.08271, allocations: 4 kB / 359.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.08297, allocations: 166.5 kB / 360 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.841e-05/0.08306, allocations: 112.8 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.0831, allocations: 8 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.119e-05/0.08318, allocations: 4 kB / 360.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/0.08323, allocations: 12.14 kB / 360.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.08326, allocations: 15.88 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002157/0.08348, allocations: 241.9 kB / 360.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08349, allocations: 0 / 360.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002614/0.08375, allocations: 32 kB / 360.5 MB, free: 11.25 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,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.0009021/0.08466, allocations: 423.8 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002001/0.08488, allocations: 71.84 kB / 360.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.08489, allocations: 3.938 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.049e-05/0.08498, allocations: 27.98 kB / 361 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.08538, allocations: 79.83 kB / 361.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005566/0.08595, allocations: 445.9 kB / 361.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.08621, allocations: 0.7361 MB / 362.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.012e-05/0.08627, allocations: 27.42 kB / 362.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08628, allocations: 0 / 362.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of Templates: time 0.004517/0.0908, allocations: 2.84 MB / 365.1 MB, free: 6.715 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/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