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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001298/0.001299, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.366/1.366, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB 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.002055/0.002055, allocations: 63.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2728, allocations: 50.54 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003508/0.2763, allocations: 2.122 MB / 411.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.2786, allocations: 1.037 MB / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.297e-05/0.2787, allocations: 0 / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.2789, allocations: 35.66 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.2791, allocations: 59.5 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.2795, allocations: 130.4 kB / 412.4 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000493/0.28, allocations: 415 kB / 412.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.2802, allocations: 103.1 kB / 413 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009615/0.2812, allocations: 0.9435 MB / 413.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.2814, allocations: 199.2 kB / 414.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.56e-05/0.2815, allocations: 32 kB / 414.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.099e-05/0.2816, allocations: 36 kB / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.2818, allocations: 163.4 kB / 414.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002894/0.2821, allocations: 286 kB / 414.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009576/0.2831, allocations: 0.9718 MB / 415.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2831, allocations: 8 kB / 415.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2831, allocations: 0 / 415.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.2831, allocations: 0 / 415.6 MB, free: 10.85 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.001372/0.2845, allocations: 1.146 MB / 416.7 MB, free: 9.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.2845, allocations: 12.03 kB / 416.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.658e-05/0.2846, allocations: 54.73 kB / 416.8 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.2848, allocations: 84.42 kB / 416.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005222/0.2853, allocations: 436.8 kB / 417.3 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.2853, allocations: 20.36 kB / 417.3 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.595e-05/0.2854, allocations: 20.38 kB / 417.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006248/0.286, allocations: 305.3 kB / 417.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.286, allocations: 0 / 417.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.2861, allocations: 16 kB / 417.6 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2861, allocations: 0 / 417.6 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.2865, allocations: 207.8 kB / 417.9 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.2879, allocations: 0.8825 MB / 418.7 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004629/0.2883, allocations: 226.5 kB / 419 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.2886, allocations: 160.7 kB / 419.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.2887, allocations: 4 kB / 419.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006438/0.2893, allocations: 390.1 kB / 419.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2893, allocations: 0 / 419.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001405/0.2908, allocations: 0.7386 MB / 420.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.2909, allocations: 174.2 kB / 420.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.2923, allocations: 1.004 MB / 421.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.651e-05/0.2923, allocations: 33.7 kB / 421.4 MB, free: 4.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.2925, allocations: 161.9 kB / 421.6 MB, free: 4.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.653e-05/0.2926, allocations: 63.52 kB / 421.7 MB, free: 4.438 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.2928, allocations: 165.3 kB / 421.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.293, allocations: 338.8 kB / 422.2 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.2933, allocations: 127.9 kB / 422.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.2936, allocations: 156.7 kB / 422.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006255/0.2942, allocations: 473.8 kB / 422.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.2943, allocations: 0 / 422.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001023/0.2953, allocations: 0.5859 MB / 423.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.2954, allocations: 134.8 kB / 423.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.2954, allocations: 0 / 423.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.2955, allocations: 7.984 kB / 423.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.278e-05/0.2955, allocations: 19.94 kB / 423.6 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.2956, allocations: 0 / 423.6 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.2958, allocations: 23.88 kB / 423.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.2959, allocations: 119.9 kB / 423.8 MB, free: 2.168 MB / 334.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.0006339/0.2966, allocations: 0.5298 MB / 424.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.2967, allocations: 79.53 kB / 424.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002066/0.2969, allocations: 130.4 kB / 424.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2969, allocations: 0 / 424.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.2969, allocations: 0 / 424.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2969, allocations: 3.938 kB / 424.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007943/0.2977, allocations: 0.6336 MB / 425.2 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2977, allocations: 0 / 425.2 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.2978, allocations: 8 kB / 425.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.2978, allocations: 4 kB / 425.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.2978, allocations: 23.98 kB / 425.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.2978, allocations: 4 kB / 425.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2979, allocations: 3.938 kB / 425.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.299, allocations: 0.7097 MB / 425.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000675/0.2997, allocations: 0.5041 MB / 426.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.793e-05/0.2998, allocations: 20 kB / 426.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.3, allocations: 23.92 kB / 426.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.3002, allocations: 47.95 kB / 426.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.3003, allocations: 111.9 kB / 426.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001054/0.3014, allocations: 0.7328 MB / 427.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3014, allocations: 0 / 427.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003492/0.3017, allocations: 88 kB / 427.4 MB, free: 14.38 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.001622/0.3034, allocations: 1.286 MB / 428.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009747/0.3044, allocations: 0.654 MB / 429.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3044, allocations: 0 / 429.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006247/0.305, allocations: 0.5327 MB / 429.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/0.3059, allocations: 192.1 kB / 430.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006664/0.3126, allocations: 4.538 MB / 434.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007883/0.3134, allocations: 0.9636 MB / 435.6 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003609/0.3138, allocations: 165.2 kB / 435.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000243/0.314, allocations: 131.3 kB / 435.9 MB, free: 5.625 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.314, allocations: 0 / 435.9 MB, free: 5.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03404/0.3481, allocations: 10.27 MB / 446.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.05/8.398, allocations: 0 / 446.2 MB, free: 11.48 MB / 366.1 MB (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.002 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)