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.001254/0.001254, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001177/0.001177, allocations: 169.1 kB / 24.91 MB, free: 9.199 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.004/1.004, 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.203e-06/1.203e-06, allocations: 0 / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.967e-05/2.087e-05, allocations: 2.312 kB / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002365/0.002386, allocations: 1.713 MB / 275.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003424/0.002728, allocations: 179.1 kB / 275.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.426e-05/0.002802, allocations: 4 kB / 275.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.722e-05/0.002849, allocations: 11.86 kB / 275.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.002965, allocations: 3.938 kB / 275.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.003155, allocations: 55.81 kB / 275.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.381e-05/0.003249, allocations: 59.84 kB / 275.5 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.555e-05/0.003335, allocations: 28.14 kB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.114e-05/0.003386, allocations: 35.91 kB / 275.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.305e-05/0.003419, allocations: 23.89 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.003437, allocations: 11.94 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.629e-06/0.003447, allocations: 4 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.135e-05/0.003488, allocations: 23.92 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.072e-05/0.003509, allocations: 19.92 kB / 275.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.854e-05/0.003607, allocations: 59.73 kB / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.00361, allocations: 0 / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.00361, allocations: 0 / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.003615, allocations: 0 / 275.7 MB, free: 15.03 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.0002778/0.003893, allocations: 284.6 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.003922, allocations: 12.03 kB / 276 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.003949, allocations: 12.92 kB / 276 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.004084, allocations: 137.6 kB / 276.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.004101, allocations: 4.375 kB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.00411, allocations: 8.375 kB / 276.2 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.004304, allocations: 164.6 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.00431, allocations: 192 / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.004318, allocations: 8.359 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.004323, allocations: 4.375 kB / 276.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.537e-05/0.004348, allocations: 19.88 kB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001973/0.004545, allocations: 257.2 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.301e-05/0.004628, allocations: 91.88 kB / 276.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.092e-05/0.004659, allocations: 38.62 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.004676, allocations: 4 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.004697, allocations: 42.55 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.004698, allocations: 7.875 kB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001352/0.004833, allocations: 81.55 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.004881, allocations: 114.8 kB / 277 MB, free: 13.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.978e-05/0.004951, allocations: 141.1 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.086e-06/0.004959, allocations: 25.7 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.004992, allocations: 96.39 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.167e-06/0.005001, allocations: 3.953 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.005028, allocations: 25.7 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.578e-05/0.005094, allocations: 314.8 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-06/0.005102, allocations: 4 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.155e-05/0.005113, allocations: 13.97 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.035e-05/0.005134, allocations: 17.72 kB / 277.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.005136, allocations: 0 / 277.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.195e-05/0.005178, allocations: 41.62 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.005188, allocations: 4 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.005192, allocations: 0 / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.497e-06/0.005202, allocations: 3.938 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-05/0.005213, allocations: 4 kB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-06/0.005215, allocations: 4.125 kB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.605e-05/0.005241, allocations: 3.984 kB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.005246, allocations: 7.938 kB / 277.7 MB, free: 12.84 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.23e-05/0.005298, allocations: 116.7 kB / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.664e-05/0.005355, allocations: 53.69 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.005383, allocations: 20.77 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.005386, allocations: 3.938 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.005388, allocations: 4 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.005392, allocations: 0 / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.005501, allocations: 73.88 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.005503, allocations: 8 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.192e-05/0.005515, allocations: 15.92 kB / 278 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.005517, allocations: 4 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.005522, allocations: 0 / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.005523, allocations: 4 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.005524, allocations: 0 / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.452e-05/0.005609, allocations: 219.6 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.175e-05/0.00564, allocations: 27.78 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.735e-06/0.005648, allocations: 0 / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.581e-05/0.005704, allocations: 11.98 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.161e-05/0.005725, allocations: 7.969 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.00573, allocations: 4 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.805e-05/0.005748, allocations: 20.83 kB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005748, allocations: 4 kB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001305/0.005878, allocations: 8 kB / 278.3 MB, free: 12.18 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.433e-05/0.005953, allocations: 80.42 kB / 278.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.019e-05/0.006013, allocations: 36.78 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.006016, allocations: 4.125 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.061e-05/0.006026, allocations: 12.8 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.006249, allocations: 35.58 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002502/0.0065, allocations: 206.4 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.389e-05/0.006543, allocations: 75.23 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.326e-05/0.006557, allocations: 0 / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.708e-05/0.006604, allocations: 59.38 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.006604, allocations: 0 / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of Templates: time 0.002153/0.008757, allocations: 0.7993 MB / 279.6 MB, free: 10.83 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 -s gbode -gbm=radauIIA3 -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.5077000609599054]