Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002467/0.002467, allocations: 200.6 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.619/1.619, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3383, allocations: 50.55 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003903/0.3423, allocations: 1.891 MB / 411.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.3451, allocations: 1.266 MB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.3453, allocations: 0 / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005392/0.3459, allocations: 71.66 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005342/0.3464, allocations: 135.4 kB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009268/0.3474, allocations: 223.3 kB / 412.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003097/0.3477, allocations: 179.5 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.3479, allocations: 29.53 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.348, allocations: 79.62 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.3482, allocations: 75.69 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.3482, allocations: 8 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.3484, allocations: 71.95 kB / 413.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.3485, allocations: 55.83 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.3486, allocations: 87.36 kB / 413.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.3491, allocations: 235.1 kB / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.404e-05/0.3491, allocations: 4 kB / 413.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3491, allocations: 0 / 413.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.3491, allocations: 0 / 413.6 MB, free: 13.16 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.001012/0.3501, allocations: 0.544 MB / 414.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.3502, allocations: 8.031 kB / 414.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.473e-05/0.3503, allocations: 24.66 kB / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006067/0.3509, allocations: 287.6 kB / 414.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.3509, allocations: 4.375 kB / 414.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.351, allocations: 16.11 kB / 414.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004514/0.3514, allocations: 163 kB / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.3515, allocations: 3.938 kB / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.899e-05/0.3515, allocations: 0 / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.3515, allocations: 4 kB / 414.7 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.3516, allocations: 31.98 kB / 414.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.3523, allocations: 386.4 kB / 415.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.3526, allocations: 119.9 kB / 415.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.3527, allocations: 46.56 kB / 415.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.365e-05/0.3528, allocations: 4 kB / 415.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.353, allocations: 79.31 kB / 415.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.353, allocations: 0 / 415.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004403/0.3535, allocations: 149.3 kB / 415.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.3536, allocations: 166.5 kB / 415.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003706/0.354, allocations: 330.7 kB / 415.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.354, allocations: 37.64 kB / 416 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.3541, allocations: 128 kB / 416.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.3542, allocations: 23.73 kB / 416.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.837e-05/0.3542, allocations: 33.7 kB / 416.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3544, allocations: 330.8 kB / 416.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.213e-05/0.3545, allocations: 31.92 kB / 416.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.3546, allocations: 86.84 kB / 416.6 MB, free: 9.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.3548, allocations: 84.22 kB / 416.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3548, allocations: 256 / 416.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002279/0.355, allocations: 129.3 kB / 416.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.355, allocations: 6.812 kB / 416.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.355, allocations: 0 / 416.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.3551, allocations: 4 kB / 416.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.3552, allocations: 24.11 kB / 416.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.3552, allocations: 4 kB / 416.9 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.855e-05/0.3553, allocations: 11.92 kB / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.3553, allocations: 4 kB / 416.9 MB, free: 9.57 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.0001674/0.3555, allocations: 157.7 kB / 417 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.3556, allocations: 65.41 kB / 417.1 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.932e-05/0.3557, allocations: 29.7 kB / 417.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.3557, allocations: 0 / 417.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3557, allocations: 4.062 kB / 417.1 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.3557, allocations: 7.938 kB / 417.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.3559, allocations: 241.5 kB / 417.4 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3559, allocations: 0 / 417.4 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.609e-05/0.356, allocations: 11.98 kB / 417.4 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.356, allocations: 4 kB / 417.4 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.3561, allocations: 48 / 417.4 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3561, allocations: 3.938 kB / 417.4 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.315e-05/0.3561, allocations: 7.984 kB / 417.4 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.3564, allocations: 174.4 kB / 417.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.883e-05/0.3565, allocations: 112.8 kB / 417.7 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.307e-05/0.3565, allocations: 4 kB / 417.7 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.312e-05/0.3566, allocations: 8 kB / 417.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.3566, allocations: 7.984 kB / 417.7 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.3567, allocations: 7.938 kB / 417.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002826/0.357, allocations: 254 kB / 417.9 MB, free: 8.383 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.357, allocations: 3.938 kB / 417.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.3573, allocations: 36 kB / 418 MB, free: 8.344 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.001148/0.3584, allocations: 405.3 kB / 418.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002738/0.3587, allocations: 71.91 kB / 418.4 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3587, allocations: 256 / 418.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.02e-05/0.3588, allocations: 31.98 kB / 418.5 MB, free: 7.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.3593, allocations: 79.64 kB / 418.6 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007348/0.36, allocations: 373.1 kB / 418.9 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.3604, allocations: 0.7477 MB / 419.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.998e-05/0.3605, allocations: 21.55 kB / 419.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.616e-05/0.3606, allocations: 27.42 kB / 419.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3606, allocations: 0 / 419.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of Templates: time 0.00743/0.368, allocations: 2.847 MB / 422.6 MB, free: 3.852 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches