Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009031/0.0009031, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008348/0.0008348, allocations: 145.2 kB / 24.9 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9106/0.9106, allocations: 173.4 MB / 201.5 MB, free: 8.27 MB / 186.7 MB " [Timeout remaining time 179] 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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 268.5 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.206e-05/2.376e-05, allocations: 2.312 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002896/0.00292, allocations: 1.564 MB / 270 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004114/0.003331, allocations: 148.1 kB / 270.2 MB, free: 8.082 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.594e-05/0.003407, allocations: 0.5625 kB / 270.2 MB, free: 8.082 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.145e-05/0.003459, allocations: 3.938 kB / 270.2 MB, free: 8.078 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.003588, allocations: 16.53 kB / 270.2 MB, free: 8.062 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.00382, allocations: 33.66 kB / 270.2 MB, free: 8.031 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.554e-05/0.003916, allocations: 35.86 kB / 270.3 MB, free: 7.996 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.943e-05/0.003995, allocations: 11.98 kB / 270.3 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.635e-05/0.004052, allocations: 19.92 kB / 270.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.203e-05/0.004094, allocations: 11.97 kB / 270.3 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.004115, allocations: 5.469 kB / 270.3 MB, free: 7.949 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.129e-05/0.004126, allocations: 4 kB / 270.3 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.257e-05/0.004169, allocations: 11.94 kB / 270.3 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.544e-05/0.004194, allocations: 7.938 kB / 270.3 MB, free: 7.926 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001042/0.004298, allocations: 37.86 kB / 270.4 MB, free: 7.891 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.004301, allocations: 0 / 270.4 MB, free: 7.891 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.004302, allocations: 4 kB / 270.4 MB, free: 7.887 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.004305, allocations: 0 / 270.4 MB, free: 7.887 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003378/0.004643, allocations: 264.7 kB / 270.6 MB, free: 7.602 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.004678, allocations: 8.969 kB / 270.6 MB, free: 7.594 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.004711, allocations: 8.922 kB / 270.6 MB, free: 7.586 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.004878, allocations: 139.9 kB / 270.8 MB, free: 7.426 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-06/0.004886, allocations: 384 / 270.8 MB, free: 7.426 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.004898, allocations: 4.375 kB / 270.8 MB, free: 7.422 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.005102, allocations: 119.2 kB / 270.9 MB, free: 7.285 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.005113, allocations: 4.125 kB / 270.9 MB, free: 7.281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.00512, allocations: 0.9062 kB / 270.9 MB, free: 7.281 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.005126, allocations: 0.875 kB / 270.9 MB, free: 7.281 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.109e-05/0.005147, allocations: 13.69 kB / 270.9 MB, free: 7.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.00534, allocations: 153.1 kB / 271.1 MB, free: 7.102 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.005475, allocations: 49.11 kB / 271.1 MB, free: 7.035 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.466e-05/0.0055, allocations: 13.78 kB / 271.1 MB, free: 7.016 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.005515, allocations: 4.531 kB / 271.1 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.005539, allocations: 35.78 kB / 271.2 MB, free: 6.969 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 2.485e-06/0.005541, allocations: 3.984 kB / 271.2 MB, free: 6.965 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001303/0.005671, allocations: 54.11 kB / 271.2 MB, free: 6.906 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.005724, allocations: 84.98 kB / 271.3 MB, free: 6.805 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.062e-05/0.005814, allocations: 135.1 kB / 271.4 MB, free: 6.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.005827, allocations: 37.77 kB / 271.5 MB, free: 6.617 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.43e-05/0.005862, allocations: 80.14 kB / 271.6 MB, free: 6.535 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.676e-06/0.00587, allocations: 3.938 kB / 271.6 MB, free: 6.531 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.005901, allocations: 17.67 kB / 271.6 MB, free: 6.508 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.005995, allocations: 322.8 kB / 271.9 MB, free: 6.184 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.404e-06/0.006003, allocations: 0 / 271.9 MB, free: 6.184 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.006009, allocations: 0 / 271.9 MB, free: 6.184 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.314e-05/0.006032, allocations: 8.859 kB / 271.9 MB, free: 6.172 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.006033, allocations: 0 / 271.9 MB, free: 6.172 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.586e-05/0.006089, allocations: 33.64 kB / 271.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.006102, allocations: 12.09 kB / 272 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.006106, allocations: 0 / 272 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.006119, allocations: 3.984 kB / 272 MB, free: 6.117 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.035e-05/0.006159, allocations: 3.938 kB / 272 MB, free: 6.113 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-06/0.006161, allocations: 4 kB / 272 MB, free: 6.109 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.73e-05/0.006179, allocations: 0 / 272 MB, free: 6.109 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-06/0.006183, allocations: 0 / 272 MB, free: 6.109 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 7.071e-05/0.006254, allocations: 116.7 kB / 272.1 MB, free: 5.984 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.468e-05/0.006308, allocations: 37.69 kB / 272.1 MB, free: 5.941 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.118e-05/0.006339, allocations: 8.344 kB / 272.1 MB, free: 5.926 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.006343, allocations: 8 kB / 272.1 MB, free: 5.918 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.006346, allocations: 3.938 kB / 272.1 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.00635, allocations: 3.984 kB / 272.1 MB, free: 5.91 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.006479, allocations: 69.89 kB / 272.2 MB, free: 5.824 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.006481, allocations: 0 / 272.2 MB, free: 5.824 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.561e-05/0.006527, allocations: 15.92 kB / 272.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.006529, allocations: 0 / 272.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-06/0.006533, allocations: 0 / 272.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.006535, allocations: 0 / 272.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.006537, allocations: 0 / 272.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.253e-05/0.006629, allocations: 144.3 kB / 272.4 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-05/0.00666, allocations: 7.953 kB / 272.4 MB, free: 5.641 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.006672, allocations: 4 kB / 272.4 MB, free: 5.637 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.447e-05/0.006726, allocations: 7.938 kB / 272.4 MB, free: 5.629 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.092e-05/0.006747, allocations: 3.984 kB / 272.4 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.006753, allocations: 4 kB / 272.4 MB, free: 5.621 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.414e-05/0.006787, allocations: 31.58 kB / 272.4 MB, free: 5.59 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006787, allocations: 0 / 272.4 MB, free: 5.59 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002176/0.007004, allocations: 7.938 kB / 272.4 MB, free: 5.582 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 9.112e-05/0.007096, allocations: 88.45 kB / 272.5 MB, free: 5.488 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.731e-05/0.007153, allocations: 12.86 kB / 272.5 MB, free: 5.473 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.007156, allocations: 0 / 272.5 MB, free: 5.473 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.074e-05/0.007167, allocations: 4.859 kB / 272.5 MB, free: 5.465 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.007404, allocations: 24.8 kB / 272.6 MB, free: 5.438 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.007696, allocations: 151.2 kB / 272.7 MB, free: 5.262 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.377e-05/0.007739, allocations: 59.34 kB / 272.8 MB, free: 5.184 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.85e-05/0.007758, allocations: 3.906 kB / 272.8 MB, free: 5.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.383e-05/0.007812, allocations: 59.5 kB / 272.8 MB, free: 5.121 MB / 250.7 MB Notification: Performance of SimCode: time 6.61e-07/0.007812, allocations: 0 / 272.8 MB, free: 5.121 MB / 250.7 MB Notification: Performance of Templates: time 0.002551/0.01036, allocations: 0.5373 MB / 273.4 MB, free: 4.598 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.52505959616974]