Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002041/0.002041, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 43.92 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2519, allocations: 52.19 MB / 423.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003919/0.2559, allocations: 2.137 MB / 425.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.2581, allocations: 1.017 MB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.2583, allocations: 7.938 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.2585, allocations: 39.64 kB / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.2586, allocations: 63.5 kB / 426.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004057/0.259, allocations: 123.8 kB / 426.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004996/0.2595, allocations: 399.1 kB / 427.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.2597, allocations: 79.55 kB / 427.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001308/0.261, allocations: 0.9631 MB / 428.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.2613, allocations: 203.2 kB / 428.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.506e-05/0.2614, allocations: 32 kB / 428.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.895e-05/0.2614, allocations: 36 kB / 428.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.2616, allocations: 167.4 kB / 428.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003155/0.2619, allocations: 290 kB / 428.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009586/0.2629, allocations: 0.9814 MB / 429.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2629, allocations: 0 / 429.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2629, allocations: 0 / 429.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2629, allocations: 0 / 429.9 MB, free: 8.047 MB / 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.001282/0.2642, allocations: 1.066 MB / 431 MB, free: 6.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.2642, allocations: 12.03 kB / 431 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.047e-05/0.2642, allocations: 4.188 kB / 431 MB, free: 6.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.855e-05/0.2643, allocations: 50.73 kB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.2644, allocations: 88.42 kB / 431.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005393/0.265, allocations: 375 kB / 431.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.265, allocations: 12.38 kB / 431.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.163e-05/0.2651, allocations: 20.38 kB / 431.5 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.2657, allocations: 297.4 kB / 431.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.2657, allocations: 0 / 431.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.302e-05/0.2657, allocations: 19.92 kB / 431.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.2658, allocations: 4 kB / 431.8 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004456/0.2662, allocations: 211.8 kB / 432.1 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.2675, allocations: 0.8582 MB / 432.9 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.2679, allocations: 174.5 kB / 433.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002567/0.2682, allocations: 116.8 kB / 433.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.2682, allocations: 0 / 433.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006149/0.2688, allocations: 394 kB / 433.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.2688, allocations: 0 / 433.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001334/0.2702, allocations: 0.7374 MB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.2703, allocations: 178.2 kB / 434.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/0.2716, allocations: 0.9961 MB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.258e-05/0.2716, allocations: 37.7 kB / 435.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.2718, allocations: 153.9 kB / 435.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.097e-05/0.2719, allocations: 63.55 kB / 435.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.2721, allocations: 165.3 kB / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2723, allocations: 346.8 kB / 436.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/0.2725, allocations: 124 kB / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.2728, allocations: 156.2 kB / 436.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006538/0.2735, allocations: 481.8 kB / 437 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2735, allocations: 3.938 kB / 437 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009644/0.2744, allocations: 0.5743 MB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.2746, allocations: 134.7 kB / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2746, allocations: 0 / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.2746, allocations: 4 kB / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.138e-05/0.2747, allocations: 15.92 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2747, allocations: 4 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.2749, allocations: 23.98 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.275, allocations: 119.9 kB / 437.9 MB, free: 15.68 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.0006111/0.2756, allocations: 0.5224 MB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.2757, allocations: 87.42 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.2759, allocations: 130.5 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2759, allocations: 0 / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2759, allocations: 4 kB / 438.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2759, allocations: 4 kB / 438.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006978/0.2766, allocations: 0.5976 MB / 439.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2766, allocations: 3.938 kB / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.289e-05/0.2767, allocations: 8 kB / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2767, allocations: 0 / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-05/0.2767, allocations: 27.98 kB / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2767, allocations: 96 / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2767, allocations: 3.938 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.2778, allocations: 0.71 MB / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000807/0.2786, allocations: 0.4891 MB / 440.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.2787, allocations: 27.94 kB / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.2789, allocations: 15.98 kB / 440.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.279, allocations: 47.95 kB / 440.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.2792, allocations: 119.9 kB / 440.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009741/0.2801, allocations: 0.7289 MB / 441.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2801, allocations: 0 / 441.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003588/0.2805, allocations: 99.89 kB / 441.5 MB, free: 11.93 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.001532/0.282, allocations: 1.281 MB / 442.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008686/0.2829, allocations: 0.5329 MB / 443.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2829, allocations: 0 / 443.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000517/0.2834, allocations: 409.4 kB / 443.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008196/0.2842, allocations: 206.1 kB / 443.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006693/0.2909, allocations: 4.52 MB / 448.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007367/0.2917, allocations: 0.9674 MB / 449.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003729/0.292, allocations: 161.1 kB / 449.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.2923, allocations: 135.2 kB / 449.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2923, allocations: 4 kB / 449.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03288/0.3252, allocations: 10.57 MB / 460.2 MB, free: 9.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.2, allocations: 7.812 kB / 460.2 MB, free: 9.02 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.529296752007212] Failed to read output from testmodel.py, exit status != 0: ['time', 'Adder.AND.G2.x', 'Adder.AND.G2.y', 'Adder.XOR.G2.x', 'Adder.XOR.G2.y'] 11.356791850994341 11.382969912 11.115763971 Calling exit ...