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_Temperature.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_Temperature,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001822/0.001822, allocations: 118.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.002053/0.002053, allocations: 197.2 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.42/1.42, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.00211/0.00211, allocations: 63.91 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2691, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01127/0.2804, allocations: 7.991 MB / 417.1 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005377/0.2859, allocations: 2.655 MB / 419.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.2869, allocations: 23.94 kB / 419.7 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001765/0.2887, allocations: 0.4969 MB / 420.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001574/0.2903, allocations: 404.8 kB / 420.6 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007214/0.291, allocations: 219.6 kB / 420.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001877/0.2929, allocations: 1.229 MB / 422.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.294, allocations: 0.5408 MB / 422.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.295, allocations: 486.1 kB / 423.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.2961, allocations: 0.5211 MB / 423.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002797/0.2964, allocations: 112 kB / 423.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004973/0.2969, allocations: 160 kB / 423.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002701/0.2972, allocations: 231.2 kB / 424.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008811/0.2981, allocations: 0.5599 MB / 424.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002001/0.3001, allocations: 1.471 MB / 426.1 MB, free: 208 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3001, allocations: 0 / 426.1 MB, free: 208 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3001, allocations: 0 / 426.1 MB, free: 208 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.3001, allocations: 4 kB / 426.1 MB, free: 204 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002281/0.3024, allocations: 1.339 MB / 427.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.3025, allocations: 12.03 kB / 427.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001628/0.3027, allocations: 131.5 kB / 427.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006922/0.3034, allocations: 176.2 kB / 427.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.3045, allocations: 0.6499 MB / 428.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.786e-05/0.3046, allocations: 66.12 kB / 428.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.3048, allocations: 84 kB / 428.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.3063, allocations: 0.8262 MB / 429.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.3064, allocations: 3.953 kB / 429.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/0.3065, allocations: 36 kB / 429.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.3065, allocations: 20 kB / 429.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.3076, allocations: 0.5426 MB / 430 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004766/0.3124, allocations: 3.552 MB / 433.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000539/0.3129, allocations: 238.7 kB / 433.8 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002629/0.3132, allocations: 124.8 kB / 433.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.3132, allocations: 4 kB / 433.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.3133, allocations: 38.5 kB / 434 MB, free: 7.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.3133, allocations: 0 / 434 MB, free: 7.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002326/0.3156, allocations: 1.099 MB / 435.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.3157, allocations: 85.05 kB / 435.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.3167, allocations: 0.7624 MB / 435.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.3168, allocations: 33.69 kB / 435.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005376/0.3173, allocations: 0.5267 MB / 436.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.676e-05/0.3174, allocations: 115.1 kB / 436.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.3176, allocations: 122.2 kB / 436.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.3178, allocations: 382.8 kB / 437.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/0.3181, allocations: 133.2 kB / 437.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/0.3187, allocations: 442.2 kB / 437.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009517/0.3196, allocations: 0.6138 MB / 438.2 MB, free: 3.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3196, allocations: 4 kB / 438.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0012/0.3208, allocations: 0.65 MB / 438.9 MB, free: 2.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.3209, allocations: 15.06 kB / 438.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.3209, allocations: 16.86 kB / 438.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001581/0.3211, allocations: 40.78 kB / 439 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004506/0.3215, allocations: 151.7 kB / 439.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.3228, allocations: 1.39 MB / 440.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004223/0.3233, allocations: 35.94 kB / 440.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.3233, allocations: 39.94 kB / 440.6 MB, free: 0.7891 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0003235/0.3237, allocations: 247.3 kB / 440.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.3238, allocations: 79.48 kB / 440.9 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007043/0.3245, allocations: 334 kB / 441.2 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3245, allocations: 0 / 441.2 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.3245, allocations: 7.938 kB / 441.2 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3245, allocations: 3.984 kB / 441.2 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.3264, allocations: 1.118 MB / 442.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3264, allocations: 4 kB / 442.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003663/0.3267, allocations: 59.91 kB / 442.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.108e-05/0.3268, allocations: 24.84 kB / 442.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.3269, allocations: 11.94 kB / 442.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.328, allocations: 1.375 MB / 443.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.328, allocations: 0 / 443.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009514/0.329, allocations: 0.5793 MB / 444.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.3292, allocations: 180.6 kB / 444.6 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.737e-05/0.3293, allocations: 8 kB / 444.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.3296, allocations: 23.97 kB / 444.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.59e-05/0.3297, allocations: 31.91 kB / 444.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.3297, allocations: 12 kB / 444.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007089/0.3305, allocations: 0.5185 MB / 445.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3305, allocations: 0 / 445.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006276/0.3311, allocations: 171.9 kB / 445.3 MB, free: 11.72 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 (28): * Single equations (assignments): 27 * 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.001492/0.3326, allocations: 1.138 MB / 446.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008934/0.3335, allocations: 476.1 kB / 446.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3335, allocations: 0.75 kB / 447 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003914/0.3339, allocations: 246.4 kB / 447.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009029/0.3348, allocations: 195.2 kB / 447.4 MB, free: 9.609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008959/0.3438, allocations: 6.518 MB / 453.9 MB, free: 2.656 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006324/0.3445, allocations: 0.9487 MB / 454.8 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003296/0.3448, allocations: 98.16 kB / 454.9 MB, free: 1.582 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004014/0.3452, allocations: 315.3 kB / 455.3 MB, free: 1.273 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3452, allocations: 0 / 455.3 MB, free: 1.273 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04906/0.3943, allocations: 16.06 MB / 471.3 MB, free: 1.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.34, allocations: 21.89 kB / 471.3 MB, free: 1.473 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.csv --start-time 0 --stop-time 3 --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_Temperature.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1)