Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.00142/0.00142, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001173/0.001173, allocations: 168.5 kB / 25.61 MB, free: 8.926 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 0.9176/0.9176, allocations: 177.2 MB / 206.1 MB, free: 4.508 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.BooleanSignals.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.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 3.984 kB / 274.2 MB, free: 4.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.19e-05/1.394e-05, allocations: 4.25 kB / 274.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001857/0.001871, allocations: 1.646 MB / 275.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003218/0.002193, allocations: 179.7 kB / 276 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.112e-05/0.002264, allocations: 4 kB / 276 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.627e-05/0.00231, allocations: 8.812 kB / 276 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.002422, allocations: 7.922 kB / 276 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001784/0.0026, allocations: 52.34 kB / 276.1 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.671e-05/0.002687, allocations: 56.5 kB / 276.1 MB, free: 2.555 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.163e-05/0.002769, allocations: 32.16 kB / 276.2 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.906e-05/0.002818, allocations: 37.55 kB / 276.2 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.244e-05/0.00285, allocations: 19.91 kB / 276.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.002869, allocations: 8 kB / 276.2 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.636e-06/0.002877, allocations: 4 kB / 276.2 MB, free: 2.453 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.067e-05/0.002918, allocations: 23.91 kB / 276.3 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.087e-05/0.002939, allocations: 20.64 kB / 276.3 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.979e-05/0.003029, allocations: 61.2 kB / 276.3 MB, free: 2.352 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.003032, allocations: 8 kB / 276.4 MB, free: 2.344 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003032, allocations: 0 / 276.4 MB, free: 2.344 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.895e-06/0.003035, allocations: 0 / 276.4 MB, free: 2.344 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003241/0.003359, allocations: 405.2 kB / 276.8 MB, free: 1.91 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.003391, allocations: 8.031 kB / 276.8 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.102e-05/0.003422, allocations: 16.84 kB / 276.8 MB, free: 1.887 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.003562, allocations: 162.1 kB / 276.9 MB, free: 1.703 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.003579, allocations: 8.375 kB / 276.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-06/0.003587, allocations: 4.375 kB / 276.9 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.003783, allocations: 181.2 kB / 277.1 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.003789, allocations: 192 / 277.1 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.342e-06/0.003796, allocations: 384 / 277.1 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.003801, allocations: 4.375 kB / 277.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.838e-05/0.00383, allocations: 27.86 kB / 277.2 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000235/0.004065, allocations: 379 kB / 277.5 MB, free: 1.047 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.466e-05/0.004159, allocations: 117.1 kB / 277.6 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.657e-05/0.004196, allocations: 51.23 kB / 277.7 MB, free: 0.832 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.004211, allocations: 4 kB / 277.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.004231, allocations: 41.39 kB / 277.7 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 8.92e-07/0.004232, allocations: 0 / 277.7 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001691/0.004401, allocations: 113.3 kB / 277.8 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.004447, allocations: 107.2 kB / 278 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.083e-05/0.004527, allocations: 200 kB / 278.1 MB, free: 328 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.004538, allocations: 29.7 kB / 278.2 MB, free: 292 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.253e-05/0.004581, allocations: 143 kB / 278.3 MB, free: 140 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.636e-06/0.004589, allocations: 3.938 kB / 278.3 MB, free: 136 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.004617, allocations: 31.36 kB / 278.3 MB, free: 96 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.004733, allocations: 496.1 kB / 278.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.722e-06/0.00474, allocations: 0 / 278.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.469e-05/0.004755, allocations: 19.62 kB / 278.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.36e-05/0.004778, allocations: 27.42 kB / 278.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.00478, allocations: 0 / 278.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.36e-05/0.004823, allocations: 45.59 kB / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/0.004832, allocations: 8 kB / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/0.004836, allocations: 0 / 278.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-06/0.004845, allocations: 3.938 kB / 278.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.254e-06/0.004852, allocations: 0 / 278.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.004855, allocations: 4 kB / 278.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.114e-05/0.004876, allocations: 4.062 kB / 278.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.004882, allocations: 7.984 kB / 279 MB, free: 15.46 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 (step.y,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 5.886e-05/0.004941, allocations: 156.6 kB / 279.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.946e-05/0.005011, allocations: 77.52 kB / 279.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.665e-05/0.005037, allocations: 16.78 kB / 279.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.00504, allocations: 3.938 kB / 279.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.005042, allocations: 4 kB / 279.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.005045, allocations: 0 / 279.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001221/0.005167, allocations: 109.2 kB / 279.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.005169, allocations: 7.984 kB / 279.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-06/0.005177, allocations: 11.94 kB / 279.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.00518, allocations: 4 kB / 279.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.005185, allocations: 0 / 279.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.005186, allocations: 0 / 279.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.005188, allocations: 4 kB / 279.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000109/0.005297, allocations: 330.6 kB / 279.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.931e-05/0.005326, allocations: 19.88 kB / 279.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.898e-06/0.005336, allocations: 4 kB / 279.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.963e-05/0.005386, allocations: 7.938 kB / 279.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.025e-05/0.005406, allocations: 3.938 kB / 279.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-06/0.005412, allocations: 12.03 kB / 279.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.035e-05/0.005453, allocations: 133.8 kB / 279.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.005453, allocations: 0 / 279.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001588/0.005611, allocations: 11.98 kB / 279.9 MB, free: 14.49 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 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.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 6.501e-05/0.005676, allocations: 103.2 kB / 280 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.157e-05/0.005748, allocations: 35.59 kB / 280 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.41e-07/0.005749, allocations: 0 / 280 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.413e-05/0.005763, allocations: 15.75 kB / 280 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.006026, allocations: 46.45 kB / 280 MB, free: 14.28 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002374/0.006263, allocations: 207.1 kB / 280.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.082e-05/0.006304, allocations: 67.2 kB / 280.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.416e-05/0.006318, allocations: 4 kB / 280.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.86e-05/0.006367, allocations: 78.19 kB / 280.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.006367, allocations: 0 / 280.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of Templates: time 0.00213/0.008497, allocations: 0.8313 MB / 281.2 MB, free: 13.06 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/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.6270667808130383]