Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001807/0.001807, allocations: 105.1 kB / 21.22 MB, free: 0.5117 MB / 14.72 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.002338/0.002338, allocations: 213.7 kB / 24.54 MB, free: 3.875 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.446/1.446, allocations: 230.6 MB / 258.3 MB, free: 8.031 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-beta.om/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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002251/0.002251, allocations: 64.77 kB / 378.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2478, allocations: 53.36 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003642/0.2514, allocations: 2.142 MB / 434.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.2538, allocations: 1.056 MB / 435.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.2539, allocations: 11.94 kB / 435.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001679/0.254, allocations: 43.58 kB / 435.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.2541, allocations: 55.52 kB / 435.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.2545, allocations: 131.8 kB / 435.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004867/0.255, allocations: 395.1 kB / 435.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.2552, allocations: 75.52 kB / 435.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.2563, allocations: 0.9669 MB / 436.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.2566, allocations: 211.2 kB / 437 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.952e-05/0.2566, allocations: 32 kB / 437 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.138e-05/0.2567, allocations: 36 kB / 437 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001909/0.2569, allocations: 167.3 kB / 437.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.2572, allocations: 278.1 kB / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.2582, allocations: 0.9852 MB / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2582, allocations: 0 / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2582, allocations: 0 / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.2582, allocations: 0 / 438.5 MB, free: 324 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.00136/0.2596, allocations: 1.063 MB / 439.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.2596, allocations: 16.03 kB / 439.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.518e-05/0.2597, allocations: 54.73 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.2598, allocations: 84.42 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005019/0.2603, allocations: 374.9 kB / 440 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.2603, allocations: 16.38 kB / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.754e-05/0.2604, allocations: 20.38 kB / 440.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.261, allocations: 301.3 kB / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.261, allocations: 0 / 440.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.2611, allocations: 19.98 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2611, allocations: 0 / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.2615, allocations: 211.8 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.2629, allocations: 0.8542 MB / 441.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004488/0.2633, allocations: 178.5 kB / 441.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002767/0.2636, allocations: 116.8 kB / 441.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.2637, allocations: 4 kB / 441.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006365/0.2643, allocations: 386.1 kB / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.2643, allocations: 0 / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001406/0.2657, allocations: 0.7405 MB / 442.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.2658, allocations: 170.2 kB / 443 MB, free: 11.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001365/0.2672, allocations: 1 MB / 444 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.2672, allocations: 33.7 kB / 444.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.2674, allocations: 165.9 kB / 444.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.649e-05/0.2674, allocations: 63.52 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002282/0.2677, allocations: 161.3 kB / 444.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.2679, allocations: 346.7 kB / 444.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.2681, allocations: 120 kB / 444.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.2684, allocations: 168 kB / 445.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/0.2691, allocations: 485.7 kB / 445.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2691, allocations: 0 / 445.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009821/0.2701, allocations: 0.5704 MB / 446.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.2702, allocations: 134.8 kB / 446.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2702, allocations: 0 / 446.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2702, allocations: 0 / 446.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.896e-05/0.2703, allocations: 23.98 kB / 446.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.2703, allocations: 8 kB / 446.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.2705, allocations: 23.88 kB / 446.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.2707, allocations: 111.9 kB / 446.4 MB, free: 7.938 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.0006266/0.2713, allocations: 0.5301 MB / 446.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.2714, allocations: 79.53 kB / 447 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002026/0.2716, allocations: 130.5 kB / 447.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2716, allocations: 3.938 kB / 447.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2716, allocations: 3.984 kB / 447.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2716, allocations: 0 / 447.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007618/0.2724, allocations: 0.5975 MB / 447.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.2724, allocations: 4 kB / 447.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.321e-05/0.2724, allocations: 11.98 kB / 447.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2724, allocations: 48 / 447.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.186e-05/0.2725, allocations: 31.97 kB / 447.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2725, allocations: 0 / 447.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2725, allocations: 4 kB / 447.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.2737, allocations: 0.7061 MB / 448.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008406/0.2745, allocations: 0.4929 MB / 449 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.2746, allocations: 24.12 kB / 449 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.2748, allocations: 19.98 kB / 449 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.275, allocations: 51.95 kB / 449.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.2751, allocations: 115.9 kB / 449.2 MB, free: 5.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.2761, allocations: 0.7328 MB / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2761, allocations: 192 / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003521/0.2765, allocations: 91.94 kB / 450 MB, free: 4.191 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.001535/0.278, allocations: 1.293 MB / 451.3 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008865/0.2789, allocations: 0.5365 MB / 451.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2789, allocations: 0 / 451.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004898/0.2794, allocations: 401.5 kB / 452.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007631/0.2802, allocations: 195.2 kB / 452.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006753/0.2869, allocations: 4.528 MB / 457 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007703/0.2877, allocations: 0.9636 MB / 457.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003662/0.2881, allocations: 173.1 kB / 458.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/0.2883, allocations: 135.3 kB / 458.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2883, allocations: 0 / 458.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03845/0.3268, allocations: 10.42 MB / 468.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.291/8.618, allocations: 6.406 kB / 468.7 MB, free: 1.367 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.091834964696318] 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'] 8.693219054024667 8.716826755 8.454097324 Calling exit ...