Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001258/0.001258, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 207.8 kB / 18.74 MB, free: 4.312 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.397/1.397, 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.00189/0.00189, allocations: 63.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2603, allocations: 50.54 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.01154/0.2719, allocations: 9.734 MB / 418.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005993/0.2779, allocations: 3.084 MB / 421.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001506/0.2795, allocations: 47.81 kB / 422 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.2815, allocations: 0.6326 MB / 422.6 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.2842, allocations: 0.7453 MB / 423.3 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.2852, allocations: 383.4 kB / 423.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003127/0.2884, allocations: 2.443 MB / 426.1 MB, free: 220 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002104/0.2905, allocations: 1.758 MB / 427.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001556/0.2921, allocations: 1.082 MB / 429 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001815/0.2939, allocations: 1.312 MB / 430.3 MB, free: 12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004221/0.2943, allocations: 284 kB / 430.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007788/0.2951, allocations: 371.8 kB / 430.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007734/0.2959, allocations: 0.7791 MB / 431.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001406/0.2973, allocations: 1.268 MB / 433 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004047/0.3014, allocations: 3.674 MB / 436.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3014, allocations: 4 kB / 436.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3014, allocations: 0 / 436.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.04e-05/0.3015, allocations: 0 / 436.7 MB, free: 5.617 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.005255/0.3068, allocations: 2.655 MB / 439.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3068, allocations: 12.03 kB / 439.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003421/0.3072, allocations: 270.6 kB / 439.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007975/0.308, allocations: 287.3 kB / 439.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00231/0.3103, allocations: 1.378 MB / 441.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.3104, allocations: 147.9 kB / 441.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003/0.3107, allocations: 192 kB / 441.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003911/0.3147, allocations: 2.419 MB / 444 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.147e-05/0.3147, allocations: 0 / 444 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001812/0.3149, allocations: 76 kB / 444.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.905e-05/0.315, allocations: 91.67 kB / 444.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003402/0.3184, allocations: 1.966 MB / 446.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01237/0.3308, allocations: 7.788 MB / 453.9 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.3327, allocations: 1.235 MB / 455.2 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00189/0.3346, allocations: 0.9633 MB / 456.1 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002509/0.3349, allocations: 122.1 kB / 456.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.3349, allocations: 43.56 kB / 456.3 MB, free: 1.516 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 3.416e-06/0.3349, allocations: 0 / 456.3 MB, free: 1.516 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.01302/0.348, allocations: 5.892 MB / 462.2 MB, free: 11.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.348, allocations: 68.34 kB / 462.2 MB, free: 11.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.35, allocations: 1.31 MB / 463.5 MB, free: 10.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.3502, allocations: 45.7 kB / 463.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007249/0.3509, allocations: 0.9458 MB / 464.5 MB, free: 9.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003742/0.3513, allocations: 408.5 kB / 464.9 MB, free: 8.672 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000408/0.3517, allocations: 255.5 kB / 465.2 MB, free: 8.418 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.3519, allocations: 357.9 kB / 465.5 MB, free: 8.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.3529, allocations: 0.6364 MB / 466.2 MB, free: 7.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.3542, allocations: 1.008 MB / 467.2 MB, free: 6.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002447/0.3567, allocations: 1.735 MB / 468.9 MB, free: 4.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.3567, allocations: 7.938 kB / 468.9 MB, free: 4.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003971/0.3607, allocations: 2.246 MB / 471.2 MB, free: 2.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.3608, allocations: 15.98 kB / 471.2 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/0.3608, allocations: 12 kB / 471.2 MB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.3621, allocations: 0.4923 MB / 471.7 MB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.3631, allocations: 299.5 kB / 472 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007513/0.3707, allocations: 7.12 MB / 479.1 MB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.3719, allocations: 87.91 kB / 479.2 MB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.3721, allocations: 56.05 kB / 479.2 MB, free: 9.598 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001089/0.3732, allocations: 0.6154 MB / 479.9 MB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003392/0.3735, allocations: 155 kB / 480 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003546/0.3771, allocations: 1.969 MB / 482 MB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.3771, allocations: 12 kB / 482 MB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.3771, allocations: 4 kB / 482 MB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.3772, allocations: 3.984 kB / 482 MB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007126/0.3843, allocations: 4.125 MB / 486.1 MB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.3843, allocations: 4 kB / 486.1 MB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008248/0.3852, allocations: 188 kB / 486.3 MB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.3867, allocations: 0.5348 MB / 486.8 MB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.711e-05/0.3868, allocations: 32.17 kB / 486.9 MB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008878/0.3957, allocations: 8.768 MB / 495.6 MB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.3957, allocations: 7.938 kB / 495.7 MB, free: 8.473 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00463/0.4004, allocations: 2.852 MB / 498.5 MB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007357/0.4011, allocations: 364 kB / 498.9 MB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.4013, allocations: 36.05 kB / 498.9 MB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007383/0.4021, allocations: 63.92 kB / 499 MB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.4023, allocations: 84.83 kB / 499 MB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.078e-05/0.4024, allocations: 35.98 kB / 499.1 MB, free: 4.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001292/0.4037, allocations: 0.8918 MB / 500 MB, free: 4.074 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4037, allocations: 0 / 500 MB, free: 4.074 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001448/0.4052, allocations: 439.9 kB / 0.4887 GB, free: 3.645 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,1,100.0%), (2,8,100.0%), (2,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.004982/0.4102, allocations: 3.489 MB / 0.4921 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003588/0.4138, allocations: 2.247 MB / 0.4943 GB, free: 13.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.4138, allocations: 0.6875 kB / 0.4943 GB, free: 13.75 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002304/0.4161, allocations: 1.494 MB / 0.4957 GB, free: 12.19 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.4182, allocations: 428.8 kB / 0.4961 GB, free: 11.78 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02374/0.4419, allocations: 15.71 MB / 0.5115 GB, free: 11.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/0.4434, allocations: 1.658 MB / 0.5131 GB, free: 9.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009694/0.4444, allocations: 316.8 kB / 0.5134 GB, free: 9.504 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009639/0.4453, allocations: 0.7219 MB / 0.5141 GB, free: 8.781 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4453, allocations: 0 / 0.5141 GB, free: 8.781 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2938/0.7392, allocations: 39.64 MB / 0.5528 GB, free: 123.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.41/20.14, allocations: 11.69 kB / 0.5528 GB, free: 123.1 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --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_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1)