Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Start,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Start,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 222.9 MB / 239.2 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 192.4 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03473/0.03473, allocations: 8.799 MB / 348.5 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001725, allocations: 78.45 kB / 411.2 MB, free: 42.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1036, allocations: 51.57 MB / 462.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04786/0.1515, allocations: 45.3 MB / 0.4962 GB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03033/0.1819, allocations: 11.8 MB / 0.5077 GB, free: 4.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01091/0.1929, allocations: 354.8 kB / 0.508 GB, free: 4.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02955/0.2225, allocations: 12.34 MB / 0.5201 GB, free: 8.215 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01878/0.2413, allocations: 4.806 MB / 0.5248 GB, free: 3.391 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.2519, allocations: 2.931 MB / 0.5276 GB, free: 488 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2925/0.5445, allocations: 20.78 MB / 0.5479 GB, free: 6.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07723/0.6218, allocations: 42.27 MB / 0.5892 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02483/0.6466, allocations: 10.91 MB / 0.5998 GB, free: 6.133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02988/0.6766, allocations: 12.77 MB / 0.6123 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01073/0.6873, allocations: 3.133 MB / 0.6154 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01679/0.7042, allocations: 3.553 MB / 0.6188 GB, free: 7.434 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01276/0.717, allocations: 6.248 MB / 0.6249 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03153/0.7486, allocations: 11.9 MB / 0.6366 GB, free: 5.512 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06267/0.8113, allocations: 41.19 MB / 0.6768 GB, free: 13.16 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.379e-05/0.8114, allocations: 3 kB / 0.6768 GB, free: 13.16 MB / 478.1 MB Notification: Performance of FrontEnd: time 5.21e-06/0.8114, allocations: 0 / 0.6768 GB, free: 13.16 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001526/0.8129, allocations: 3.938 kB / 0.6768 GB, free: 13.15 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.08397/0.8969, allocations: 23.94 MB / 0.7002 GB, free: 5.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.897, allocations: 12.03 kB / 0.7002 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01182/0.9088, allocations: 2.949 MB / 0.7031 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5026/1.411, allocations: 11.3 MB / 0.7141 GB, free: 145.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0319/1.443, allocations: 13.05 MB / 0.7268 GB, free: 142.1 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001469/1.445, allocations: 1.368 MB / 0.7282 GB, free: 141.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009502/1.454, allocations: 1.794 MB / 0.7299 GB, free: 140.9 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07869/1.533, allocations: 29.59 MB / 0.7588 GB, free: 121.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009242/1.534, allocations: 31.69 kB / 0.7589 GB, free: 121.6 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0067/1.541, allocations: 0.7422 MB / 0.7596 GB, free: 120.9 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008426/1.542, allocations: 0.983 MB / 0.7605 GB, free: 119.9 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05789/1.6, allocations: 27.28 MB / 0.7872 GB, free: 92.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1659/1.766, allocations: 94.03 MB / 0.879 GB, free: 13.18 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4941/2.26, allocations: 51.97 MB / 0.9298 GB, free: 129 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01286/2.273, allocations: 7.267 MB / 0.9369 GB, free: 128.9 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04195/2.315, allocations: 20.08 MB / 0.9565 GB, free: 122.7 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.413e-05/2.315, allocations: 104.3 kB / 0.9566 GB, free: 122.6 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=677): time 8.937e-06/2.315, allocations: 3.969 kB / 0.9566 GB, free: 122.6 MB / 0.5139 GB Notification: Performance of matching and sorting (n=685): time 0.09642/2.411, allocations: 38.14 MB / 0.9938 GB, free: 106.9 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/2.411, allocations: 147.1 kB / 0.994 GB, free: 106.8 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01045/2.422, allocations: 7.112 MB / 1.001 GB, free: 103.1 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001336/2.423, allocations: 136.4 kB / 1.001 GB, free: 102.9 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.00353/2.427, allocations: 7.807 MB / 1.009 GB, free: 96.14 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002702/2.429, allocations: 2.32 MB / 1.011 GB, free: 94.14 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002911/2.432, allocations: 1.873 MB / 1.013 GB, free: 92.86 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 5.256e-05/2.432, allocations: 301.1 kB / 1.013 GB, free: 92.57 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006606/2.439, allocations: 4.856 MB / 1.018 GB, free: 87.7 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/2.449, allocations: 8.336 MB / 1.026 GB, free: 77.77 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01705/2.466, allocations: 14 MB / 1.04 GB, free: 62.13 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001548/2.467, allocations: 32 kB / 1.04 GB, free: 62.1 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02878/2.495, allocations: 16.07 MB / 1.055 GB, free: 45.86 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/2.496, allocations: 60.03 kB / 1.055 GB, free: 45.8 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/2.496, allocations: 112 kB / 1.055 GB, free: 45.69 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006319/2.502, allocations: 2.594 MB / 1.058 GB, free: 43.09 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009124/2.511, allocations: 2.102 MB / 1.06 GB, free: 40.98 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03066/2.542, allocations: 30.81 MB / 1.09 GB, free: 9.074 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008798/2.551, allocations: 0.5344 MB / 1.091 GB, free: 8.539 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/2.553, allocations: 460 kB / 1.091 GB, free: 8.09 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(1,1,100.0%), (18,100,38.3%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01182/2.565, allocations: 6.764 MB / 1.098 GB, free: 1.312 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002381/2.567, allocations: 0.7678 MB / 1.098 GB, free: 0.5352 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2584/2.826, allocations: 13.07 MB / 1.111 GB, free: 144.1 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01576/2.841, allocations: 8.22 MB / 1.119 GB, free: 142.3 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001176/2.842, allocations: 27.62 kB / 1.119 GB, free: 142.3 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001425/2.842, allocations: 36.8 kB / 1.119 GB, free: 142.3 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05669/2.898, allocations: 27.98 MB / 1.147 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.507e-05/2.898, allocations: 5.922 kB / 1.147 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005223/2.904, allocations: 1.107 MB / 1.148 GB, free: 130.8 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006925/2.911, allocations: 2.652 MB / 1.15 GB, free: 130.1 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001636/2.912, allocations: 150.3 kB / 1.15 GB, free: 130 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0367/2.949, allocations: 35.89 MB / 1.186 GB, free: 104.4 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/2.949, allocations: 3.906 kB / 1.186 GB, free: 104.4 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02764/2.977, allocations: 18.78 MB / 1.204 GB, free: 86.01 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004345/2.981, allocations: 1.756 MB / 1.206 GB, free: 84.64 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001934/2.983, allocations: 124 kB / 1.206 GB, free: 84.52 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005276/2.988, allocations: 395.6 kB / 1.206 GB, free: 84.13 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00156/2.99, allocations: 0.5258 MB / 1.207 GB, free: 83.61 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004921/2.99, allocations: 196 kB / 1.207 GB, free: 83.41 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.008668/2.999, allocations: 4.793 MB / 1.211 GB, free: 78.65 MB / 0.5139 GB Notification: Performance of sort global known variables: time 5.11e-07/2.999, allocations: 0 / 1.211 GB, free: 78.65 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01256/3.012, allocations: 3.051 MB / 1.214 GB, free: 75.61 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (560): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02984/3.042, allocations: 19.61 MB / 1.234 GB, free: 56.14 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.04855/3.09, allocations: 24.87 MB / 1.258 GB, free: 31.21 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/3.09, allocations: 4.312 kB / 1.258 GB, free: 31.21 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01066/3.101, allocations: 7.557 MB / 1.265 GB, free: 23.56 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0156/3.117, allocations: 2.155 MB / 1.267 GB, free: 21.46 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4117/3.528, allocations: 135.2 MB / 1.399 GB, free: 88.32 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01718/3.546, allocations: 11.35 MB / 1.41 GB, free: 76.93 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.009935/3.556, allocations: 3.288 MB / 1.414 GB, free: 73.7 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009535/3.565, allocations: 6.814 MB / 1.42 GB, free: 66.88 MB / 0.5295 GB Notification: Performance of SimCode: time 9.92e-07/3.565, allocations: 0 / 1.42 GB, free: 66.88 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5548/4.12, allocations: 248.4 MB / 1.663 GB, free: 38.06 MB / 0.5452 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/18.87, allocations: 8 kB / 1.663 GB, free: 38.05 MB / 0.5452 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMS_Start.fmu > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1)