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.006268/0.006268, allocations: 99.64 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.002156/0.002156, allocations: 188.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.03422/0.03422, allocations: 8.802 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 75.88 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1284, allocations: 51.56 MB / 0.5029 GB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.3753/0.5038, allocations: 45.32 MB / 0.5472 GB, free: 2.691 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03297/0.5368, allocations: 11.79 MB / 0.5587 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01559/0.5525, allocations: 354.4 kB / 0.559 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0365/0.589, allocations: 12.43 MB / 0.5712 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02471/0.6138, allocations: 4.909 MB / 0.576 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01405/0.6279, allocations: 2.916 MB / 0.5788 GB, free: 104 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0319/0.6598, allocations: 20.95 MB / 0.5993 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07459/0.7344, allocations: 41.95 MB / 0.6402 GB, free: 5.492 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02408/0.7585, allocations: 10.99 MB / 0.651 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02154/0.7801, allocations: 12.01 MB / 0.6627 GB, free: 14.42 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009784/0.79, allocations: 3.137 MB / 0.6658 GB, free: 11.29 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01284/0.8028, allocations: 3.542 MB / 0.6692 GB, free: 7.742 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01138/0.8142, allocations: 6.247 MB / 0.6753 GB, free: 1.48 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02877/0.8431, allocations: 11.9 MB / 0.6869 GB, free: 5.535 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6878/1.531, allocations: 41.52 MB / 0.7275 GB, free: 84.02 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/1.531, allocations: 0 / 0.7275 GB, free: 84.02 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.893e-06/1.531, allocations: 0 / 0.7275 GB, free: 84.02 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001469/1.532, allocations: 0 / 0.7275 GB, free: 84.02 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.1012/1.634, allocations: 24.33 MB / 0.7512 GB, free: 77.43 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 7.281e-05/1.634, allocations: 8.875 kB / 0.7513 GB, free: 77.43 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01775/1.651, allocations: 2.956 MB / 0.7541 GB, free: 77.21 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06517/1.717, allocations: 11.43 MB / 0.7653 GB, free: 74.06 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.043/1.76, allocations: 13.47 MB / 0.7785 GB, free: 67.93 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001676/1.761, allocations: 1.361 MB / 0.7798 GB, free: 66.59 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01111/1.773, allocations: 1.79 MB / 0.7815 GB, free: 64.81 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08524/1.858, allocations: 29.59 MB / 0.8104 GB, free: 35.15 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001174/1.859, allocations: 19.91 kB / 0.8105 GB, free: 35.13 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008576/1.868, allocations: 0.7389 MB / 0.8112 GB, free: 34.41 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001097/1.869, allocations: 0.9907 MB / 0.8121 GB, free: 33.41 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06204/1.931, allocations: 27.3 MB / 0.8388 GB, free: 6.094 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1931/2.124, allocations: 93.15 MB / 0.9298 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3471/2.471, allocations: 51.97 MB / 0.9805 GB, free: 197.7 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01471/2.486, allocations: 7.292 MB / 0.9876 GB, free: 197.6 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04754/2.533, allocations: 20.04 MB / 1.007 GB, free: 190.7 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001404/2.534, allocations: 112.5 kB / 1.007 GB, free: 190.6 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=677): time 1.927e-05/2.534, allocations: 0 / 1.007 GB, free: 190.6 MB / 0.6232 GB Notification: Performance of matching and sorting (n=685): time 0.09422/2.628, allocations: 38.55 MB / 1.045 GB, free: 174.6 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/2.628, allocations: 146.1 kB / 1.045 GB, free: 174.5 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01136/2.639, allocations: 7.122 MB / 1.052 GB, free: 170.5 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.00151/2.641, allocations: 137.7 kB / 1.052 GB, free: 170.4 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.003942/2.645, allocations: 8.064 MB / 1.06 GB, free: 162.6 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002714/2.648, allocations: 2.439 MB / 1.062 GB, free: 160.2 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003011/2.651, allocations: 1.875 MB / 1.064 GB, free: 158.3 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 6.125e-05/2.651, allocations: 305.1 kB / 1.065 GB, free: 158 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006586/2.657, allocations: 4.86 MB / 1.069 GB, free: 153.1 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008525/2.666, allocations: 8.335 MB / 1.077 GB, free: 143.2 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01543/2.681, allocations: 13.99 MB / 1.091 GB, free: 127.6 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.915e-05/2.681, allocations: 32 kB / 1.091 GB, free: 127.5 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02741/2.709, allocations: 16.11 MB / 1.107 GB, free: 111.3 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 9.108e-05/2.709, allocations: 56.19 kB / 1.107 GB, free: 111.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001876/2.709, allocations: 116 kB / 1.107 GB, free: 111.1 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006066/2.715, allocations: 2.576 MB / 1.11 GB, free: 108.5 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008321/2.724, allocations: 2.101 MB / 1.112 GB, free: 106.4 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03064/2.754, allocations: 30.82 MB / 1.142 GB, free: 74.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008411/2.763, allocations: 0.5331 MB / 1.142 GB, free: 73.97 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002132/2.765, allocations: 459.9 kB / 1.143 GB, free: 73.52 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.01424/2.779, allocations: 6.766 MB / 1.149 GB, free: 66.74 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002661/2.782, allocations: 0.7995 MB / 1.15 GB, free: 65.94 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02318/2.805, allocations: 13.1 MB / 1.163 GB, free: 52.62 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01364/2.819, allocations: 8.208 MB / 1.171 GB, free: 44.32 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-05/2.819, allocations: 28 kB / 1.171 GB, free: 44.29 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001574/2.819, allocations: 43.8 kB / 1.171 GB, free: 44.25 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05939/2.878, allocations: 27.91 MB / 1.198 GB, free: 16.17 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-05/2.878, allocations: 4 kB / 1.198 GB, free: 16.17 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005654/2.884, allocations: 1.112 MB / 1.199 GB, free: 15.05 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007822/2.892, allocations: 2.635 MB / 1.202 GB, free: 12.38 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001622/2.894, allocations: 152 kB / 1.202 GB, free: 12.23 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.357/3.251, allocations: 35.87 MB / 1.237 GB, free: 196.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/3.251, allocations: 11.22 kB / 1.237 GB, free: 196.1 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03041/3.281, allocations: 18.82 MB / 1.255 GB, free: 190.8 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006567/3.288, allocations: 1.798 MB / 1.257 GB, free: 190.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003668/3.291, allocations: 123.5 kB / 1.257 GB, free: 190.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006151/3.297, allocations: 393.2 kB / 1.258 GB, free: 190 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0019/3.299, allocations: 0.5295 MB / 1.258 GB, free: 189.9 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007811/3.3, allocations: 198.4 kB / 1.258 GB, free: 189.9 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.009225/3.309, allocations: 4.787 MB / 1.263 GB, free: 188.2 MB / 0.6232 GB Notification: Performance of sort global known variables: time 4.91e-07/3.309, allocations: 0 / 1.263 GB, free: 188.2 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01792/3.327, allocations: 3.064 MB / 1.266 GB, free: 187.9 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.03205/3.36, allocations: 19.64 MB / 1.285 GB, free: 179.3 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.02221/3.382, allocations: 13.4 MB / 1.298 GB, free: 170.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/3.382, allocations: 0 / 1.298 GB, free: 170.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01182/3.394, allocations: 7.582 MB / 1.306 GB, free: 163.8 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01933/3.413, allocations: 2.146 MB / 1.308 GB, free: 162.1 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2014/3.614, 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.01713/3.632, allocations: 11.35 MB / 1.42 GB, free: 47.14 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.00943/3.641, allocations: 3.285 MB / 1.423 GB, free: 43.84 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01062/3.652, allocations: 6.818 MB / 1.43 GB, free: 37.02 MB / 0.6232 GB Notification: Performance of SimCode: time 2.605e-06/3.652, allocations: 1.312 kB / 1.43 GB, free: 37.02 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8135/4.465, allocations: 246.1 MB / 1.67 GB, free: 150.1 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.24/34.7, allocations: 13.39 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)