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.00149/0.00149, allocations: 108 kB / 15.6 MB, free: 132 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.384/1.384, allocations: 222.9 MB / 239.2 MB, free: 4.578 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.001698/0.001698, allocations: 184.5 kB / 289.5 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0348/0.0348, allocations: 8.813 MB / 348.5 MB, free: 4.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002473/0.002474, allocations: 79.08 kB / 411.2 MB, free: 42.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1127, allocations: 51.56 MB / 462.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04249/0.1552, allocations: 45.32 MB / 0.4962 GB, free: 0.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02587/0.1811, allocations: 11.79 MB / 0.5077 GB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01116/0.1923, allocations: 358.8 kB / 0.508 GB, free: 4.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02948/0.2219, allocations: 12.34 MB / 0.5201 GB, free: 8.246 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01997/0.2418, allocations: 4.81 MB / 0.5248 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01154/0.2534, allocations: 2.93 MB / 0.5276 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.223/0.4764, allocations: 20.78 MB / 0.5479 GB, free: 6.613 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06181/0.5382, allocations: 42.29 MB / 0.5892 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01998/0.5582, allocations: 10.91 MB / 0.5999 GB, free: 6.129 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02674/0.585, allocations: 12.78 MB / 0.6123 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01109/0.5961, allocations: 3.137 MB / 0.6154 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01432/0.6105, allocations: 3.544 MB / 0.6189 GB, free: 7.488 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01008/0.6206, allocations: 6.256 MB / 0.625 GB, free: 1.367 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02269/0.6433, allocations: 11.89 MB / 0.6366 GB, free: 5.562 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05105/0.6944, allocations: 41.19 MB / 0.6768 GB, free: 13.21 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.6945, allocations: 0 / 0.6768 GB, free: 13.21 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.6945, allocations: 1.969 kB / 0.6768 GB, free: 13.21 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001315/0.6958, allocations: 0 / 0.6768 GB, free: 13.21 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.0793/0.7751, allocations: 23.95 MB / 0.7002 GB, free: 5.301 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.063e-05/0.7752, allocations: 16.02 kB / 0.7002 GB, free: 5.285 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01096/0.7862, allocations: 2.94 MB / 0.7031 GB, free: 2.348 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4348/1.221, allocations: 11.31 MB / 0.7141 GB, free: 145.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03059/1.252, allocations: 13.05 MB / 0.7269 GB, free: 142.1 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001692/1.253, allocations: 1.363 MB / 0.7282 GB, free: 141.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008049/1.261, allocations: 1.798 MB / 0.73 GB, free: 140.9 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06388/1.325, allocations: 29.59 MB / 0.7589 GB, free: 121.6 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008194/1.326, allocations: 32.48 kB / 0.7589 GB, free: 121.6 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006163/1.332, allocations: 0.7436 MB / 0.7596 GB, free: 120.9 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009073/1.333, allocations: 0.983 MB / 0.7606 GB, free: 119.9 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0497/1.383, allocations: 27.29 MB / 0.7872 GB, free: 92.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1517/1.535, allocations: 94.02 MB / 0.879 GB, free: 13.16 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4215/1.956, allocations: 51.97 MB / 0.9298 GB, free: 129.1 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01201/1.968, allocations: 7.261 MB / 0.9369 GB, free: 129 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03779/2.006, allocations: 20.09 MB / 0.9565 GB, free: 122.7 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.825e-05/2.006, allocations: 104.2 kB / 0.9566 GB, free: 122.6 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=677): time 9.348e-06/2.006, allocations: 0 / 0.9566 GB, free: 122.6 MB / 0.5139 GB Notification: Performance of matching and sorting (n=685): time 0.08138/2.088, allocations: 38.14 MB / 0.9939 GB, free: 106.9 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/2.088, allocations: 154 kB / 0.994 GB, free: 106.8 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00968/2.097, allocations: 7.106 MB / 1.001 GB, free: 103.1 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001267/2.099, allocations: 139.7 kB / 1.001 GB, free: 103 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003841/2.103, allocations: 7.805 MB / 1.009 GB, free: 96.17 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.003197/2.106, allocations: 2.326 MB / 1.011 GB, free: 94.16 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003799/2.11, allocations: 1.873 MB / 1.013 GB, free: 92.79 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 4.279e-05/2.11, allocations: 301.1 kB / 1.013 GB, free: 92.49 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006303/2.116, allocations: 4.86 MB / 1.018 GB, free: 87.62 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008244/2.124, allocations: 8.329 MB / 1.026 GB, free: 77.7 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01508/2.139, allocations: 14 MB / 1.04 GB, free: 62.06 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001045/2.14, allocations: 32 kB / 1.04 GB, free: 62.03 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02418/2.164, allocations: 16.08 MB / 1.055 GB, free: 45.78 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 7.067e-05/2.164, allocations: 55.84 kB / 1.055 GB, free: 45.73 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/2.164, allocations: 112 kB / 1.056 GB, free: 45.62 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005756/2.17, allocations: 2.592 MB / 1.058 GB, free: 43.01 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007643/2.177, allocations: 2.102 MB / 1.06 GB, free: 40.91 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0316/2.209, allocations: 30.81 MB / 1.09 GB, free: 9.008 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008255/2.217, allocations: 0.5351 MB / 1.091 GB, free: 8.473 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001731/2.219, allocations: 460 kB / 1.091 GB, free: 8.023 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.01129/2.23, allocations: 6.762 MB / 1.098 GB, free: 1.246 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00239/2.233, allocations: 0.7683 MB / 1.099 GB, free: 480 kB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.228/2.461, allocations: 13.08 MB / 1.111 GB, free: 144.2 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01293/2.474, allocations: 8.216 MB / 1.119 GB, free: 142.3 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.548e-05/2.474, allocations: 29.25 kB / 1.119 GB, free: 142.3 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.306e-05/2.474, allocations: 34.41 kB / 1.119 GB, free: 142.3 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05615/2.53, allocations: 27.98 MB / 1.147 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.024e-05/2.53, allocations: 5.656 kB / 1.147 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005055/2.535, allocations: 1.109 MB / 1.148 GB, free: 130.8 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006203/2.541, allocations: 2.648 MB / 1.15 GB, free: 130.1 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001142/2.543, allocations: 153.7 kB / 1.151 GB, free: 130 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03411/2.577, allocations: 35.89 MB / 1.186 GB, free: 104.4 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/2.577, allocations: 11.83 kB / 1.186 GB, free: 104.4 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0308/2.608, allocations: 18.77 MB / 1.204 GB, free: 85.91 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004333/2.612, allocations: 1.753 MB / 1.206 GB, free: 84.54 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002218/2.614, allocations: 132.1 kB / 1.206 GB, free: 84.41 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005024/2.619, allocations: 392.3 kB / 1.206 GB, free: 84.03 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001804/2.621, allocations: 0.5297 MB / 1.207 GB, free: 83.5 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008376/2.622, allocations: 199.8 kB / 1.207 GB, free: 83.3 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.009952/2.632, allocations: 4.786 MB / 1.211 GB, free: 78.55 MB / 0.5139 GB Notification: Performance of sort global known variables: time 2.7e-07/2.632, allocations: 0 / 1.211 GB, free: 78.55 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01329/2.645, allocations: 3.06 MB / 1.214 GB, free: 75.49 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.0282/2.673, allocations: 19.61 MB / 1.234 GB, free: 56.02 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.04504/2.719, allocations: 24.87 MB / 1.258 GB, free: 31.09 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/2.719, allocations: 4.375 kB / 1.258 GB, free: 31.09 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01062/2.729, allocations: 7.55 MB / 1.265 GB, free: 23.45 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01112/2.74, allocations: 2.149 MB / 1.267 GB, free: 21.35 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3918/3.132, allocations: 135.2 MB / 1.399 GB, free: 87.93 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01843/3.151, allocations: 11.35 MB / 1.411 GB, free: 76.54 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01073/3.161, allocations: 3.291 MB / 1.414 GB, free: 73.3 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01037/3.172, allocations: 6.818 MB / 1.42 GB, free: 66.48 MB / 0.5295 GB Notification: Performance of SimCode: time 8.71e-07/3.172, allocations: 0 / 1.42 GB, free: 66.48 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5395/3.711, allocations: 248.4 MB / 1.663 GB, free: 37.68 MB / 0.5452 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/18.28, allocations: 4.062 kB / 1.663 GB, free: 37.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMS_Start.fmu > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1)