Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0017/0.0017, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002078/0.002078, allocations: 203.9 kB / 18.74 MB, free: 4.332 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.488/1.488, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.00228/0.00228, allocations: 67.88 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3055, allocations: 50.55 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.007342/0.3129, allocations: 5.623 MB / 414.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004355/0.3173, allocations: 1.88 MB / 416.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008896/0.3182, allocations: 16 kB / 416.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004063/0.3223, allocations: 1.618 MB / 418.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002071/0.3244, allocations: 0.5866 MB / 418.8 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.3257, allocations: 418.8 kB / 419.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001448/0.3271, allocations: 0.794 MB / 420 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.3288, allocations: 0.8672 MB / 420.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007027/0.3295, allocations: 366.6 kB / 421.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007828/0.3303, allocations: 490.2 kB / 421.7 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002037/0.3305, allocations: 80 kB / 421.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007555/0.3313, allocations: 247.8 kB / 422 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.3315, allocations: 183.3 kB / 422.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006089/0.3321, allocations: 418 kB / 422.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.3342, allocations: 1.183 MB / 423.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3342, allocations: 3.938 kB / 423.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3342, allocations: 0 / 423.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.584e-05/0.3342, allocations: 0 / 423.8 MB, free: 2.559 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003939/0.3382, allocations: 1.368 MB / 425.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.3382, allocations: 12.03 kB / 425.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002334/0.3385, allocations: 152.3 kB / 425.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004597/0.3431, allocations: 0.6209 MB / 425.9 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008308/0.3439, allocations: 415.3 kB / 426.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.842e-05/0.344, allocations: 74.38 kB / 426.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.3443, allocations: 92.36 kB / 426.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.3464, allocations: 0.9939 MB / 427.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.606e-05/0.3464, allocations: 8 kB / 427.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.3465, allocations: 36 kB / 427.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.901e-05/0.3466, allocations: 24 kB / 427.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.3485, allocations: 0.9291 MB / 428.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005722/0.3542, allocations: 3.435 MB / 431.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.3571, allocations: 2.252 MB / 434.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/0.3577, allocations: 284.2 kB / 434.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00022/0.3579, allocations: 186.7 kB / 434.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.358, allocations: 47 kB / 434.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 3.146e-06/0.358, allocations: 4 kB / 434.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.001533/0.3595, allocations: 0.7173 MB / 435.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.258e-05/0.3596, allocations: 115.4 kB / 435.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.36, allocations: 274.8 kB / 435.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.36, allocations: 33.7 kB / 435.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.3603, allocations: 395.9 kB / 436.2 MB, free: 5.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/0.3605, allocations: 230 kB / 436.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.3608, allocations: 138.6 kB / 436.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.361, allocations: 350.7 kB / 436.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004667/0.3615, allocations: 229.8 kB / 437.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006219/0.3621, allocations: 435.3 kB / 437.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.3632, allocations: 0.7067 MB / 438.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3632, allocations: 0 / 438.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001376/0.3646, allocations: 0.7522 MB / 439 MB, free: 2.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3647, allocations: 11.94 kB / 439 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.3647, allocations: 4.75 kB / 439 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.921e-05/0.3647, allocations: 12 kB / 439 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007201/0.3654, allocations: 195.7 kB / 439.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.619e-05/0.3655, allocations: 15.92 kB / 439.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004532/0.3659, allocations: 79.41 kB / 439.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/0.366, allocations: 35.98 kB / 439.4 MB, free: 1.996 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * 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.0003407/0.3664, allocations: 217.6 kB / 439.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.3665, allocations: 47.64 kB / 439.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.3678, allocations: 0.6556 MB / 440.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.3679, allocations: 4 kB / 440.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.3679, allocations: 4 kB / 440.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.3679, allocations: 3.984 kB / 440.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002597/0.3705, allocations: 1.485 MB / 441.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3705, allocations: 0 / 441.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.3711, allocations: 143.8 kB / 441.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.3711, allocations: 4 kB / 441.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.3712, allocations: 16 kB / 441.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.704e-06/0.3712, allocations: 7.938 kB / 441.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3712, allocations: 0 / 441.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.3729, allocations: 1.123 MB / 443.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.3731, allocations: 120.8 kB / 443.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.851e-05/0.3732, allocations: 15.98 kB / 443.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.3735, allocations: 28 kB / 443.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3737, allocations: 48.44 kB / 443.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.3737, allocations: 23.98 kB / 443.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002027/0.3739, allocations: 182 kB / 443.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3739, allocations: 0 / 443.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007892/0.3747, allocations: 227.3 kB / 443.7 MB, free: 13.55 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * 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.002195/0.3769, allocations: 1.714 MB / 445.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.3782, allocations: 0.6138 MB / 446 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.3782, allocations: 0 / 446 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005058/0.3787, allocations: 314.9 kB / 446.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.3793, allocations: 51.23 kB / 446.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007397/0.3867, allocations: 4.84 MB / 451.2 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006801/0.3874, allocations: 0.9046 MB / 452.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.3877, allocations: 80.38 kB / 452.2 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.3881, allocations: 259.3 kB / 452.5 MB, free: 4.484 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3881, allocations: 0 / 452.5 MB, free: 4.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04005/0.4282, allocations: 9.48 MB / 461.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/9.017, allocations: 14.61 kB / 462 MB, free: 11.13 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1)