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.001025/0.001025, 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.001193/0.001193, allocations: 168.5 kB / 25.61 MB, free: 8.582 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.9348/0.9348, allocations: 177.1 MB / 206 MB, free: 4.473 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.613e-06/1.613e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.094e-05/2.255e-05, allocations: 2.312 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003216/0.003239, allocations: 2.069 MB / 276.2 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.005695, allocations: 1.011 MB / 277.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.005809, allocations: 4.562 kB / 277.3 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.006011, allocations: 44.17 kB / 277.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.006153, allocations: 52.5 kB / 277.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.006619, allocations: 141.1 kB / 277.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004963/0.007115, allocations: 402.9 kB / 277.9 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.007314, allocations: 63.64 kB / 278 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.008448, allocations: 1.03 MB / 279 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.008714, allocations: 180.4 kB / 279.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.284e-05/0.008797, allocations: 36 kB / 279.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.565e-05/0.008873, allocations: 32 kB / 279.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.009046, allocations: 172 kB / 279.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.009233, allocations: 145.8 kB / 279.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007076/0.009941, allocations: 0.6579 MB / 280.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.009944, allocations: 0 / 280.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.009945, allocations: 0 / 280.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.009954, allocations: 0 / 280.2 MB, free: 14.39 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.001451/0.01141, allocations: 1.232 MB / 281.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.01145, allocations: 8.031 kB / 281.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.01161, allocations: 102.4 kB / 281.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.01205, allocations: 361.1 kB / 281.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.35e-05/0.0121, allocations: 20.38 kB / 281.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.184e-05/0.01215, allocations: 20.38 kB / 281.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005897/0.01274, allocations: 357.9 kB / 282.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.01275, allocations: 0.8438 kB / 282.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.69e-05/0.01279, allocations: 12.38 kB / 282.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.0128, allocations: 7.938 kB / 282.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.01311, allocations: 222.7 kB / 282.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.01428, allocations: 0.7219 MB / 283.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003844/0.01466, allocations: 261.9 kB / 283.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.01489, allocations: 206.4 kB / 283.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.01491, allocations: 0 / 283.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004505/0.01536, allocations: 478.3 kB / 284.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.943e-06/0.01536, allocations: 0 / 284.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001184/0.01654, allocations: 0.8867 MB / 285 MB, free: 9.156 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.362e-05/0.01663, allocations: 178.2 kB / 285.2 MB, free: 8.945 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.01795, allocations: 0.8969 MB / 286.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.018, allocations: 41.69 kB / 286.2 MB, free: 7.984 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.01811, allocations: 204.6 kB / 286.4 MB, free: 7.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.657e-05/0.01819, allocations: 63.5 kB / 286.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.0184, allocations: 171 kB / 286.6 MB, free: 7.539 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.01855, allocations: 0.5157 MB / 287.1 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.01878, allocations: 194.7 kB / 287.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.01902, allocations: 245.9 kB / 287.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.01943, allocations: 427.8 kB / 287.9 MB, free: 6.023 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01944, allocations: 0 / 287.9 MB, free: 6.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008485/0.02028, allocations: 0.6278 MB / 288.6 MB, free: 5.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.53e-05/0.02038, allocations: 145.1 kB / 288.7 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.02039, allocations: 4 kB / 288.7 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.0204, allocations: 0 / 288.7 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.966e-05/0.02048, allocations: 19.92 kB / 288.7 MB, free: 5.152 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.516e-06/0.02048, allocations: 0 / 288.7 MB, free: 5.152 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.02067, allocations: 27.94 kB / 288.8 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.0208, allocations: 111.9 kB / 288.9 MB, free: 5.016 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.0005907/0.02139, allocations: 0.5289 MB / 289.4 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.02152, allocations: 95.47 kB / 289.5 MB, free: 4.359 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002163/0.02174, allocations: 110.5 kB / 289.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.02174, allocations: 0 / 289.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.02174, allocations: 4 kB / 289.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.02175, allocations: 0 / 289.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006858/0.02243, allocations: 444.5 kB / 290 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.02244, allocations: 3.984 kB / 290 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.868e-05/0.02249, allocations: 8.125 kB / 290.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.02249, allocations: 4 kB / 290.1 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-05/0.02254, allocations: 31.98 kB / 290.1 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.453e-06/0.02255, allocations: 7.938 kB / 290.1 MB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.02255, allocations: 0 / 290.1 MB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.02355, allocations: 0.7746 MB / 290.9 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007658/0.02432, allocations: 464.8 kB / 291.3 MB, free: 2.418 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.722e-05/0.02441, allocations: 24 kB / 291.4 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.02457, allocations: 15.94 kB / 291.4 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.0247, allocations: 35.95 kB / 291.4 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.02482, allocations: 119.9 kB / 291.5 MB, free: 2.227 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000664/0.02548, allocations: 498.5 kB / 292 MB, free: 1.746 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02548, allocations: 0 / 292 MB, free: 1.746 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003623/0.02585, allocations: 91.95 kB / 292.1 MB, free: 1.656 MB / 266.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.0001674/0.02601, allocations: 139.2 kB / 292.2 MB, free: 1.512 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007407/0.02675, allocations: 0.7135 MB / 292.9 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.02676, allocations: 0 / 292.9 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.02716, allocations: 499.2 kB / 293.4 MB, free: 136 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007611/0.02792, allocations: 226.8 kB / 293.7 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.02986, allocations: 1.389 MB / 295 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/0.03002, allocations: 147.7 kB / 295.2 MB, free: 14.31 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003332/0.03035, allocations: 161.1 kB / 295.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006111/0.03096, allocations: 274 kB / 295.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of SimCode: time 8.42e-07/0.03096, allocations: 0 / 295.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of Templates: time 0.01297/0.04394, allocations: 8.273 MB / 303.9 MB, free: 5.75 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.79030639026314]