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.00168/0.00168, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002081/0.002081, allocations: 213 kB / 23.74 MB, free: 4.672 MB / 14.72 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.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 47.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2495, allocations: 53.36 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003553/0.253, allocations: 2.142 MB / 433.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.2555, allocations: 1.056 MB / 434.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.2557, allocations: 7.938 kB / 434.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.2559, allocations: 43.58 kB / 434.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.2561, allocations: 59.5 kB / 434.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.2565, allocations: 131.8 kB / 434.6 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005718/0.2571, allocations: 391.1 kB / 435 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.2573, allocations: 75.52 kB / 435 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.2584, allocations: 0.9669 MB / 436 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003219/0.2587, allocations: 207.2 kB / 436.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.163e-05/0.2588, allocations: 32 kB / 436.2 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.842e-05/0.2589, allocations: 36 kB / 436.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.2591, allocations: 167.3 kB / 436.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002946/0.2594, allocations: 286.1 kB / 436.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.2604, allocations: 0.9809 MB / 437.7 MB, free: 304 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2604, allocations: 0 / 437.7 MB, free: 304 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2604, allocations: 0 / 437.7 MB, free: 304 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.742e-05/0.2604, allocations: 0 / 437.7 MB, free: 304 kB / 334.1 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.001973/0.2624, allocations: 1.07 MB / 438.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.2625, allocations: 12.03 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/0.2626, allocations: 54.73 kB / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.2627, allocations: 88.41 kB / 438.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005932/0.2633, allocations: 371 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.2634, allocations: 16.38 kB / 439.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.2634, allocations: 24.36 kB / 439.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006319/0.264, allocations: 301.3 kB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2641, allocations: 0 / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/0.2641, allocations: 15.94 kB / 439.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.2641, allocations: 8 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.2646, allocations: 203.8 kB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.2661, allocations: 0.8542 MB / 440.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004527/0.2666, allocations: 174.5 kB / 440.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/0.2669, allocations: 116.8 kB / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.2669, allocations: 4 kB / 441 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006674/0.2676, allocations: 390.1 kB / 441.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.004e-06/0.2676, allocations: 0 / 441.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001402/0.269, allocations: 0.7316 MB / 442.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.2691, allocations: 178.2 kB / 442.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/0.2705, allocations: 0.9961 MB / 443.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.402e-05/0.2706, allocations: 41.69 kB / 443.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.2707, allocations: 161.9 kB / 443.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.24e-05/0.2708, allocations: 63.52 kB / 443.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.271, allocations: 161.3 kB / 443.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.2712, allocations: 342.8 kB / 444 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.2714, allocations: 120 kB / 444.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.2717, allocations: 170.9 kB / 444.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006234/0.2724, allocations: 481.7 kB / 444.8 MB, free: 8.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2724, allocations: 0 / 444.8 MB, free: 8.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009886/0.2734, allocations: 0.5704 MB / 445.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.2735, allocations: 138.8 kB / 445.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2735, allocations: 0 / 445.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.2735, allocations: 4 kB / 445.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.557e-05/0.2736, allocations: 20.12 kB / 445.5 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.527e-06/0.2736, allocations: 8 kB / 445.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.2738, allocations: 23.88 kB / 445.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.2739, allocations: 115.9 kB / 445.6 MB, free: 7.914 MB / 350.1 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.000641/0.2746, allocations: 0.5302 MB / 446.2 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.2747, allocations: 79.53 kB / 446.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002156/0.2749, allocations: 126.5 kB / 446.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2749, allocations: 3.938 kB / 446.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.2749, allocations: 0 / 446.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2749, allocations: 4 kB / 446.4 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000785/0.2757, allocations: 0.6014 MB / 447 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2757, allocations: 0 / 447 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.76e-05/0.2758, allocations: 8 kB / 447 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.2758, allocations: 96 / 447 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.451e-05/0.2758, allocations: 31.92 kB / 447 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2758, allocations: 4 kB / 447 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2758, allocations: 0 / 447 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.277, allocations: 0.7097 MB / 447.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009019/0.2779, allocations: 0.4968 MB / 448.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.278, allocations: 28 kB / 448.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.2782, allocations: 11.98 kB / 448.3 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.2784, allocations: 55.94 kB / 448.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.2785, allocations: 119.9 kB / 448.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001063/0.2796, allocations: 0.7212 MB / 449.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2796, allocations: 0 / 449.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000396/0.28, allocations: 91.94 kB / 449.2 MB, free: 4.18 MB / 350.1 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.001506/0.2815, allocations: 1.286 MB / 450.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008374/0.2823, allocations: 0.5326 MB / 451.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2823, allocations: 0 / 451.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004868/0.2828, allocations: 405.5 kB / 451.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008247/0.2836, allocations: 198.5 kB / 451.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00669/0.2903, allocations: 4.531 MB / 456.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007593/0.2911, allocations: 0.9714 MB / 457.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003318/0.2914, allocations: 157.1 kB / 457.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.2916, allocations: 139.2 kB / 457.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2916, allocations: 0 / 457.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04097/0.3326, allocations: 10.54 MB / 468 MB, free: 1.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.49, allocations: 0 / 468 MB, free: 1.277 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.012750341091305]