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.001332/0.001332, allocations: 112.5 kB / 15.73 MB, free: 76 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.54/1.54, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001971/0.001971, allocations: 192.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03721/0.03721, allocations: 8.803 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 75.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1213, allocations: 51.56 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.3377/0.4591, allocations: 45.33 MB / 0.5472 GB, free: 2.773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03057/0.4897, allocations: 11.79 MB / 0.5587 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01477/0.5045, allocations: 355.1 kB / 0.559 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03594/0.5405, allocations: 12.33 MB / 0.5711 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02628/0.5668, allocations: 4.803 MB / 0.5758 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01273/0.5796, allocations: 2.92 MB / 0.5786 GB, free: 292 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03725/0.6169, allocations: 20.96 MB / 0.5991 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09145/0.7084, allocations: 41.93 MB / 0.64 GB, free: 5.719 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02295/0.7313, allocations: 10.94 MB / 0.6507 GB, free: 10.75 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02569/0.7571, allocations: 12.01 MB / 0.6624 GB, free: 14.7 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01312/0.7703, allocations: 3.133 MB / 0.6655 GB, free: 11.56 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01671/0.787, allocations: 3.543 MB / 0.669 GB, free: 8.02 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01254/0.7996, allocations: 6.25 MB / 0.6751 GB, free: 1.754 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02901/0.8286, allocations: 11.9 MB / 0.6867 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.7044/1.533, allocations: 41.53 MB / 0.7272 GB, free: 83.93 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/1.533, allocations: 0 / 0.7272 GB, free: 83.93 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.124e-06/1.533, allocations: 0 / 0.7272 GB, free: 83.93 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001257/1.534, allocations: 0 / 0.7272 GB, free: 83.93 MB / 0.5138 GB 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.1142/1.649, allocations: 24.33 MB / 0.751 GB, free: 77.34 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 6.858e-05/1.649, allocations: 9.938 kB / 0.751 GB, free: 77.34 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01644/1.665, allocations: 2.948 MB / 0.7539 GB, free: 77.13 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06271/1.728, allocations: 11.44 MB / 0.7651 GB, free: 74.14 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03708/1.765, allocations: 13.46 MB / 0.7782 GB, free: 67.94 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001576/1.767, allocations: 1.364 MB / 0.7795 GB, free: 66.59 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008546/1.775, allocations: 1.792 MB / 0.7813 GB, free: 64.82 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08078/1.856, allocations: 29.59 MB / 0.8102 GB, free: 35.16 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001097/1.857, allocations: 21.55 kB / 0.8102 GB, free: 35.14 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007617/1.865, allocations: 0.7415 MB / 0.8109 GB, free: 34.41 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008848/1.866, allocations: 0.9868 MB / 0.8119 GB, free: 33.42 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05989/1.926, allocations: 27.3 MB / 0.8386 GB, free: 6.102 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2015/2.127, allocations: 93.16 MB / 0.9295 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.337/2.464, allocations: 51.96 MB / 0.9803 GB, free: 197.5 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01559/2.48, allocations: 7.29 MB / 0.9874 GB, free: 197.4 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0444/2.524, allocations: 20.04 MB / 1.007 GB, free: 190.5 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.993e-05/2.524, allocations: 118.2 kB / 1.007 GB, free: 190.4 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=677): time 8.225e-06/2.524, allocations: 0 / 1.007 GB, free: 190.4 MB / 0.6232 GB Notification: Performance of matching and sorting (n=685): time 0.09286/2.617, allocations: 38.54 MB / 1.045 GB, free: 174.5 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/2.617, allocations: 146.5 kB / 1.045 GB, free: 174.4 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0119/2.629, allocations: 7.118 MB / 1.052 GB, free: 170.4 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001522/2.631, allocations: 141.6 kB / 1.052 GB, free: 170.3 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.004565/2.635, allocations: 8.072 MB / 1.06 GB, free: 162.6 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002857/2.638, allocations: 2.438 MB / 1.062 GB, free: 160.2 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004431/2.643, allocations: 1.875 MB / 1.064 GB, free: 158.3 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 5.979e-05/2.643, allocations: 301.1 kB / 1.064 GB, free: 158 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007763/2.651, allocations: 4.856 MB / 1.069 GB, free: 153.1 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01027/2.661, allocations: 8.339 MB / 1.077 GB, free: 143.2 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01796/2.679, allocations: 13.99 MB / 1.091 GB, free: 127.6 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001115/2.679, allocations: 32 kB / 1.091 GB, free: 127.5 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.027/2.706, allocations: 16.12 MB / 1.107 GB, free: 111.3 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 7.441e-05/2.706, allocations: 52.88 kB / 1.107 GB, free: 111.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/2.706, allocations: 114.3 kB / 1.107 GB, free: 111.1 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00579/2.712, allocations: 2.577 MB / 1.109 GB, free: 108.5 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00792/2.72, allocations: 2.098 MB / 1.111 GB, free: 106.4 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/2.751, allocations: 30.82 MB / 1.141 GB, free: 74.49 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007966/2.759, allocations: 0.5269 MB / 1.142 GB, free: 73.96 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002006/2.761, allocations: 459.9 kB / 1.142 GB, free: 73.51 MB / 0.6232 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.01265/2.774, allocations: 6.764 MB / 1.149 GB, free: 66.73 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002095/2.776, allocations: 0.8073 MB / 1.15 GB, free: 65.92 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02244/2.798, allocations: 13.08 MB / 1.163 GB, free: 52.62 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0127/2.811, allocations: 8.212 MB / 1.171 GB, free: 44.32 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-05/2.811, allocations: 28 kB / 1.171 GB, free: 44.29 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002407/2.811, allocations: 35.81 kB / 1.171 GB, free: 44.25 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05039/2.862, allocations: 27.93 MB / 1.198 GB, free: 16.16 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-05/2.862, allocations: 0 / 1.198 GB, free: 16.16 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004785/2.867, allocations: 1.112 MB / 1.199 GB, free: 15.04 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006246/2.873, allocations: 2.638 MB / 1.202 GB, free: 12.37 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00122/2.874, allocations: 151.9 kB / 1.202 GB, free: 12.22 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2853/3.16, allocations: 35.88 MB / 1.237 GB, free: 195.8 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/3.16, allocations: 3.156 kB / 1.237 GB, free: 195.8 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03691/3.197, allocations: 18.82 MB / 1.255 GB, free: 190.5 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004948/3.202, allocations: 1.801 MB / 1.257 GB, free: 189.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00283/3.204, allocations: 119.2 kB / 1.257 GB, free: 189.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006434/3.211, allocations: 403.4 kB / 1.257 GB, free: 189.8 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002754/3.214, allocations: 0.5225 MB / 1.258 GB, free: 189.7 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001288/3.215, allocations: 195.2 kB / 1.258 GB, free: 189.6 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.009184/3.224, allocations: 4.795 MB / 1.263 GB, free: 187.9 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.052e-06/3.224, allocations: 0 / 1.263 GB, free: 187.9 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01445/3.239, allocations: 3.053 MB / 1.266 GB, free: 187.6 MB / 0.6232 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.03193/3.271, allocations: 19.64 MB / 1.285 GB, free: 179.1 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.02523/3.296, allocations: 13.4 MB / 1.298 GB, free: 170.4 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/3.296, allocations: 3.938 kB / 1.298 GB, free: 170.4 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01118/3.307, allocations: 7.577 MB / 1.305 GB, free: 163.7 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01261/3.32, allocations: 2.144 MB / 1.308 GB, free: 161.9 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1813/3.501, allocations: 103.6 MB / 1.409 GB, free: 58.55 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01752/3.519, allocations: 11.35 MB / 1.42 GB, free: 47.14 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.008828/3.528, allocations: 3.292 MB / 1.423 GB, free: 43.84 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009896/3.537, allocations: 6.822 MB / 1.43 GB, free: 37.01 MB / 0.6232 GB Notification: Performance of SimCode: time 7.91e-07/3.537, allocations: 3.938 kB / 1.43 GB, free: 37.01 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7873/4.325, allocations: 246.1 MB / 1.67 GB, free: 150.1 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.35/34.67, allocations: 14.7 kB / 1.67 GB, free: 150.1 MB / 0.6232 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)