Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.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.001525/0.001525, allocations: 120.2 kB / 18.5 MB, free: 4.578 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.001446/0.001446, allocations: 205 kB / 21.45 MB, free: 1.629 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.436/1.436, 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.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SeriesResonance",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.001911/0.001911, allocations: 71.83 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1048, allocations: 53.32 MB / 427 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004449/0.1092, allocations: 2.921 MB / 429.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.1111, allocations: 0.7128 MB / 430.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001949/0.1113, allocations: 11.94 kB / 430.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.1115, allocations: 55.42 kB / 430.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002611/0.1118, allocations: 91.2 kB / 430.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003736/0.1122, allocations: 91.81 kB / 430.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005932/0.1128, allocations: 374.4 kB / 431.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003142/0.1131, allocations: 113.4 kB / 431.4 MB, free: 396 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.1134, allocations: 151.5 kB / 431.5 MB, free: 244 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.1137, allocations: 155.3 kB / 431.7 MB, free: 88 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.496e-05/0.1138, allocations: 35.94 kB / 431.7 MB, free: 52 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.457e-05/0.1138, allocations: 36 kB / 431.7 MB, free: 16 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.218/0.3318, allocations: 64.75 kB / 431.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000231/0.3321, allocations: 168.9 kB / 432 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005451/0.3326, allocations: 384.2 kB / 432.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3326, allocations: 1.375 kB / 432.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3326, allocations: 0 / 432.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3326, allocations: 0 / 432.4 MB, free: 7.891 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.000828/0.3335, allocations: 0.6124 MB / 433 MB, free: 7.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3335, allocations: 9.406 kB / 433 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.257e-05/0.3336, allocations: 67.19 kB / 433 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.651e-05/0.3336, allocations: 41.27 kB / 433.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.3339, allocations: 264.7 kB / 433.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.3339, allocations: 25.12 kB / 433.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.334, allocations: 29.34 kB / 433.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004664/0.3345, allocations: 280.5 kB / 433.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3345, allocations: 3.719 kB / 433.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.504e-05/0.3345, allocations: 12.84 kB / 433.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3345, allocations: 7.469 kB / 433.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004058/0.3349, allocations: 205.1 kB / 433.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.3361, allocations: 0.9753 MB / 434.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.3364, allocations: 156.2 kB / 435 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.3365, allocations: 77.39 kB / 435.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.3366, allocations: 2.625 kB / 435.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.3366, allocations: 35.78 kB / 435.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.3366, allocations: 0 / 435.1 MB, free: 6.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005084/0.3371, allocations: 217.2 kB / 435.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.3371, allocations: 53.81 kB / 435.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.3373, allocations: 213.2 kB / 435.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.3373, allocations: 26.83 kB / 435.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.3374, allocations: 192.5 kB / 435.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.3374, allocations: 73.2 kB / 435.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.508e-05/0.3375, allocations: 52.94 kB / 435.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.239e-05/0.3375, allocations: 328.8 kB / 436.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3377, allocations: 64.78 kB / 436.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.3379, allocations: 121.6 kB / 436.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003183/0.3382, allocations: 185.8 kB / 436.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3382, allocations: 1.125 kB / 436.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004478/0.3386, allocations: 250.8 kB / 436.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.3386, allocations: 5.656 kB / 436.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3386, allocations: 1.375 kB / 436.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.3387, allocations: 4.094 kB / 436.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.3389, allocations: 60.03 kB / 436.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.339, allocations: 3.812 kB / 436.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.3391, allocations: 33.02 kB / 437 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3391, allocations: 12.16 kB / 437 MB, free: 5.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001038/0.3392, allocations: 143.9 kB / 437.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.531e-05/0.3393, allocations: 22.56 kB / 437.2 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004125/0.3397, allocations: 191.4 kB / 437.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3397, allocations: 1.781 kB / 437.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3397, allocations: 1.062 kB / 437.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3397, allocations: 1.453 kB / 437.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.34, allocations: 330.3 kB / 437.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.34, allocations: 0.7031 kB / 437.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.3403, allocations: 51.41 kB / 437.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.3403, allocations: 1.125 kB / 437.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.3403, allocations: 6.531 kB / 437.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.3403, allocations: 1.688 kB / 437.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3403, allocations: 1.531 kB / 437.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.3409, allocations: 355.8 kB / 438.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.3409, allocations: 103.7 kB / 438.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.341, allocations: 2.203 kB / 438.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.3411, allocations: 16.55 kB / 438.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.3412, allocations: 12.36 kB / 438.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.3412, allocations: 5.891 kB / 438.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.3413, allocations: 155.6 kB / 438.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3413, allocations: 0 / 438.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.3417, allocations: 69.75 kB / 438.4 MB, free: 4.891 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0007274/0.3424, allocations: 0.8939 MB / 439.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003932/0.3428, allocations: 146.9 kB / 439.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3428, allocations: 1.094 kB / 439.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.343, allocations: 78.44 kB / 439.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.3433, allocations: 30.12 kB / 439.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.3465, allocations: 2.709 MB / 442.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.3467, allocations: 0.7726 MB / 443.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.3468, allocations: 19.61 kB / 443.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.347, allocations: 95.39 kB / 443.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.347, allocations: 0 / 443.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.3776, allocations: 4.564 MB / 447.7 MB, free: 1.035 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.943/8.321, allocations: 7.266 kB / 447.7 MB, free: 1.031 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance_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_SeriesResonance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.790760358795524] Failed to read output from testmodel.py, exit status != 0: ['time', 'capacitor1.v', 'capacitor2.v', 'cosineVoltage.phi', 'inductor1.i', 'inductor2.i', 'sineVoltage.phi'] 8.392779672052711 8.417352349 8.080277823 Calling exit ...