Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.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.001814/0.001814, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.002451/0.002451, allocations: 215.2 kB / 21.46 MB, free: 1.566 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.449/1.449, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",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.001959/0.001959, allocations: 75.83 kB / 373.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1057, allocations: 53.32 MB / 427 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.00529/0.111, allocations: 3.627 MB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.1128, allocations: 0.8842 MB / 431.6 MB, free: 200 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.113, allocations: 11.94 kB / 431.6 MB, free: 188 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.1132, allocations: 83.2 kB / 431.7 MB, free: 104 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2004/0.3136, allocations: 146.6 kB / 431.8 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007485/0.3144, allocations: 192.2 kB / 432 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008834/0.3153, allocations: 0.6123 MB / 432.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003223/0.3156, allocations: 166.7 kB / 432.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.3159, allocations: 251.2 kB / 433 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003394/0.3162, allocations: 283.9 kB / 433.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.3163, allocations: 59.38 kB / 433.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.104e-05/0.3164, allocations: 55.72 kB / 433.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.184e-05/0.3165, allocations: 130.2 kB / 433.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.3167, allocations: 279.8 kB / 433.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005472/0.3173, allocations: 0.613 MB / 434.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3173, allocations: 3.938 kB / 434.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3173, allocations: 0 / 434.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.3173, allocations: 0 / 434.4 MB, free: 7.34 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001436/0.3187, allocations: 0.8601 MB / 435.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.3188, allocations: 11.31 kB / 435.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.2e-05/0.3189, allocations: 89.3 kB / 435.4 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.319, allocations: 59.28 kB / 435.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004596/0.3195, allocations: 343.1 kB / 435.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.3195, allocations: 37.06 kB / 435.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-05/0.3196, allocations: 47.88 kB / 435.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008969/0.3205, allocations: 0.5135 MB / 436.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.3205, allocations: 0 / 436.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.3205, allocations: 19.84 kB / 436.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3205, allocations: 14.72 kB / 436.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006736/0.3212, allocations: 318.9 kB / 436.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002198/0.3234, allocations: 1.544 MB / 438.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005256/0.3239, allocations: 196.3 kB / 438.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.3241, allocations: 93.34 kB / 438.5 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.3242, allocations: 4.422 kB / 438.5 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003983/0.3246, allocations: 214.1 kB / 438.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.3246, allocations: 0 / 438.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.001509/0.3261, allocations: 0.77 MB / 439.5 MB, free: 4.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.3262, allocations: 324.8 kB / 439.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003768/0.3265, allocations: 307.9 kB / 440.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.3266, allocations: 33.17 kB / 440.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.3267, allocations: 276.3 kB / 440.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.63e-05/0.3268, allocations: 94.69 kB / 440.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.3269, allocations: 88.19 kB / 440.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.871e-05/0.327, allocations: 338.7 kB / 440.9 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.3273, allocations: 100.9 kB / 441 MB, free: 3.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.3276, allocations: 260.7 kB / 441.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004944/0.3281, allocations: 329.9 kB / 441.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3281, allocations: 1.156 kB / 441.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001109/0.3292, allocations: 0.5291 MB / 442.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.174e-05/0.3293, allocations: 37.2 kB / 442.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.3293, allocations: 3.406 kB / 442.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006443/0.3299, allocations: 161.3 kB / 442.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.3301, allocations: 55.09 kB / 442.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004344/0.3345, allocations: 4.928 MB / 447.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005143/0.335, allocations: 66.31 kB / 447.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.335, allocations: 15.72 kB / 447.4 MB, free: 14.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003189/0.3353, allocations: 171.5 kB / 447.6 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.113e-05/0.3354, allocations: 37.84 kB / 447.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.885e-05/0.3355, allocations: 36.94 kB / 447.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.3355, allocations: 8.719 kB / 447.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/0.3355, allocations: 5.25 kB / 447.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3355, allocations: 1.406 kB / 447.7 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006615/0.3362, allocations: 425.2 kB / 448.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3362, allocations: 1.25 kB / 448.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.3364, allocations: 32.2 kB / 448.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003538/0.3367, allocations: 106.9 kB / 448.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/0.3368, allocations: 8.188 kB / 448.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004722/0.3415, allocations: 5.759 MB / 454 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3415, allocations: 1.797 kB / 454 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008712/0.3423, allocations: 361.9 kB / 454.3 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.3425, allocations: 112.8 kB / 454.4 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.3425, allocations: 8.172 kB / 454.5 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.3428, allocations: 34.02 kB / 454.5 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.3429, allocations: 50.44 kB / 454.5 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.3429, allocations: 8.531 kB / 454.5 MB, free: 7.352 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002747/0.3432, allocations: 219.6 kB / 454.8 MB, free: 7.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3432, allocations: 0 / 454.8 MB, free: 7.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006242/0.3438, allocations: 146.9 kB / 454.9 MB, free: 7.199 MB / 366.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: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001185/0.345, allocations: 0.9155 MB / 455.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.3463, allocations: 0.6961 MB / 456.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3463, allocations: 1.531 kB / 456.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008177/0.3472, allocations: 0.5727 MB / 457.1 MB, free: 5.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.3475, allocations: 62.61 kB / 457.2 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005904/0.3534, allocations: 3.486 MB / 460.6 MB, free: 3.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.354, allocations: 0.8133 MB / 461.5 MB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002085/0.3542, allocations: 39.5 kB / 461.5 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.3545, allocations: 147.1 kB / 461.6 MB, free: 2.367 MB / 366.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3545, allocations: 1.812 kB / 461.6 MB, free: 2.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/0.4, allocations: 9.309 MB / 470.9 MB, free: 14.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.45, allocations: 5.031 kB / 470.9 MB, free: 14.96 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines_res.csv --start-time 0 --stop-time 2e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-10 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.91426661098376] Failed to read output from testmodel.py, exit status != 0: ['time', 'line1.v1', 'line1.v2', 'line1.i1', 'line1.i2', 'line2.v1', 'line2.v2', 'line2.i1', 'line2.i2', 'line3.v1', 'line3.v2', 'line3.i1', 'line3.i2'] 10.53723758785054 10.565069031 10.242737131 Calling exit ...