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.001159/0.001159, allocations: 111.8 kB / 17.74 MB, free: 5.359 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.001169/0.001169, allocations: 177.5 kB / 18.66 MB, free: 4.449 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.388/1.388, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 47.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3379, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003644/0.3416, allocations: 1.869 MB / 403.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.3435, allocations: 1.126 MB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.3437, allocations: 7.938 kB / 404.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003498/0.3441, allocations: 67.67 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002749/0.3443, allocations: 87.66 kB / 404.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007727/0.3451, allocations: 260.9 kB / 404.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002474/0.3454, allocations: 167.5 kB / 405 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3455, allocations: 33.55 kB / 405 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.3456, allocations: 79.62 kB / 405.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.3458, allocations: 71.69 kB / 405.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.858e-05/0.3458, allocations: 8 kB / 405.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.346, allocations: 67.95 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.498e-05/0.3461, allocations: 51.77 kB / 405.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.2e-05/0.3462, allocations: 75.48 kB / 405.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003242/0.3465, allocations: 240.3 kB / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3465, allocations: 0 / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3465, allocations: 0 / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3466, allocations: 0 / 405.6 MB, free: 4.672 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.0007663/0.3473, allocations: 0.5311 MB / 406.1 MB, free: 4.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.3474, allocations: 15.83 kB / 406.1 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.427e-05/0.3474, allocations: 24.66 kB / 406.2 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.3479, allocations: 283.6 kB / 406.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.3479, allocations: 8.359 kB / 406.4 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.3479, allocations: 16.06 kB / 406.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003485/0.3483, allocations: 159.5 kB / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.3483, allocations: 0 / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.3483, allocations: 0 / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3483, allocations: 4 kB / 406.6 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.3485, allocations: 39.97 kB / 406.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005275/0.349, allocations: 382.4 kB / 407 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.3493, allocations: 115.9 kB / 407.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.729e-05/0.3494, allocations: 46.56 kB / 407.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.3494, allocations: 3.984 kB / 407.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.3496, allocations: 83.33 kB / 407.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.3496, allocations: 0 / 407.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003935/0.35, allocations: 153.3 kB / 407.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.3501, allocations: 158.2 kB / 407.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.3505, allocations: 326.7 kB / 407.9 MB, free: 2.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.3505, allocations: 25.7 kB / 407.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.389e-05/0.3506, allocations: 136.2 kB / 408.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.3506, allocations: 19.75 kB / 408.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.3507, allocations: 33.7 kB / 408.1 MB, free: 1.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3509, allocations: 334.7 kB / 408.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.926e-05/0.3509, allocations: 23.98 kB / 408.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.3511, allocations: 94.78 kB / 408.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.3512, allocations: 80.22 kB / 408.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3512, allocations: 0 / 408.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002279/0.3515, allocations: 133.3 kB / 408.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3515, allocations: 4 kB / 408.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.3515, allocations: 0 / 408.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3515, allocations: 4 kB / 408.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.3516, allocations: 16 kB / 408.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.3517, allocations: 3.984 kB / 408.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.612e-05/0.3517, allocations: 11.84 kB / 408.8 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.3518, allocations: 4 kB / 408.8 MB, free: 1.105 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.0001371/0.3519, allocations: 161.9 kB / 409 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.513e-05/0.352, allocations: 69.34 kB / 409 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.516e-05/0.3521, allocations: 25.7 kB / 409.1 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3521, allocations: 4 kB / 409.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3521, allocations: 0 / 409.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.3521, allocations: 3.938 kB / 409.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.3523, allocations: 241.6 kB / 409.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3523, allocations: 4.312 kB / 409.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.487e-05/0.3524, allocations: 15.98 kB / 409.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3524, allocations: 4.062 kB / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.3524, allocations: 7.938 kB / 409.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3524, allocations: 0 / 409.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3524, allocations: 0 / 409.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.3527, allocations: 166.4 kB / 409.5 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.028e-05/0.3528, allocations: 112.9 kB / 409.6 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.3529, allocations: 4 kB / 409.6 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.665e-05/0.353, allocations: 4 kB / 409.6 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.235e-05/0.353, allocations: 15.92 kB / 409.6 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.353, allocations: 7.938 kB / 409.6 MB, free: 168 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002451/0.3533, allocations: 245.9 kB / 409.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3533, allocations: 0 / 409.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002614/0.3536, allocations: 32 kB / 409.9 MB, free: 15.89 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.0009619/0.3545, allocations: 431.6 kB / 410.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002311/0.3548, allocations: 75.91 kB / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3548, allocations: 0 / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.877e-05/0.3549, allocations: 27.98 kB / 410.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.3553, allocations: 54 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006053/0.3559, allocations: 403.1 kB / 410.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.3563, allocations: 0.7436 MB / 411.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.922e-05/0.3563, allocations: 19.44 kB / 411.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3563, allocations: 0 / 411.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of Templates: time 0.004801/0.3611, allocations: 2.907 MB / 414.5 MB, free: 11.36 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/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