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.0009947/0.0009947, allocations: 82.66 kB / 21.42 MB, free: 3.07 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.001101/0.001101, allocations: 173.8 kB / 24.82 MB, free: 8.883 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.9444/0.9444, allocations: 177.1 MB / 205.3 MB, free: 5.488 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 1.603e-06/1.603e-06, allocations: 0 / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.824e-05/1.985e-05, allocations: 6.312 kB / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002148/0.002167, allocations: 1.663 MB / 275.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000394/0.002561, allocations: 171.3 kB / 275.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.414e-05/0.002646, allocations: 4 kB / 275.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.731e-05/0.002693, allocations: 15.86 kB / 275.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.002808, allocations: 7.875 kB / 275.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.003019, allocations: 47.81 kB / 275.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.645e-05/0.003115, allocations: 63.83 kB / 275.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.535e-05/0.00321, allocations: 28.16 kB / 275.4 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.761e-05/0.003268, allocations: 39.89 kB / 275.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.459e-05/0.003303, allocations: 15.97 kB / 275.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.003324, allocations: 8 kB / 275.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.058e-05/0.003335, allocations: 4 kB / 275.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.093e-05/0.003376, allocations: 15.94 kB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.342e-05/0.003399, allocations: 23.91 kB / 275.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.003521, allocations: 59.69 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.003522, allocations: 4 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.003523, allocations: 0 / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.003527, allocations: 0 / 275.6 MB, free: 15.11 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.0003819/0.003908, allocations: 416.2 kB / 276 MB, free: 14.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.003943, allocations: 8.031 kB / 276 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.408e-05/0.003977, allocations: 20.89 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.004114, allocations: 148.4 kB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.00413, allocations: 4.375 kB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.00414, allocations: 12.38 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.004355, allocations: 179.1 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.004362, allocations: 192 / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.00437, allocations: 4.375 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.004378, allocations: 4.375 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.674e-05/0.004405, allocations: 23.86 kB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002653/0.00467, allocations: 398.8 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.004774, allocations: 113.3 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.934e-05/0.004823, allocations: 47.17 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.004848, allocations: 11.97 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.00487, allocations: 37.39 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.004871, allocations: 0 / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001659/0.005037, allocations: 101.4 kB / 277.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.005084, allocations: 114.8 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.289e-05/0.005177, allocations: 204.7 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.005189, allocations: 25.7 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.005239, allocations: 139.1 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.075e-06/0.005247, allocations: 0 / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/0.005278, allocations: 31.31 kB / 277.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.005393, allocations: 0.4884 MB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.811e-06/0.005399, allocations: 0 / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.365e-05/0.005412, allocations: 23.38 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.528e-05/0.005438, allocations: 19.38 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.005439, allocations: 4.062 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.236e-05/0.005482, allocations: 45.62 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.005493, allocations: 4 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.005496, allocations: 0 / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.005508, allocations: 3.938 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-06/0.005518, allocations: 4 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-06/0.005521, allocations: 3.984 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.431e-05/0.005545, allocations: 3.938 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.005551, allocations: 4 kB / 278.2 MB, free: 12.21 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 7.429e-05/0.005626, allocations: 160.6 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.337e-05/0.005699, allocations: 73.95 kB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.005739, allocations: 16.77 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.005744, allocations: 11.88 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.005745, allocations: 0 / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.005749, allocations: 0 / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.005879, allocations: 117.2 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.00588, allocations: 0 / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.586e-06/0.005889, allocations: 4 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.00589, allocations: 0 / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.005897, allocations: 8 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.005901, allocations: 11.98 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.005902, allocations: 0 / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001163/0.006018, allocations: 318.8 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.158e-05/0.00605, allocations: 27.88 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-06/0.006059, allocations: 0 / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.516e-05/0.006114, allocations: 8 kB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.536e-05/0.006139, allocations: 7.922 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.006144, allocations: 4 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.365e-05/0.006188, allocations: 143.2 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006188, allocations: 0 / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001556/0.006343, allocations: 8.031 kB / 279.1 MB, free: 11.24 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 7.916e-05/0.006423, allocations: 107.2 kB / 279.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.589e-05/0.006488, allocations: 31.61 kB / 279.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.00649, allocations: 0 / 279.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.37e-05/0.006503, allocations: 15.62 kB / 279.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.006791, allocations: 46.08 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002876/0.007079, allocations: 219.2 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.305e-05/0.007122, allocations: 75.23 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.365e-05/0.007135, allocations: 0 / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.806e-05/0.007183, allocations: 74.2 kB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.007184, allocations: 0 / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of Templates: time 0.002162/0.009346, allocations: 0.8221 MB / 280.4 MB, free: 9.801 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.516531736124307]