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.001816/0.001816, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.002135/0.002135, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.52/1.52, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.001967/0.001967, allocations: 67.89 kB / 373.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1129, allocations: 53.32 MB / 427 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003772/0.1166, allocations: 2.138 MB / 429.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1192, allocations: 1.049 MB / 430.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.1193, allocations: 7.938 kB / 430.2 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.1195, allocations: 39.64 kB / 430.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.1197, allocations: 55.52 kB / 430.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000468/0.1201, allocations: 127.8 kB / 430.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005412/0.1207, allocations: 391.1 kB / 430.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.121, allocations: 83.09 kB / 430.9 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.1221, allocations: 0.9708 MB / 431.8 MB, free: 24 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2224/0.3445, allocations: 193.1 kB / 432 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.3446, allocations: 34.28 kB / 432.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.994e-05/0.3447, allocations: 34.91 kB / 432.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002102/0.3449, allocations: 164.8 kB / 432.3 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.3452, allocations: 284.8 kB / 432.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008607/0.3461, allocations: 0.9792 MB / 433.5 MB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3461, allocations: 0.8125 kB / 433.5 MB, free: 8.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3461, allocations: 1.438 kB / 433.5 MB, free: 8.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.3461, allocations: 1.031 kB / 433.5 MB, free: 8.094 MB / 350.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.001161/0.3472, allocations: 1.147 MB / 434.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3473, allocations: 7.5 kB / 434.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.313e-05/0.3474, allocations: 55.45 kB / 434.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.3475, allocations: 86.27 kB / 434.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.3479, allocations: 431.6 kB / 435.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.3479, allocations: 20.92 kB / 435.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.395e-05/0.348, allocations: 18.47 kB / 435.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006349/0.3486, allocations: 309.1 kB / 435.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3486, allocations: 0 / 435.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.473e-05/0.3487, allocations: 9.562 kB / 435.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.086e-06/0.3487, allocations: 4.312 kB / 435.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004456/0.3491, allocations: 207.2 kB / 435.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.3505, allocations: 0.8936 MB / 436.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/0.3509, allocations: 181.5 kB / 436.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/0.3512, allocations: 115.4 kB / 437 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.3512, allocations: 1.156 kB / 437 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005551/0.3517, allocations: 391.5 kB / 437.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.3517, allocations: 2.531 kB / 437.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001265/0.353, allocations: 0.7389 MB / 438.1 MB, free: 6.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.3531, allocations: 177.3 kB / 438.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.3543, allocations: 1 MB / 439.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.3543, allocations: 35.73 kB / 439.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.3544, allocations: 156.1 kB / 439.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.338e-05/0.3545, allocations: 65.5 kB / 439.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.3547, allocations: 166.2 kB / 439.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.778e-05/0.3548, allocations: 345.5 kB / 440 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.3551, allocations: 120.8 kB / 440.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002824/0.3554, allocations: 158.5 kB / 440.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.3559, allocations: 474.5 kB / 440.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3559, allocations: 1.469 kB / 440.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008941/0.3568, allocations: 0.5839 MB / 441.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.211e-05/0.3568, allocations: 133.2 kB / 441.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3568, allocations: 1.188 kB / 441.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3569, allocations: 3.297 kB / 441.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.026e-05/0.357, allocations: 21.14 kB / 441.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.357, allocations: 2.25 kB / 441.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.3572, allocations: 19.89 kB / 441.5 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.3573, allocations: 113.6 kB / 441.6 MB, free: 4.004 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.0005242/0.3578, allocations: 0.5427 MB / 442.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.457e-05/0.3579, allocations: 80.38 kB / 442.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001765/0.3581, allocations: 130.7 kB / 442.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3581, allocations: 1.281 kB / 442.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3581, allocations: 1.156 kB / 442.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3581, allocations: 0.7969 kB / 442.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008241/0.3589, allocations: 0.6329 MB / 443 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3589, allocations: 2.281 kB / 443 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-05/0.359, allocations: 13.89 kB / 443 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.359, allocations: 0.5 kB / 443 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.3591, allocations: 26.75 kB / 443.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3591, allocations: 2.547 kB / 443.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3591, allocations: 1.125 kB / 443.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.3601, allocations: 0.7114 MB / 443.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005622/0.3607, allocations: 0.5015 MB / 444.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.993e-05/0.3608, allocations: 21.11 kB / 444.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.3609, allocations: 18.8 kB / 444.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.3611, allocations: 48 kB / 444.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.3612, allocations: 113.9 kB / 444.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009194/0.3622, allocations: 0.7252 MB / 445.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3622, allocations: 0 / 445.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003958/0.3626, allocations: 95 kB / 445.3 MB, free: 1.953 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.001288/0.3638, allocations: 1.286 MB / 446.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007943/0.3646, allocations: 0.5418 MB / 447.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3646, allocations: 0 / 447.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004047/0.365, allocations: 397 kB / 447.5 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008499/0.3659, allocations: 202 kB / 447.7 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007/0.3729, allocations: 4.535 MB / 452.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007678/0.3737, allocations: 0.9652 MB / 453.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003914/0.3741, allocations: 163.6 kB / 453.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002504/0.3743, allocations: 134.3 kB / 453.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3743, allocations: 0 / 453.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.4131, allocations: 10.3 MB / 463.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.427, allocations: 7.344 kB / 463.8 MB, free: 8.988 MB / 366.1 MB " [Timeout remaining time 652] (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.020862387027591] 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.496581358835101 8.510313934000001 8.161226441 Calling exit ...