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.001787/0.001787, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002197/0.002197, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.457/1.457, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.001947/0.001947, allocations: 64.78 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.262, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003694/0.2656, allocations: 2.133 MB / 434 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.268, allocations: 1.064 MB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.2681, allocations: 7.875 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.2683, allocations: 39.66 kB / 435.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.2685, allocations: 55.52 kB / 435.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.2689, allocations: 131.8 kB / 435.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005033/0.2694, allocations: 399.1 kB / 435.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.2696, allocations: 67.55 kB / 435.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.2707, allocations: 0.9708 MB / 436.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003101/0.271, allocations: 207.2 kB / 437 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.687e-05/0.2711, allocations: 36 kB / 437 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.058e-05/0.2712, allocations: 36 kB / 437 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.2713, allocations: 163.3 kB / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000278/0.2716, allocations: 282.1 kB / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009735/0.2726, allocations: 0.9852 MB / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2726, allocations: 0 / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.2726, allocations: 0 / 438.5 MB, free: 324 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.2726, 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.001323/0.2739, allocations: 1.071 MB / 439.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.274, allocations: 8.031 kB / 439.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.351e-05/0.2741, allocations: 58.72 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.2742, allocations: 88.38 kB / 439.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005007/0.2747, allocations: 371 kB / 440 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.2747, allocations: 20.38 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.2748, allocations: 16.38 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006103/0.2754, allocations: 304.4 kB / 440.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2754, allocations: 0 / 440.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.253e-05/0.2754, allocations: 8 kB / 440.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.2755, allocations: 4 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.2759, allocations: 215.8 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.2772, allocations: 0.8542 MB / 441.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004238/0.2776, allocations: 170.5 kB / 441.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.2779, allocations: 116.8 kB / 441.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.2779, allocations: 3.938 kB / 441.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006349/0.2786, allocations: 386 kB / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.2786, allocations: 0 / 442.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001486/0.2801, allocations: 0.7388 MB / 442.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.2802, allocations: 174.2 kB / 443 MB, free: 11.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.2816, allocations: 1.008 MB / 444 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.2816, allocations: 33.7 kB / 444.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.2817, allocations: 157.9 kB / 444.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.004e-05/0.2818, allocations: 67.52 kB / 444.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.2821, allocations: 165.3 kB / 444.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.2822, allocations: 334.8 kB / 444.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002807/0.2825, allocations: 127.9 kB / 444.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.2828, allocations: 165 kB / 445.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006335/0.2834, allocations: 473.8 kB / 445.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2834, allocations: 0 / 445.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009754/0.2844, allocations: 0.5781 MB / 446.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.2845, allocations: 138.8 kB / 446.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2845, allocations: 3.984 kB / 446.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2846, allocations: 4 kB / 446.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.867e-05/0.2847, allocations: 19.92 kB / 446.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.2847, allocations: 8 kB / 446.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.2849, allocations: 23.88 kB / 446.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.285, allocations: 111.9 kB / 446.4 MB, free: 7.93 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.0006169/0.2856, allocations: 0.5262 MB / 446.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.2857, allocations: 79.53 kB / 447 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.2859, allocations: 134.5 kB / 447.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.2859, allocations: 4 kB / 447.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.286, allocations: 3.938 kB / 447.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.286, allocations: 3.938 kB / 447.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007372/0.2867, allocations: 0.5898 MB / 447.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2867, allocations: 0 / 447.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.169e-05/0.2867, allocations: 8 kB / 447.8 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.207e-06/0.2867, allocations: 3.984 kB / 447.8 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.851e-05/0.2868, allocations: 27.98 kB / 447.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2868, allocations: 0 / 447.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.2868, allocations: 7.938 kB / 447.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.2879, allocations: 0.7019 MB / 448.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008829/0.2888, allocations: 0.5007 MB / 449 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.2889, allocations: 24.19 kB / 449 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.2891, allocations: 20.09 kB / 449 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.2893, allocations: 59.83 kB / 449.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.2894, allocations: 115.9 kB / 449.2 MB, free: 5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.2904, allocations: 0.7251 MB / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2904, allocations: 3.938 kB / 449.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.2907, allocations: 91.95 kB / 450 MB, free: 4.188 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.00156/0.2923, allocations: 1.29 MB / 451.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000856/0.2931, allocations: 0.5365 MB / 451.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2932, allocations: 0 / 451.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004998/0.2937, allocations: 397.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.0007861/0.2944, allocations: 201.2 kB / 452.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006852/0.3013, allocations: 4.527 MB / 457 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007579/0.302, allocations: 0.9675 MB / 457.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000355/0.3024, allocations: 161.1 kB / 458.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.3026, allocations: 135.2 kB / 458.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3026, allocations: 0 / 458.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03603/0.3387, allocations: 10.43 MB / 468.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/8.854, allocations: 4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 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.454221443273127] 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.929380513262004 8.958725042 8.681034646 Calling exit ...