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.0007859/0.000786, allocations: 97.88 kB / 15.36 MB, free: 0.7344 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.32/1.32, allocations: 223.3 MB / 239.4 MB, free: 5.352 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.001104/0.001104, allocations: 176.5 kB / 290.6 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03296/0.03296, allocations: 8.807 MB / 350.5 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003892, allocations: 12.98 kB / 413.9 MB, free: 42.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1016, allocations: 52.56 MB / 466.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.0417/0.1434, allocations: 42.79 MB / 0.4973 GB, free: 2.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02604/0.1694, allocations: 11.59 MB / 0.5086 GB, free: 6.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0111/0.1806, allocations: 326.8 kB / 0.509 GB, free: 6.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01029/0.1909, allocations: 2.916 MB / 0.5118 GB, free: 3.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01741/0.2083, allocations: 4.367 MB / 0.5161 GB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009123/0.2175, allocations: 2.601 MB / 0.5186 GB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2341/0.4516, allocations: 21.29 MB / 0.5394 GB, free: 6.965 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06238/0.514, allocations: 39.48 MB / 0.578 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01673/0.5308, allocations: 7.639 MB / 0.5854 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01608/0.5469, allocations: 9.261 MB / 0.5945 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00529/0.5522, allocations: 1.215 MB / 0.5956 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007982/0.5602, allocations: 1.617 MB / 0.5972 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00736/0.5676, allocations: 3.946 MB / 0.6011 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02029/0.588, allocations: 9.378 MB / 0.6102 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04579/0.6338, allocations: 38.84 MB / 0.6482 GB, free: 14.01 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.6338, allocations: 0 / 0.6482 GB, free: 14.01 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.6338, allocations: 0 / 0.6482 GB, free: 14.01 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001368/0.6352, allocations: 0 / 0.6482 GB, free: 14.01 MB / 446.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.05803/0.6933, allocations: 19.89 MB / 0.6676 GB, free: 10.12 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.6933, allocations: 15.97 kB / 0.6676 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009737/0.7031, allocations: 2.947 MB / 0.6705 GB, free: 7.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06089/0.764, allocations: 11.35 MB / 0.6816 GB, free: 11.92 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02737/0.7914, allocations: 13.06 MB / 0.6943 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001709/0.7932, allocations: 1.369 MB / 0.6957 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007367/0.8005, allocations: 1.805 MB / 0.6974 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4718/1.272, allocations: 29.61 MB / 0.7263 GB, free: 131 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008843/1.273, allocations: 29.81 kB / 0.7264 GB, free: 131 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006033/1.279, allocations: 0.7423 MB / 0.7271 GB, free: 130.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001388/1.281, allocations: 0.9881 MB / 0.7281 GB, free: 130.3 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0566/1.337, allocations: 27.33 MB / 0.7547 GB, free: 118.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1397/1.477, allocations: 94.36 MB / 0.8469 GB, free: 32.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03676/1.514, allocations: 52.01 MB / 0.8977 GB, free: 7.391 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01222/1.526, allocations: 7.347 MB / 0.9049 GB, free: 24 kB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4202/1.946, allocations: 20.21 MB / 0.9246 GB, free: 151.1 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.842e-05/1.946, allocations: 108.8 kB / 0.9247 GB, free: 151 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=683): time 1.008e-05/1.947, allocations: 2.312 kB / 0.9247 GB, free: 151 MB / 0.5139 GB Notification: Performance of matching and sorting (n=691): time 0.08444/2.031, allocations: 38.95 MB / 0.9627 GB, free: 134.8 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/2.031, allocations: 147 kB / 0.9629 GB, free: 134.7 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00993/2.041, allocations: 7.118 MB / 0.9698 GB, free: 132.2 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001065/2.042, allocations: 135.3 kB / 0.97 GB, free: 132.1 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003555/2.046, allocations: 7.801 MB / 0.9776 GB, free: 126.2 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.001893/2.048, allocations: 2.346 MB / 0.9799 GB, free: 124.3 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001035/2.049, allocations: 0.7658 MB / 0.9806 GB, free: 123.9 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 4.341e-05/2.049, allocations: 301.1 kB / 0.9809 GB, free: 123.6 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006426/2.055, allocations: 4.911 MB / 0.9857 GB, free: 120.9 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007782/2.063, allocations: 8.388 MB / 0.9939 GB, free: 113.3 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/2.077, allocations: 14.1 MB / 1.008 GB, free: 97.54 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.934e-05/2.077, allocations: 32 kB / 1.008 GB, free: 97.51 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02325/2.101, allocations: 16.18 MB / 1.024 GB, free: 81.17 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 6.701e-05/2.101, allocations: 52 kB / 1.024 GB, free: 81.12 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/2.101, allocations: 118.7 kB / 1.024 GB, free: 81 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005589/2.107, allocations: 2.57 MB / 1.026 GB, free: 78.41 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007347/2.114, allocations: 2.094 MB / 1.028 GB, free: 76.32 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0274/2.141, allocations: 28.57 MB / 1.056 GB, free: 46.69 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006942/2.148, allocations: 0.5345 MB / 1.057 GB, free: 46.16 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009907/2.149, allocations: 460 kB / 1.057 GB, free: 45.71 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 (1092): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,41.7%), (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.01019/2.16, allocations: 6.761 MB / 1.064 GB, free: 38.93 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/2.161, allocations: 0.7679 MB / 1.064 GB, free: 38.15 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02029/2.181, allocations: 13.2 MB / 1.077 GB, free: 24.73 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01163/2.193, allocations: 8.299 MB / 1.085 GB, free: 16.34 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.151e-05/2.193, allocations: 28 kB / 1.085 GB, free: 16.31 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001161/2.193, allocations: 39.86 kB / 1.085 GB, free: 16.27 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2556/2.449, allocations: 28.12 MB / 1.113 GB, free: 136.2 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-05/2.449, allocations: 6.5 kB / 1.113 GB, free: 136.2 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004407/2.453, allocations: 1.103 MB / 1.114 GB, free: 136.1 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005965/2.459, allocations: 2.629 MB / 1.117 GB, free: 136 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000798/2.46, allocations: 149.8 kB / 1.117 GB, free: 135.9 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02947/2.49, allocations: 33.02 MB / 1.149 GB, free: 112.9 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/2.49, allocations: 7.594 kB / 1.149 GB, free: 112.9 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02459/2.514, allocations: 18.95 MB / 1.168 GB, free: 104.9 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003668/2.518, allocations: 1.768 MB / 1.169 GB, free: 104.3 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001252/2.519, allocations: 130.5 kB / 1.169 GB, free: 104.2 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003785/2.523, allocations: 408 kB / 1.17 GB, free: 104.1 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/2.524, allocations: 0.5298 MB / 1.17 GB, free: 104 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004307/2.525, allocations: 198.6 kB / 1.17 GB, free: 104 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.007229/2.532, allocations: 4.788 MB / 1.175 GB, free: 102.2 MB / 0.5139 GB Notification: Performance of sort global known variables: time 5.31e-07/2.532, allocations: 0 / 1.175 GB, free: 102.2 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01181/2.544, allocations: 3.059 MB / 1.178 GB, free: 102 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 (563): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02866/2.573, allocations: 19.78 MB / 1.197 GB, free: 86.27 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.01921/2.592, allocations: 13.46 MB / 1.211 GB, free: 72.96 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/2.592, allocations: 4 kB / 1.211 GB, free: 72.96 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01022/2.602, allocations: 7.615 MB / 1.218 GB, free: 65.25 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01438/2.617, allocations: 2.02 MB / 1.22 GB, free: 63.27 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.455/3.072, allocations: 143.2 MB / 1.36 GB, free: 118.7 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01531/3.087, allocations: 11.36 MB / 1.371 GB, free: 112.5 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01095/3.098, allocations: 3.285 MB / 1.374 GB, free: 109.4 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008947/3.107, allocations: 6.818 MB / 1.381 GB, free: 102.6 MB / 0.5295 GB Notification: Performance of SimCode: time 9.91e-07/3.107, allocations: 4 kB / 1.381 GB, free: 102.6 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4853/3.592, allocations: 240.7 MB / 1.616 GB, free: 46.71 MB / 0.5295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/3.592, allocations: 216.9 kB / 1.616 GB, free: 46.46 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.943/10.54, allocations: 0 / 1.616 GB, free: 46.46 MB / 0.5295 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)