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.001263/0.001263, allocations: 108.2 kB / 20.21 MB, free: 1.812 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.001433/0.001433, allocations: 220.3 kB / 23.48 MB, free: 5.258 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.373/1.373, allocations: 230.4 MB / 257 MB, free: 8.258 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.001872/0.001872, allocations: 63.89 kB / 377.1 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2683, allocations: 53.31 MB / 430.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003386/0.2717, allocations: 2.151 MB / 432.5 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.2739, allocations: 1.049 MB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.274, allocations: 7.938 kB / 433.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.2742, allocations: 39.66 kB / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.2743, allocations: 59.5 kB / 433.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.2746, allocations: 123.8 kB / 433.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004562/0.2751, allocations: 391.1 kB / 434.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.2753, allocations: 71 kB / 434.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009985/0.2763, allocations: 0.9669 MB / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.2765, allocations: 207.2 kB / 435.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.847e-05/0.2766, allocations: 36 kB / 435.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.514e-05/0.2767, allocations: 36 kB / 435.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.2769, allocations: 171.2 kB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002965/0.2772, allocations: 274.1 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009591/0.2781, allocations: 0.9848 MB / 436.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2781, allocations: 0 / 436.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2781, allocations: 0 / 436.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.2782, allocations: 0 / 436.9 MB, free: 0.7148 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.001352/0.2795, allocations: 1.142 MB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2795, allocations: 8.031 kB / 438.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.58e-05/0.2796, allocations: 62.73 kB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.2798, allocations: 88.42 kB / 438.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.2803, allocations: 432.8 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.2804, allocations: 16.36 kB / 438.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/0.2804, allocations: 24.31 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00064/0.281, allocations: 309.3 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2811, allocations: 0 / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.2811, allocations: 11.98 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.2811, allocations: 4 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004402/0.2815, allocations: 207.9 kB / 439.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.2829, allocations: 0.8903 MB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.2834, allocations: 174.5 kB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002574/0.2836, allocations: 120.8 kB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.2836, allocations: 4.031 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000612/0.2843, allocations: 390.1 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.2843, allocations: 0 / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001366/0.2856, allocations: 0.7417 MB / 441.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.2857, allocations: 170.2 kB / 441.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.2871, allocations: 1 MB / 442.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.045e-05/0.2871, allocations: 33.7 kB / 442.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.2872, allocations: 161.9 kB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.389e-05/0.2873, allocations: 63.58 kB / 442.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/0.2875, allocations: 165.3 kB / 443.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.2877, allocations: 342.7 kB / 443.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/0.288, allocations: 123.9 kB / 443.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.2883, allocations: 160.2 kB / 443.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006294/0.2889, allocations: 481.7 kB / 444.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2889, allocations: 96 / 444.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009718/0.2899, allocations: 0.5859 MB / 444.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.29, allocations: 134.8 kB / 444.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.29, allocations: 0 / 444.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.29, allocations: 4 kB / 444.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.378e-05/0.2901, allocations: 12 kB / 444.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2901, allocations: 8.062 kB / 444.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.2903, allocations: 23.88 kB / 444.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/0.2905, allocations: 119.9 kB / 445 MB, free: 8.105 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.0006154/0.2911, allocations: 0.5297 MB / 445.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.2912, allocations: 79.58 kB / 445.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.2914, allocations: 142.4 kB / 445.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2914, allocations: 0 / 445.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2914, allocations: 0 / 445.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.2914, allocations: 0 / 445.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007555/0.2922, allocations: 0.6297 MB / 446.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2922, allocations: 0 / 446.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.688e-05/0.2922, allocations: 8 kB / 446.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.2922, allocations: 4 kB / 446.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/0.2923, allocations: 23.98 kB / 446.5 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2923, allocations: 128 / 446.5 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.2923, allocations: 8 kB / 446.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.2934, allocations: 0.7095 MB / 447.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007345/0.2941, allocations: 0.5039 MB / 447.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.715e-05/0.2942, allocations: 20 kB / 447.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.2944, allocations: 15.98 kB / 447.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.2945, allocations: 51.94 kB / 447.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.2947, allocations: 111.9 kB / 447.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009725/0.2956, allocations: 0.729 MB / 448.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2956, allocations: 0 / 448.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00036/0.296, allocations: 88 kB / 448.7 MB, free: 4.324 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.001523/0.2975, allocations: 1.286 MB / 450 MB, free: 2.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008539/0.2984, allocations: 0.5365 MB / 450.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2984, allocations: 0 / 450.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000488/0.2989, allocations: 405.6 kB / 450.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007796/0.2996, allocations: 208.6 kB / 451.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006468/0.3061, allocations: 4.531 MB / 455.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000733/0.3068, allocations: 0.9636 MB / 456.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003398/0.3072, allocations: 161.2 kB / 456.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.3074, allocations: 135.2 kB / 456.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3074, allocations: 4 kB / 456.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03472/0.3421, allocations: 10.34 MB / 467.2 MB, free: 1.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.128/8.47, allocations: 14.06 kB / 467.3 MB, free: 1.555 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: 10.667723655933514] 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.543862690916285 8.570057547 8.288111618 Calling exit ...