Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.001552/0.001552, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001454/0.001454, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.381/1.381, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits",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.001864/0.001864, allocations: 64.78 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2752, allocations: 53.37 MB / 431.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006692/0.2818, allocations: 5.437 MB / 437.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003135/0.285, allocations: 1.531 MB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004725/0.2855, allocations: 35.69 kB / 439 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005109/0.286, allocations: 217.8 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005289/0.2865, allocations: 202 kB / 439.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008373/0.2873, allocations: 419.2 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.2885, allocations: 1.13 MB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000524/0.289, allocations: 336.9 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005289/0.2895, allocations: 418.2 kB / 441.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004723/0.29, allocations: 437.5 kB / 442.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.2901, allocations: 84 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001994/0.2903, allocations: 100 kB / 442.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.2905, allocations: 211.1 kB / 442.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004142/0.2909, allocations: 0.497 MB / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.2921, allocations: 1.194 MB / 444.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.2921, allocations: 0 / 444.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2921, allocations: 0 / 444.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.732e-05/0.2922, allocations: 4 kB / 444.1 MB, free: 10.65 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001825/0.294, allocations: 1.264 MB / 445.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.294, allocations: 8.031 kB / 445.4 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.2942, allocations: 156.2 kB / 445.6 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003489/0.2945, allocations: 151.1 kB / 445.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.2956, allocations: 0.5743 MB / 446.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.513e-05/0.2956, allocations: 81.94 kB / 446.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.2958, allocations: 104 kB / 446.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.2974, allocations: 1.027 MB / 447.5 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.456e-05/0.2975, allocations: 11.92 kB / 447.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-05/0.2975, allocations: 44 kB / 447.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.2976, allocations: 24 kB / 447.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.2987, allocations: 0.5539 MB / 448.1 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005306/0.304, allocations: 5.413 MB / 453.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000576/0.3046, allocations: 224.9 kB / 453.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.3049, allocations: 149.6 kB / 453.9 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.305, allocations: 8.219 kB / 453.9 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.305, allocations: 38.56 kB / 454 MB, free: 336 kB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.023e-06/0.305, allocations: 0 / 454 MB, free: 336 kB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.00384/0.3089, allocations: 1.604 MB / 455.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.3089, allocations: 85.05 kB / 455.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007149/0.3096, allocations: 0.6373 MB / 456.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.3097, allocations: 33.7 kB / 456.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004175/0.3101, allocations: 0.62 MB / 456.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.3102, allocations: 150.8 kB / 457.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.3104, allocations: 142.5 kB / 457.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.3106, allocations: 386.7 kB / 457.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003/0.3109, allocations: 149.9 kB / 457.7 MB, free: 12.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005666/0.3114, allocations: 0.501 MB / 458.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009149/0.3124, allocations: 0.691 MB / 458.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3124, allocations: 0 / 458.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001154/0.3135, allocations: 0.7155 MB / 459.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.3135, allocations: 12 kB / 459.7 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.3136, allocations: 16 kB / 459.7 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.831e-05/0.3136, allocations: 16 kB / 459.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006357/0.3142, allocations: 204.2 kB / 459.9 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.428e-05/0.3143, allocations: 23.88 kB / 459.9 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.3146, allocations: 35.98 kB / 460 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.987e-05/0.3146, allocations: 40 kB / 460 MB, free: 9.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * 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.00031/0.315, allocations: 225.5 kB / 460.2 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.3151, allocations: 83.47 kB / 460.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001198/0.3152, allocations: 70.69 kB / 460.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.3152, allocations: 7.938 kB / 460.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.3152, allocations: 4 kB / 460.4 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3152, allocations: 3.984 kB / 460.4 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/0.3172, allocations: 1.285 MB / 461.7 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3172, allocations: 4 kB / 461.7 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004425/0.3177, allocations: 99.88 kB / 461.8 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3177, allocations: 3.938 kB / 461.8 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.3177, allocations: 11.98 kB / 461.8 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3177, allocations: 4.156 kB / 461.8 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3177, allocations: 8 kB / 461.8 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009765/0.3187, allocations: 0.709 MB / 462.5 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.716e-05/0.3188, allocations: 71.52 kB / 462.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.909e-05/0.3189, allocations: 8 kB / 462.6 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/0.3191, allocations: 19.98 kB / 462.6 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.051e-05/0.3192, allocations: 43.81 kB / 462.6 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.3192, allocations: 12 kB / 462.7 MB, free: 7.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004776/0.3197, allocations: 431 kB / 463.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3197, allocations: 0 / 463.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006171/0.3203, allocations: 136 kB / 463.2 MB, free: 6.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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.001357/0.3217, allocations: 1.246 MB / 464.5 MB, free: 5.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007943/0.3225, allocations: 421.6 kB / 464.9 MB, free: 4.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3225, allocations: 0 / 464.9 MB, free: 4.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.3228, allocations: 154.4 kB / 465 MB, free: 4.676 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.3233, allocations: 86.42 kB / 465.1 MB, free: 4.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008107/0.3314, allocations: 6.146 MB / 471.2 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006407/0.332, allocations: 0.9961 MB / 472.2 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002621/0.3323, allocations: 102 kB / 472.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004619/0.3328, allocations: 399.3 kB / 472.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3328, allocations: 0 / 472.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04283/0.3756, allocations: 12.23 MB / 485 MB, free: 344 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/8.892, allocations: 15.75 kB / 485 MB, free: 332 kB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.319696477148682] Failed to read output from testmodel.py, exit status != 0: ['time', 'capacitor1.v', 'capacitor2.v', 'inductor2.i'] 8.97235308913514 8.997152141 8.700308268 Calling exit ...