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.001553/0.001553, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001918/0.001918, allocations: 214.4 kB / 18.59 MB, free: 4.531 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.456/1.456, allocations: 227.7 MB / 247.1 MB, free: 10.29 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.002954/0.002954, allocations: 70.33 kB / 307.3 MB, free: 408 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.134, allocations: 50.53 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01387/0.148, allocations: 12.16 MB / 370 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1611/0.3091, allocations: 3.298 MB / 373.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00257/0.3118, allocations: 37.41 kB / 373.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002567/0.3144, allocations: 0.6698 MB / 374 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00309/0.3175, allocations: 0.7235 MB / 374.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.3188, allocations: 404.4 kB / 375.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003669/0.3225, allocations: 2.394 MB / 377.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.324, allocations: 1.011 MB / 378.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001954/0.326, allocations: 0.8986 MB / 379.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001365/0.3274, allocations: 0.9811 MB / 380.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00039/0.3278, allocations: 229.2 kB / 380.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006204/0.3284, allocations: 266.9 kB / 380.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002742/0.3287, allocations: 460.3 kB / 381.4 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008627/0.3296, allocations: 1.074 MB / 382.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002643/0.3322, allocations: 2.793 MB / 385.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3322, allocations: 0 / 385.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3322, allocations: 4 kB / 385.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.338e-05/0.3323, allocations: 0 / 385.3 MB, free: 6.68 MB / 302.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.003603/0.3359, allocations: 2.16 MB / 387.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.336, allocations: 10.34 kB / 387.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002101/0.3362, allocations: 224.2 kB / 387.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008888/0.3371, allocations: 286.4 kB / 387.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001641/0.3387, allocations: 1.098 MB / 389 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.824e-05/0.3388, allocations: 121 kB / 389.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/0.3391, allocations: 161.2 kB / 389.3 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00248/0.3416, allocations: 1.501 MB / 390.8 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.893e-05/0.3416, allocations: 11.67 kB / 390.8 MB, free: 3.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/0.3418, allocations: 63.38 kB / 390.9 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.3418, allocations: 41.62 kB / 390.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.3436, allocations: 1.049 MB / 392 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007752/0.3514, allocations: 6.289 MB / 398.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.353, allocations: 0.6129 MB / 398.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009769/0.354, allocations: 464.6 kB / 399.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.3541, allocations: 8.266 kB / 399.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.3541, allocations: 47.27 kB / 399.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.876e-06/0.3541, allocations: 0 / 399.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005552/0.3597, allocations: 2.36 MB / 401.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/0.3598, allocations: 115.1 kB / 401.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001909/0.3617, allocations: 1.306 MB / 403.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.068e-05/0.3618, allocations: 36.39 kB / 403.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006879/0.3625, allocations: 0.8487 MB / 404 MB, free: 9.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002193/0.3627, allocations: 262.7 kB / 404.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/0.363, allocations: 207.5 kB / 404.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.3632, allocations: 346.1 kB / 404.8 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005935/0.3638, allocations: 292.1 kB / 405.1 MB, free: 9.039 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000963/0.3648, allocations: 0.7313 MB / 405.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.3665, allocations: 1.09 MB / 406.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-06/0.3665, allocations: 4 kB / 406.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002836/0.3693, allocations: 1.264 MB / 408.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.3694, allocations: 12 kB / 408.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.3694, allocations: 16 kB / 408.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005341/0.3699, allocations: 130.6 kB / 408.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008579/0.3708, allocations: 259.5 kB / 408.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/0.3754, allocations: 4.641 MB / 413.3 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.3766, allocations: 64 kB / 413.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.009e-05/0.3767, allocations: 64 kB / 413.4 MB, free: 304 kB / 318.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.0006804/0.3774, allocations: 357.5 kB / 413.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.3776, allocations: 142.3 kB / 413.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.3795, allocations: 0.8333 MB / 414.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.3795, allocations: 15.94 kB / 414.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3796, allocations: 0 / 414.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.3796, allocations: 3.984 kB / 414.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004369/0.3839, allocations: 2.322 MB / 417 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.384, allocations: 4 kB / 417 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005964/0.3846, allocations: 127.8 kB / 417.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005/0.3851, allocations: 138.6 kB / 417.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/0.3852, allocations: 19.98 kB / 417.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005052/0.3902, allocations: 4.799 MB / 422.1 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.3903, allocations: 7.938 kB / 422.1 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003009/0.3933, allocations: 1.284 MB / 423.4 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008551/0.3942, allocations: 287.3 kB / 423.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002125/0.3944, allocations: 16 kB / 423.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006633/0.3951, allocations: 47.94 kB / 423.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.3952, allocations: 64.38 kB / 423.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.615e-05/0.3953, allocations: 23.98 kB / 423.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001527/0.3968, allocations: 0.8781 MB / 424.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3968, allocations: 0 / 424.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001537/0.3984, allocations: 328 kB / 425 MB, free: 3.969 MB / 334.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.003108/0.4015, allocations: 1.877 MB / 426.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002408/0.4039, allocations: 1.148 MB / 428.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.404, allocations: 0 / 428.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.4051, allocations: 0.711 MB / 428.8 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/0.4073, allocations: 379 kB / 429.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/0.4296, allocations: 13.06 MB / 442.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001086/0.4308, allocations: 1.214 MB / 443.4 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007751/0.4315, allocations: 171.6 kB / 443.6 MB, free: 120 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009345/0.4325, allocations: 0.6184 MB / 444.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4325, allocations: 4 kB / 444.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08887/0.5214, allocations: 30.55 MB / 474.8 MB, free: 1.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/13.07, allocations: 13.36 kB / 474.8 MB, free: 1.359 MB / 382.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)