Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001278, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 200.6 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.398/1.398, 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.001851/0.001851, allocations: 60.09 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2959, allocations: 50.55 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01419/0.3102, allocations: 12.17 MB / 421.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007694/0.3179, allocations: 3.304 MB / 424.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002333/0.3203, allocations: 39.88 kB / 424.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.3227, allocations: 0.6673 MB / 425.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003332/0.3261, allocations: 0.7247 MB / 426 MB, free: 408 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.3273, allocations: 399.6 kB / 426.4 MB, free: 8 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003628/0.3309, allocations: 2.413 MB / 428.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001568/0.3325, allocations: 0.993 MB / 429.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001617/0.3341, allocations: 0.9066 MB / 430.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001424/0.3356, allocations: 0.9801 MB / 431.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003627/0.336, allocations: 231.9 kB / 431.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006044/0.3366, allocations: 272 kB / 432.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00039/0.337, allocations: 454.4 kB / 432.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001294/0.3383, allocations: 1.081 MB / 433.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003452/0.3417, allocations: 2.837 MB / 436.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3418, allocations: 0 / 436.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3418, allocations: 0 / 436.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.294e-05/0.3418, allocations: 0 / 436.5 MB, free: 5.773 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004257/0.3461, allocations: 2.22 MB / 438.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.3462, allocations: 12.03 kB / 438.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002664/0.3464, allocations: 216.1 kB / 439 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009115/0.3474, allocations: 291.5 kB / 439.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002058/0.3494, allocations: 1.135 MB / 440.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.631e-05/0.3495, allocations: 115.2 kB / 440.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002138/0.3498, allocations: 167.8 kB / 440.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002668/0.3524, allocations: 1.504 MB / 442.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.002e-05/0.3525, allocations: 11.94 kB / 442.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.3526, allocations: 68 kB / 442.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.378e-05/0.3527, allocations: 36 kB / 442.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/0.3548, allocations: 1.045 MB / 443.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009295/0.3641, allocations: 6.247 MB / 449.6 MB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.3657, allocations: 0.6115 MB / 450.2 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009378/0.3666, allocations: 466.2 kB / 450.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.3667, allocations: 12.5 kB / 450.7 MB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.3668, allocations: 43.06 kB / 450.7 MB, free: 7.086 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.215e-06/0.3668, allocations: 0 / 450.7 MB, free: 7.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005384/0.3722, allocations: 2.398 MB / 453.1 MB, free: 4.602 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.27e-05/0.3723, allocations: 111.5 kB / 453.2 MB, free: 4.469 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002019/0.3743, allocations: 1.306 MB / 454.5 MB, free: 3.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.208e-05/0.3744, allocations: 41.7 kB / 454.5 MB, free: 3.102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000675/0.3751, allocations: 0.8671 MB / 455.4 MB, free: 2.227 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.3753, allocations: 273.7 kB / 455.7 MB, free: 1.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.3756, allocations: 210.8 kB / 455.9 MB, free: 1.746 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.3758, allocations: 345.9 kB / 456.2 MB, free: 1.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006573/0.3765, allocations: 282.5 kB / 456.5 MB, free: 1.125 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009734/0.3775, allocations: 0.7421 MB / 457.2 MB, free: 172 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.3791, allocations: 1.088 MB / 458.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.3792, allocations: 8 kB / 458.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002585/0.3818, allocations: 1.265 MB / 459.6 MB, free: 13.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.3818, allocations: 16.03 kB / 459.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.3818, allocations: 16 kB / 459.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00053/0.3824, allocations: 130.5 kB / 459.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008044/0.3832, allocations: 259.6 kB / 460 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004276/0.3875, allocations: 4.635 MB / 464.7 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.3886, allocations: 72.05 kB / 464.7 MB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.005e-05/0.3887, allocations: 56 kB / 464.8 MB, free: 7.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006783/0.3894, allocations: 355 kB / 465.1 MB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.3896, allocations: 147.1 kB / 465.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/0.3914, allocations: 0.8372 MB / 466.1 MB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.3915, allocations: 11.94 kB / 466.1 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3915, allocations: 0 / 466.1 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3915, allocations: 3.984 kB / 466.1 MB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003996/0.3955, allocations: 2.327 MB / 468.4 MB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.3955, allocations: 4 kB / 468.4 MB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005655/0.3961, allocations: 127.8 kB / 468.6 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000435/0.3965, allocations: 142.4 kB / 468.7 MB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-05/0.3966, allocations: 23.98 kB / 468.7 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004655/0.4012, allocations: 4.791 MB / 473.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.249e-05/0.4013, allocations: 7.938 kB / 473.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.4038, allocations: 1.297 MB / 474.8 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005569/0.4044, allocations: 292 kB / 475.1 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.4045, allocations: 16 kB / 475.1 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005867/0.4051, allocations: 39.97 kB / 475.2 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.4053, allocations: 68.36 kB / 475.2 MB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-05/0.4053, allocations: 20 kB / 475.3 MB, free: 12.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001304/0.4066, allocations: 0.8781 MB / 476.1 MB, free: 11.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4067, allocations: 0 / 476.1 MB, free: 11.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00123/0.4079, allocations: 332 kB / 476.5 MB, free: 11.62 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002872/0.4108, allocations: 1.881 MB / 478.3 MB, free: 9.656 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002216/0.413, allocations: 1.136 MB / 479.5 MB, free: 8.477 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.413, allocations: 0.9375 kB / 479.5 MB, free: 8.477 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.4141, allocations: 0.71 MB / 480.2 MB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/0.4161, allocations: 371.4 kB / 480.6 MB, free: 7.383 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/0.4354, allocations: 11.73 MB / 492.3 MB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009536/0.4364, allocations: 1.214 MB / 493.5 MB, free: 9.703 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006974/0.4371, allocations: 175.6 kB / 493.7 MB, free: 9.527 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007729/0.4379, allocations: 0.6125 MB / 494.3 MB, free: 8.914 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4379, allocations: 0 / 494.3 MB, free: 8.914 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07761/0.5155, allocations: 31.2 MB / 0.5132 GB, free: 10.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/14.96, allocations: 12.05 kB / 0.5132 GB, free: 10.11 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)