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_Start.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_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001393, allocations: 121.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.001394/0.001394, allocations: 208.6 kB / 18.74 MB, free: 4.328 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.406/1.406, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001883/0.001884, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2532, allocations: 50.54 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.0091/0.2623, allocations: 7.163 MB / 416.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004124/0.2665, allocations: 2.371 MB / 418.6 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006234/0.2672, allocations: 19.94 kB / 418.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001279/0.2685, allocations: 0.4892 MB / 419.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009501/0.2694, allocations: 385 kB / 419.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.2698, allocations: 199.8 kB / 419.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.2712, allocations: 1.202 MB / 420.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000699/0.2719, allocations: 0.5154 MB / 421.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006815/0.2726, allocations: 466.2 kB / 421.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005717/0.2731, allocations: 493.8 kB / 422.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.2733, allocations: 119.9 kB / 422.5 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003115/0.2736, allocations: 160 kB / 422.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.2738, allocations: 227.2 kB / 422.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005068/0.2743, allocations: 0.5404 MB / 423.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001583/0.2759, allocations: 1.444 MB / 424.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2759, allocations: 0 / 424.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2759, allocations: 0 / 424.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.276, allocations: 0 / 424.8 MB, free: 1.531 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002046/0.278, allocations: 1.265 MB / 426.1 MB, free: 220 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.2781, allocations: 12.03 kB / 426.1 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001447/0.2782, allocations: 127.1 kB / 426.2 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004863/0.2787, allocations: 152.2 kB / 426.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.2798, allocations: 0.6499 MB / 427 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.512e-05/0.2798, allocations: 58.38 kB / 427.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.28, allocations: 92.08 kB / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.2813, allocations: 0.7754 MB / 427.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.2813, allocations: 4 kB / 427.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.82e-05/0.2814, allocations: 36 kB / 428 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.2814, allocations: 20 kB / 428 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.2824, allocations: 0.5191 MB / 428.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004278/0.2867, allocations: 3.377 MB / 431.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005093/0.2873, allocations: 230.5 kB / 432.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.2875, allocations: 112.8 kB / 432.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.2876, allocations: 4 kB / 432.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.2876, allocations: 34.56 kB / 432.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.314e-06/0.2876, allocations: 0 / 432.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002116/0.2897, allocations: 1.067 MB / 433.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.2898, allocations: 81.34 kB / 433.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009382/0.2907, allocations: 0.7272 MB / 434.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.2908, allocations: 33.7 kB / 434.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003918/0.2912, allocations: 0.5073 MB / 434.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.263e-05/0.2913, allocations: 107.1 kB / 434.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.2914, allocations: 114.2 kB / 434.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.2916, allocations: 382.8 kB / 435.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002732/0.2919, allocations: 121.2 kB / 435.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004899/0.2924, allocations: 422.2 kB / 435.8 MB, free: 5.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008206/0.2932, allocations: 0.5676 MB / 436.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.2932, allocations: 7.938 kB / 436.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001157/0.2944, allocations: 0.6155 MB / 437 MB, free: 4.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.2944, allocations: 12.19 kB / 437 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.2945, allocations: 12 kB / 437 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.2946, allocations: 40.78 kB / 437.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.2951, allocations: 135.8 kB / 437.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.2963, allocations: 1.398 MB / 438.6 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004914/0.2968, allocations: 35.94 kB / 438.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.2968, allocations: 32.12 kB / 438.7 MB, free: 2.785 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003655/0.2972, allocations: 241.9 kB / 438.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.2973, allocations: 75.53 kB / 439 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000672/0.298, allocations: 321.3 kB / 439.3 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.298, allocations: 4 kB / 439.3 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.298, allocations: 7.984 kB / 439.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2981, allocations: 0 / 439.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/0.2997, allocations: 1.092 MB / 440.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.2997, allocations: 0 / 440.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.2999, allocations: 63.95 kB / 440.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.384e-05/0.3, allocations: 16.8 kB / 440.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.3001, allocations: 8 kB / 440.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.3012, allocations: 1.375 MB / 441.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.3012, allocations: 16.09 kB / 441.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009469/0.3021, allocations: 0.553 MB / 442.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.3024, allocations: 176.6 kB / 442.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.299e-05/0.3025, allocations: 8 kB / 442.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.3028, allocations: 20.08 kB / 442.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.3029, allocations: 31.89 kB / 442.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.3029, allocations: 8 kB / 442.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006879/0.3036, allocations: 0.5029 MB / 443.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3036, allocations: 0 / 443.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006649/0.3042, allocations: 164 kB / 443.3 MB, free: 13.82 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001317/0.3056, allocations: 1.129 MB / 444.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008922/0.3065, allocations: 464.3 kB / 444.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.3065, allocations: 4.375 kB / 444.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.3069, allocations: 234.5 kB / 445.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008719/0.3078, allocations: 182.9 kB / 445.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008715/0.3165, allocations: 6.274 MB / 451.6 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006017/0.3171, allocations: 0.9449 MB / 452.5 MB, free: 4.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000345/0.3175, allocations: 94 kB / 452.6 MB, free: 4.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.3179, allocations: 299.3 kB / 452.9 MB, free: 3.711 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3179, allocations: 3.938 kB / 452.9 MB, free: 3.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04676/0.3646, allocations: 15.47 MB / 468.4 MB, free: 4.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.2, allocations: 0 / 468.4 MB, free: 4.52 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_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_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)