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.001053/0.001053, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.304/1.304, allocations: 222.9 MB / 239 MB, free: 4.73 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.001203/0.001204, allocations: 192.4 kB / 289.3 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03456/0.03456, allocations: 8.801 MB / 348.2 MB, free: 4.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 74.28 kB / 410.7 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07077/0.0722, allocations: 51.56 MB / 462.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04289/0.1151, allocations: 44.49 MB / 0.4949 GB, free: 1.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0238/0.139, allocations: 11.62 MB / 0.5062 GB, free: 6.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008212/0.1472, allocations: 334.9 kB / 0.5065 GB, free: 6.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02724/0.1745, allocations: 11.62 MB / 0.5179 GB, free: 10.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0166/0.1911, allocations: 4.336 MB / 0.5221 GB, free: 6.016 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00937/0.2005, allocations: 2.7 MB / 0.5248 GB, free: 3.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1929/0.3935, allocations: 20.99 MB / 0.5452 GB, free: 6.461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06836/0.4619, allocations: 47.17 MB / 0.5913 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01741/0.4793, allocations: 10.91 MB / 0.602 GB, free: 4.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02484/0.5042, allocations: 12.76 MB / 0.6144 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008134/0.5124, allocations: 3.129 MB / 0.6175 GB, free: 9.105 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0115/0.5239, allocations: 3.542 MB / 0.6209 GB, free: 5.617 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01037/0.5343, allocations: 6.259 MB / 0.627 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.021/0.5554, allocations: 11.89 MB / 0.6387 GB, free: 3.695 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04267/0.5981, allocations: 41.18 MB / 0.6789 GB, free: 11.3 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.5981, allocations: 0 / 0.6789 GB, free: 11.3 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5981, allocations: 4 kB / 0.6789 GB, free: 11.29 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0009999/0.5991, allocations: 0 / 0.6789 GB, free: 11.29 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.06937/0.6685, allocations: 23.95 MB / 0.7023 GB, free: 3.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.6686, allocations: 8.031 kB / 0.7023 GB, free: 3.375 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009959/0.6785, allocations: 2.958 MB / 0.7052 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4265/1.105, allocations: 11.3 MB / 0.7162 GB, free: 145.7 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02544/1.13, allocations: 13.01 MB / 0.7289 GB, free: 141.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00112/1.132, allocations: 1.367 MB / 0.7302 GB, free: 140.9 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00705/1.139, allocations: 1.794 MB / 0.732 GB, free: 140.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07484/1.214, allocations: 29.6 MB / 0.7609 GB, free: 120 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000988/1.215, allocations: 27.69 kB / 0.7609 GB, free: 119.9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006962/1.222, allocations: 0.743 MB / 0.7616 GB, free: 119.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000989/1.223, allocations: 0.9868 MB / 0.7626 GB, free: 118.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05445/1.277, allocations: 27.31 MB / 0.7893 GB, free: 90.88 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1506/1.428, allocations: 94.03 MB / 0.8811 GB, free: 11.44 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3986/1.826, allocations: 52.02 MB / 0.9319 GB, free: 128 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01182/1.838, allocations: 7.31 MB / 0.939 GB, free: 127.9 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0353/1.874, allocations: 20.2 MB / 0.9588 GB, free: 121.5 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.591e-05/1.874, allocations: 108.3 kB / 0.9589 GB, free: 121.4 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=683): time 8.687e-06/1.874, allocations: 0 / 0.9589 GB, free: 121.4 MB / 0.5139 GB Notification: Performance of matching and sorting (n=691): time 0.0866/1.96, allocations: 38.8 MB / 0.9968 GB, free: 104.8 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/1.96, allocations: 148.9 kB / 0.9969 GB, free: 104.6 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/1.971, allocations: 7.107 MB / 1.004 GB, free: 100.9 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001391/1.972, allocations: 136.7 kB / 1.004 GB, free: 100.8 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003543/1.976, allocations: 7.806 MB / 1.012 GB, free: 94.02 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002623/1.979, allocations: 2.341 MB / 1.014 GB, free: 92 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003078/1.982, allocations: 1.873 MB / 1.016 GB, free: 90.27 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 6.474e-05/1.982, allocations: 305.1 kB / 1.016 GB, free: 89.97 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006655/1.988, allocations: 4.895 MB / 1.021 GB, free: 85.07 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00875/1.997, allocations: 8.372 MB / 1.029 GB, free: 75.1 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01473/2.012, allocations: 14.08 MB / 1.043 GB, free: 59.36 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.312e-05/2.012, allocations: 36 kB / 1.043 GB, free: 59.32 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.0273/2.039, allocations: 16.15 MB / 1.059 GB, free: 43.01 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/2.04, allocations: 61.7 kB / 1.059 GB, free: 42.95 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/2.04, allocations: 112 kB / 1.059 GB, free: 42.84 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006369/2.046, allocations: 2.586 MB / 1.061 GB, free: 40.24 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008325/2.054, allocations: 2.094 MB / 1.063 GB, free: 38.14 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03358/2.088, allocations: 30.8 MB / 1.093 GB, free: 6.25 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008334/2.096, allocations: 0.5306 MB / 1.094 GB, free: 5.719 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002132/2.099, allocations: 459.9 kB / 1.094 GB, free: 5.27 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.251/2.35, allocations: 6.756 MB / 1.101 GB, free: 142.9 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/2.352, allocations: 0.769 MB / 1.102 GB, free: 142.9 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02404/2.376, allocations: 13.16 MB / 1.114 GB, free: 142 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01475/2.391, allocations: 8.294 MB / 1.123 GB, free: 140.2 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-05/2.391, allocations: 31.53 kB / 1.123 GB, free: 140.2 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001254/2.391, allocations: 37.59 kB / 1.123 GB, free: 140.2 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.048/2.439, allocations: 28.1 MB / 1.15 GB, free: 128.6 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.109e-05/2.439, allocations: 3.906 kB / 1.15 GB, free: 128.6 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005467/2.444, allocations: 1.108 MB / 1.151 GB, free: 128.6 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006497/2.451, allocations: 2.651 MB / 1.154 GB, free: 127.8 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001572/2.453, allocations: 156.9 kB / 1.154 GB, free: 127.7 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0337/2.486, allocations: 35.89 MB / 1.189 GB, free: 101.5 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/2.486, allocations: 4 kB / 1.189 GB, free: 101.5 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02929/2.516, allocations: 18.91 MB / 1.207 GB, free: 82.69 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00537/2.521, allocations: 1.765 MB / 1.209 GB, free: 81.3 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002388/2.523, allocations: 124 kB / 1.209 GB, free: 81.18 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005727/2.529, allocations: 395.6 kB / 1.21 GB, free: 80.79 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001956/2.531, allocations: 0.5297 MB / 1.21 GB, free: 80.26 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006515/2.532, allocations: 196 kB / 1.21 GB, free: 80.07 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.008212/2.54, allocations: 4.786 MB / 1.215 GB, free: 75.31 MB / 0.5139 GB Notification: Performance of sort global known variables: time 5.11e-07/2.54, allocations: 0 / 1.215 GB, free: 75.31 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01452/2.555, allocations: 3.059 MB / 1.218 GB, free: 72.25 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.03173/2.586, allocations: 19.76 MB / 1.237 GB, free: 52.3 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.05529/2.642, allocations: 25.19 MB / 1.262 GB, free: 27.01 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.486e-05/2.642, allocations: 4 kB / 1.262 GB, free: 27 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.0124/2.654, allocations: 7.595 MB / 1.269 GB, free: 19.25 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01449/2.669, allocations: 2.146 MB / 1.271 GB, free: 17.16 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4855/3.154, allocations: 143 MB / 1.411 GB, free: 77.31 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02394/3.178, allocations: 11.36 MB / 1.422 GB, free: 65.91 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01217/3.19, allocations: 3.288 MB / 1.425 GB, free: 62.68 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01261/3.203, allocations: 6.822 MB / 1.432 GB, free: 55.85 MB / 0.5295 GB Notification: Performance of SimCode: time 2.134e-06/3.203, allocations: 0 / 1.432 GB, free: 55.85 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6402/3.843, allocations: 248.9 MB / 1.675 GB, free: 2.422 MB / 0.5295 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/3.843, allocations: 207.1 kB / 1.675 GB, free: 2.172 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.169/11.01, allocations: 0 / 1.675 GB, free: 2.172 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)