Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 165.8 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.029/1.029, allocations: 177.1 MB / 205.3 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.591e-05/2.742e-05, allocations: 4.844 kB / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.006179/0.006207, allocations: 1.657 MB / 275.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005307/0.006737, allocations: 175.3 kB / 275.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.00685, allocations: 3.938 kB / 275.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.006991, allocations: 23.8 kB / 275.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001487/0.00714, allocations: 15.84 kB / 275.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003349/0.01049, allocations: 43.89 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.01066, allocations: 71.77 kB / 275.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.01081, allocations: 31.91 kB / 275.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.639e-05/0.01089, allocations: 31.91 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.01101, allocations: 35.89 kB / 275.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.994e-05/0.01104, allocations: 4 kB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.784e-05/0.01106, allocations: 8 kB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.224e-05/0.01111, allocations: 19.92 kB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.812e-05/0.01116, allocations: 23.88 kB / 275.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.01136, allocations: 71.66 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.01136, allocations: 0 / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01136, allocations: 4 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.01137, allocations: 0 / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004985/0.01187, allocations: 436.1 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.01191, allocations: 12.03 kB / 276 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.262e-05/0.01196, allocations: 20.84 kB / 276.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.01215, allocations: 158.7 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.01217, allocations: 8.375 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.01218, allocations: 4.375 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.01248, allocations: 183.3 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.01249, allocations: 192 / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.0125, allocations: 4.375 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.01251, allocations: 384 / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.702e-05/0.01255, allocations: 23.86 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003617/0.01292, allocations: 394.9 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.01305, allocations: 117.3 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.876e-05/0.01311, allocations: 59.08 kB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.01313, allocations: 4 kB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.01316, allocations: 45.31 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.01316, allocations: 0 / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.003299/0.01646, allocations: 101.5 kB / 277.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.01653, allocations: 114.8 kB / 277.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.01667, allocations: 209.8 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.01668, allocations: 25.7 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.613e-05/0.01676, allocations: 147.4 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.01677, allocations: 7.953 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.01681, allocations: 27.36 kB / 277.7 MB, free: 12.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.01696, allocations: 0.4884 MB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/0.01697, allocations: 0 / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.429e-05/0.017, allocations: 23.38 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.15e-05/0.01704, allocations: 23.31 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.01704, allocations: 0 / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.476e-05/0.01713, allocations: 45.73 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.01715, allocations: 8.031 kB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.01715, allocations: 0 / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.01717, allocations: 7.938 kB / 278.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.435e-05/0.01724, allocations: 7.938 kB / 278.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.01725, allocations: 7.922 kB / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.345e-05/0.01727, allocations: 0 / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.952e-06/0.01728, allocations: 0 / 278.3 MB, free: 12.08 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001007/0.01738, allocations: 164.6 kB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.01751, allocations: 81.91 kB / 278.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.01756, allocations: 12.78 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.01757, allocations: 11.94 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.01757, allocations: 0 / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01758, allocations: 0 / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/0.01782, allocations: 121.2 kB / 278.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.01782, allocations: 0 / 278.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.307e-05/0.01792, allocations: 20 kB / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.01792, allocations: 0 / 278.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.01793, allocations: 8 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.01793, allocations: 3.984 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01793, allocations: 0 / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002008/0.01813, allocations: 330.8 kB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.131e-05/0.01819, allocations: 19.89 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.0182, allocations: 4 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.01832, allocations: 4 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.107e-05/0.01835, allocations: 7.922 kB / 279 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.01835, allocations: 8 kB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7e-05/0.01842, allocations: 151 kB / 279.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01842, allocations: 0 / 279.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003043/0.01873, allocations: 12 kB / 279.2 MB, free: 11.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 0.0001277/0.01886, allocations: 103.2 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.221e-05/0.01895, allocations: 39.59 kB / 279.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.01895, allocations: 3.938 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.732e-05/0.01897, allocations: 11.69 kB / 279.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003507/0.02247, allocations: 45.97 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004206/0.0229, allocations: 238.7 kB / 279.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.946e-05/0.02296, allocations: 71.59 kB / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.519e-05/0.02298, allocations: 7.984 kB / 279.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.483e-05/0.02306, allocations: 78.2 kB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of SimCode: time 1.333e-06/0.02306, allocations: 0 / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of Templates: time 0.006392/0.02945, allocations: 0.9966 MB / 280.8 MB, free: 9.434 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.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.80648170504719]