Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.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.0009936/0.0009936, allocations: 77.97 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.001105/0.001105, allocations: 167.8 kB / 24.82 MB, free: 8.863 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.9341/0.9341, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.722e-05, allocations: 2.312 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003308/0.003336, allocations: 2.058 MB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.005595, allocations: 1.021 MB / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.005698, allocations: 11.88 kB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.005869, allocations: 35.66 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.005998, allocations: 59.5 kB / 276.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.00641, allocations: 131.7 kB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004603/0.00687, allocations: 407 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.007062, allocations: 59.66 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.00808, allocations: 1.037 MB / 278.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.008308, allocations: 167.5 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.495e-05/0.008393, allocations: 36 kB / 278.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.185e-05/0.008465, allocations: 36 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.008608, allocations: 167.3 kB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.008768, allocations: 147.4 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009114/0.00968, allocations: 0.6579 MB / 279.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.009683, allocations: 3.984 kB / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.009684, allocations: 0 / 279.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.009693, allocations: 4 kB / 279.4 MB, free: 11.24 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001269/0.01096, allocations: 1.229 MB / 280.6 MB, free: 9.945 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.01101, allocations: 16.02 kB / 280.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.01115, allocations: 100.4 kB / 280.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003725/0.01153, allocations: 369 kB / 281.1 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.01156, allocations: 12.38 kB / 281.1 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.01161, allocations: 24.31 kB / 281.1 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005129/0.01212, allocations: 361.5 kB / 281.5 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.01213, allocations: 4.188 kB / 281.5 MB, free: 9.016 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.01216, allocations: 8.375 kB / 281.5 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.01217, allocations: 15.94 kB / 281.5 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002666/0.01244, allocations: 218.7 kB / 281.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.01351, allocations: 0.718 MB / 282.5 MB, free: 8.008 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.01385, allocations: 261.7 kB / 282.7 MB, free: 7.715 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.01405, allocations: 198.4 kB / 282.9 MB, free: 7.492 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.01407, allocations: 4 kB / 282.9 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.01449, allocations: 491.2 kB / 283.4 MB, free: 6.945 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.01449, allocations: 0 / 283.4 MB, free: 6.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001087/0.01558, allocations: 0.8754 MB / 284.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/0.01566, allocations: 178.2 kB / 284.4 MB, free: 5.781 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.01689, allocations: 0.8969 MB / 285.3 MB, free: 4.867 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.01692, allocations: 33.7 kB / 285.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.01701, allocations: 204.6 kB / 285.6 MB, free: 4.621 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.215e-05/0.01706, allocations: 67.5 kB / 285.6 MB, free: 4.555 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004029/0.01747, allocations: 175 kB / 285.8 MB, free: 4.375 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.0176, allocations: 0.5118 MB / 286.3 MB, free: 3.852 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.01775, allocations: 190.8 kB / 286.5 MB, free: 3.641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.01791, allocations: 249.2 kB / 286.7 MB, free: 3.352 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.0182, allocations: 431.8 kB / 287.2 MB, free: 2.859 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.0182, allocations: 7.938 kB / 287.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005611/0.01876, allocations: 0.6278 MB / 287.8 MB, free: 2.168 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/0.01884, allocations: 142.7 kB / 287.9 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.01884, allocations: 0 / 287.9 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.01885, allocations: 0 / 287.9 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.964e-05/0.01891, allocations: 15.94 kB / 288 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.01892, allocations: 11.97 kB / 288 MB, free: 1.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.01905, allocations: 19.94 kB / 288 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.797e-05/0.01912, allocations: 111.9 kB / 288.1 MB, free: 1.848 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0003669/0.01949, allocations: 0.5212 MB / 288.6 MB, free: 1.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.599e-05/0.01957, allocations: 99.41 kB / 288.7 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.01972, allocations: 114.5 kB / 288.8 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.01973, allocations: 0 / 288.8 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.01973, allocations: 0 / 288.8 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.01973, allocations: 0 / 288.8 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000431/0.02016, allocations: 440.6 kB / 289.3 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.02016, allocations: 0 / 289.3 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.977e-05/0.0202, allocations: 15.98 kB / 289.3 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.02021, allocations: 8.031 kB / 289.3 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.591e-05/0.02026, allocations: 27.98 kB / 289.3 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.02026, allocations: 3.938 kB / 289.3 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.02026, allocations: 0 / 289.3 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000667/0.02093, allocations: 0.7707 MB / 290.1 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004876/0.02141, allocations: 468.8 kB / 290.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.861e-05/0.02147, allocations: 20 kB / 290.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.1e-05/0.02156, allocations: 28.05 kB / 290.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.478e-05/0.02165, allocations: 35.95 kB / 290.6 MB, free: 15.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.25e-05/0.02172, allocations: 119.9 kB / 290.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004017/0.02212, allocations: 498.5 kB / 291.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02212, allocations: 0 / 291.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002233/0.02235, allocations: 88 kB / 291.3 MB, free: 14.49 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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.0001161/0.02246, allocations: 139.2 kB / 291.4 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004774/0.02294, allocations: 0.7096 MB / 292.2 MB, free: 13.53 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.02294, allocations: 0 / 292.2 MB, free: 13.53 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002932/0.02323, allocations: 496 kB / 292.6 MB, free: 12.97 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000818/0.02405, allocations: 230.5 kB / 292.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.02538, allocations: 1.385 MB / 294.3 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.02549, allocations: 147.8 kB / 294.4 MB, free: 11.15 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002292/0.02572, allocations: 161.1 kB / 294.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004057/0.02612, allocations: 282 kB / 294.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of SimCode: time 4.2e-07/0.02612, allocations: 0 / 294.8 MB, free: 10.71 MB / 282.7 MB Notification: Performance of Templates: time 0.008943/0.03507, allocations: 8.157 MB / 303 MB, free: 2.688 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.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.7136692060157657]