Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 110.6 kB / 18.44 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 211.8 kB / 19.4 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.415/1.415, allocations: 227.6 MB / 247.8 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 59.91 kB / 359.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2562, allocations: 50.54 MB / 410.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003618/0.2598, allocations: 1.897 MB / 412.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.2621, allocations: 1.27 MB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.2622, allocations: 4 kB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003092/0.2626, allocations: 71.67 kB / 413.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003556/0.2629, allocations: 135.4 kB / 413.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006528/0.2636, allocations: 221.9 kB / 413.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.2638, allocations: 183.5 kB / 414 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.2639, allocations: 25.55 kB / 414 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.2641, allocations: 75.69 kB / 414.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.2642, allocations: 75.62 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.2642, allocations: 12 kB / 414.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.2644, allocations: 71.89 kB / 414.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.331e-05/0.2644, allocations: 55.77 kB / 414.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.976e-05/0.2645, allocations: 75.48 kB / 414.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.2649, allocations: 250.8 kB / 414.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2649, allocations: 3.938 kB / 414.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2649, allocations: 0 / 414.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.2649, allocations: 0 / 414.6 MB, free: 13.05 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007647/0.2656, allocations: 0.5465 MB / 415.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.2657, allocations: 8.031 kB / 415.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.002e-05/0.2657, allocations: 24.8 kB / 415.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004628/0.2662, allocations: 287.8 kB / 415.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.2662, allocations: 8.375 kB / 415.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.2663, allocations: 12.06 kB / 415.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003491/0.2666, allocations: 155.6 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.2666, allocations: 0 / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.2666, allocations: 0 / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.2666, allocations: 4 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.2667, allocations: 43.91 kB / 415.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/0.2673, allocations: 386.4 kB / 416 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.2675, allocations: 111.9 kB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.12e-05/0.2676, allocations: 46.56 kB / 416.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.2677, allocations: 0 / 416.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.2678, allocations: 95.25 kB / 416.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.2678, allocations: 0 / 416.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003914/0.2682, allocations: 149.5 kB / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.2683, allocations: 158.2 kB / 416.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.2687, allocations: 338.7 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.2687, allocations: 29.7 kB / 417 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.2688, allocations: 136.3 kB / 417.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.2688, allocations: 19.89 kB / 417.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.2689, allocations: 29.72 kB / 417.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2691, allocations: 334.8 kB / 417.5 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.266e-05/0.2691, allocations: 23.98 kB / 417.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.2692, allocations: 90.84 kB / 417.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.2694, allocations: 80.22 kB / 417.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2694, allocations: 0 / 417.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002369/0.2696, allocations: 129.4 kB / 417.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.2697, allocations: 4 kB / 417.8 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2697, allocations: 0 / 417.8 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2697, allocations: 4 kB / 417.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.2698, allocations: 19.92 kB / 417.8 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.2698, allocations: 7.938 kB / 417.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.815e-05/0.2699, allocations: 11.94 kB / 417.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.2699, allocations: 7.984 kB / 417.8 MB, free: 9.457 MB / 334.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.0001539/0.2701, allocations: 161.8 kB / 418 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.754e-05/0.2702, allocations: 73.44 kB / 418.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.343e-05/0.2702, allocations: 29.73 kB / 418.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2702, allocations: 4.25 kB / 418.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2702, allocations: 0 / 418.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2702, allocations: 3.938 kB / 418.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.2705, allocations: 249.6 kB / 418.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2705, allocations: 0 / 418.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.812e-05/0.2705, allocations: 11.98 kB / 418.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2705, allocations: 64 / 418.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.2705, allocations: 8 kB / 418.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2705, allocations: 0 / 418.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.2705, allocations: 4 kB / 418.4 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.2708, allocations: 162.5 kB / 418.5 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.2709, allocations: 116.9 kB / 418.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.271, allocations: 8 kB / 418.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.436e-05/0.271, allocations: 4 kB / 418.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.2711, allocations: 15.92 kB / 418.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.2711, allocations: 7.938 kB / 418.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002516/0.2713, allocations: 249.9 kB / 418.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2713, allocations: 0 / 418.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000266/0.2716, allocations: 35.94 kB / 419 MB, free: 8.227 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.001438/0.273, allocations: 422.3 kB / 419.4 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000237/0.2733, allocations: 75.84 kB / 419.4 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2733, allocations: 0 / 419.4 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.099e-05/0.2734, allocations: 27.92 kB / 419.5 MB, free: 7.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.2738, allocations: 69.58 kB / 419.5 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006292/0.2744, allocations: 373.2 kB / 419.9 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.2748, allocations: 0.7475 MB / 420.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.276e-05/0.2749, allocations: 25.53 kB / 420.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.185e-05/0.2749, allocations: 27.42 kB / 420.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2749, allocations: 0 / 420.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of Templates: time 0.006869/0.2818, allocations: 2.852 MB / 423.5 MB, free: 3.75 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches