Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009886/0.0009886, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001004, allocations: 160.8 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9882/0.9882, allocations: 177 MB / 205.2 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.304e-05/2.452e-05, allocations: 2.312 kB / 273 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002417/0.002442, allocations: 2.064 MB / 275.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.004099, allocations: 1.029 MB / 276.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.721e-05/0.004186, allocations: 3.938 kB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.004328, allocations: 35.66 kB / 276.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.851e-05/0.004406, allocations: 59.52 kB / 276.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.004817, allocations: 143.7 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.005203, allocations: 395 kB / 276.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.005359, allocations: 67.64 kB / 276.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007558/0.006115, allocations: 1.033 MB / 277.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.006273, allocations: 175.5 kB / 278 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.96e-05/0.006322, allocations: 32 kB / 278 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.756e-05/0.00637, allocations: 36 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.006489, allocations: 171.3 kB / 278.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.006612, allocations: 143.4 kB / 278.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.007066, allocations: 0.654 MB / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.00707, allocations: 0 / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.00707, allocations: 0 / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.007076, allocations: 0 / 279 MB, free: 11.73 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.001035/0.008111, allocations: 1.221 MB / 280.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.008146, allocations: 11.98 kB / 280.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.008254, allocations: 104.4 kB / 280.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.008565, allocations: 385 kB / 280.7 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.008598, allocations: 20.38 kB / 280.7 MB, free: 9.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.008636, allocations: 24.38 kB / 280.8 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004599/0.009096, allocations: 373.5 kB / 281.1 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.009104, allocations: 192 / 281.1 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.009134, allocations: 12.31 kB / 281.1 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.009145, allocations: 7.938 kB / 281.1 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.009384, allocations: 250.7 kB / 281.4 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.01041, allocations: 0.8892 MB / 282.3 MB, free: 8.273 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.01073, allocations: 289.7 kB / 282.6 MB, free: 7.953 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.0109, allocations: 222.4 kB / 282.8 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.01091, allocations: 0 / 282.8 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006228/0.01154, allocations: 498.5 kB / 283.3 MB, free: 7.156 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.031e-06/0.01154, allocations: 0 / 283.3 MB, free: 7.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007841/0.01232, allocations: 0.9127 MB / 284.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.01239, allocations: 186.1 kB / 284.4 MB, free: 5.945 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/0.01344, allocations: 1.166 MB / 285.5 MB, free: 4.766 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.01347, allocations: 33.7 kB / 285.6 MB, free: 4.727 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.952e-05/0.01356, allocations: 208.6 kB / 285.8 MB, free: 4.516 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.01362, allocations: 59.58 kB / 285.8 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.01375, allocations: 171 kB / 286 MB, free: 4.281 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.01387, allocations: 0.5079 MB / 286.5 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.01404, allocations: 206.8 kB / 286.7 MB, free: 3.535 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.01422, allocations: 264.1 kB / 287 MB, free: 3.234 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.0146, allocations: 459.8 kB / 287.4 MB, free: 2.715 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.0146, allocations: 3.938 kB / 287.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005793/0.01518, allocations: 0.6668 MB / 288.1 MB, free: 1.988 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.716e-05/0.01525, allocations: 141.8 kB / 288.2 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.01525, allocations: 0 / 288.2 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.01526, allocations: 4 kB / 288.2 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.148e-05/0.01532, allocations: 15.98 kB / 288.2 MB, free: 1.809 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.01533, allocations: 0 / 288.2 MB, free: 1.809 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.01546, allocations: 24 kB / 288.3 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-05/0.01554, allocations: 111.9 kB / 288.4 MB, free: 1.676 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.0003724/0.01591, allocations: 0.525 MB / 288.9 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.01599, allocations: 95.47 kB / 289 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.01612, allocations: 110.5 kB / 289.1 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.01612, allocations: 0 / 289.1 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.01612, allocations: 8 kB / 289.1 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.01613, allocations: 0 / 289.1 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000569/0.0167, allocations: 0.5936 MB / 289.7 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.0167, allocations: 0 / 289.7 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.887e-05/0.01673, allocations: 19.92 kB / 289.7 MB, free: 256 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.01673, allocations: 3.938 kB / 289.7 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.01676, allocations: 27.98 kB / 289.7 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.01676, allocations: 0 / 289.7 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.01676, allocations: 128 / 289.7 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009658/0.01773, allocations: 0.8067 MB / 290.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004658/0.0182, allocations: 472.8 kB / 291 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.608e-05/0.01826, allocations: 27.94 kB / 291 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.646e-05/0.01836, allocations: 16 kB / 291.1 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.01847, allocations: 43.94 kB / 291.1 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.608e-05/0.01855, allocations: 123.8 kB / 291.2 MB, free: 14.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006688/0.01922, allocations: 0.76 MB / 292 MB, free: 13.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.01922, allocations: 0 / 292 MB, free: 13.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000261/0.01948, allocations: 88 kB / 292.1 MB, free: 13.82 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.0001312/0.01961, allocations: 135.2 kB / 292.2 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005365/0.02014, allocations: 0.7449 MB / 292.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.02015, allocations: 0 / 292.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000296/0.02044, allocations: 0.5155 MB / 293.5 MB, free: 12.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000502/0.02094, allocations: 226.8 kB / 293.7 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.02237, allocations: 1.4 MB / 295.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.02248, allocations: 151.8 kB / 295.2 MB, free: 10.4 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002326/0.02272, allocations: 161.1 kB / 295.4 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.02283, allocations: 72.36 kB / 295.5 MB, free: 10.17 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.02283, allocations: 4 kB / 295.5 MB, free: 10.17 MB / 282.7 MB Notification: Performance of Templates: time 0.009505/0.03234, allocations: 8.296 MB / 303.8 MB, free: 1.965 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.872296620858833]