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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.0015, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06108/0.06108, allocations: 8.7 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 221.4 MB / 246 MB, free: 3.551 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 90.98 kB / 299.1 MB, free: 2.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.896e-05/2.902e-05, allocations: 4 kB / 359.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2839, allocations: 52.54 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4908/0.7748, allocations: 159.9 MB / 0.5587 GB, free: 27.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.7751, allocations: 76.16 kB / 0.5588 GB, free: 27.92 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.248/3.023, allocations: 0.5726 GB / 1.131 GB, free: 33.83 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.523e-06/3.023, allocations: 2.625 kB / 1.131 GB, free: 33.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.002322/3.025, allocations: 424.8 kB / 1.132 GB, free: 33.75 MB / 0.4948 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.073/3.098, allocations: 16.92 MB / 1.148 GB, free: 28.69 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/3.098, allocations: 7.25 kB / 1.148 GB, free: 28.69 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01738/3.116, allocations: 2.93 MB / 1.151 GB, free: 28.48 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04873/3.164, allocations: 7.824 MB / 1.159 GB, free: 27.47 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04631/3.211, allocations: 14.84 MB / 1.173 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001898/3.213, allocations: 1.314 MB / 1.175 GB, free: 24.66 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01008/3.223, allocations: 1.735 MB / 1.176 GB, free: 24.08 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1085/3.331, allocations: 28.95 MB / 1.205 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001922/3.333, allocations: 26.23 kB / 1.205 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01053/3.344, allocations: 0.7424 MB / 1.205 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002177/3.346, allocations: 1.265 MB / 1.207 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6177/3.964, allocations: 25.9 MB / 1.232 GB, free: 48.18 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2167/4.181, allocations: 94.09 MB / 1.324 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04933/4.23, allocations: 51.58 MB / 1.374 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01677/4.247, allocations: 7.02 MB / 1.381 GB, free: 7.109 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04927/4.296, allocations: 16.49 MB / 1.397 GB, free: 0 / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/4.296, allocations: 111.5 kB / 1.397 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=687): time 2.5e-05/4.296, allocations: 0 / 1.397 GB, free: 15.91 MB / 0.5573 GB Notification: Performance of matching and sorting (n=695): time 0.06832/4.365, allocations: 25.74 MB / 1.422 GB, free: 2.906 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/4.365, allocations: 153.6 kB / 1.422 GB, free: 2.797 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01734/4.382, allocations: 6.111 MB / 1.428 GB, free: 0.5195 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001738/4.384, allocations: 140 kB / 1.429 GB, free: 408 kB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.4862/4.87, allocations: 7.746 MB / 1.436 GB, free: 97.07 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003849/4.874, allocations: 2.35 MB / 1.438 GB, free: 95.59 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002196/4.876, allocations: 190.6 kB / 1.439 GB, free: 95.59 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001299/4.878, allocations: 0.6885 MB / 1.439 GB, free: 95.27 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009962/4.888, allocations: 4.705 MB / 1.444 GB, free: 95.24 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01186/4.9, allocations: 7.961 MB / 1.452 GB, free: 91.36 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/4.911, allocations: 6.416 MB / 1.458 GB, free: 91.23 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002533/4.911, allocations: 31.97 kB / 1.458 GB, free: 91.23 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.03727/4.949, allocations: 15.6 MB / 1.473 GB, free: 90.29 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003551/4.949, allocations: 48.41 kB / 1.473 GB, free: 90.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003751/4.95, allocations: 107.3 kB / 1.473 GB, free: 90.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007156/4.957, allocations: 2.445 MB / 1.476 GB, free: 90.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008851/4.966, allocations: 2.04 MB / 1.478 GB, free: 90.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03619/5.002, allocations: 28.12 MB / 1.505 GB, free: 79.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009394/5.011, allocations: 0.5401 MB / 1.506 GB, free: 79.58 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003293/5.015, allocations: 440.7 kB / 1.506 GB, free: 79.58 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1051 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(18,41.0%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006565/5.021, allocations: 0.6972 MB / 1.507 GB, free: 79.4 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003323/5.025, allocations: 0.7608 MB / 1.508 GB, free: 79 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03135/5.056, allocations: 12.92 MB / 1.52 GB, free: 77.96 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01687/5.073, allocations: 8.136 MB / 1.528 GB, free: 76.13 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001048/5.073, allocations: 33.09 kB / 1.528 GB, free: 76.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002147/5.073, allocations: 36.44 kB / 1.528 GB, free: 76.12 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0722/5.145, allocations: 27.96 MB / 1.555 GB, free: 64.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.658e-05/5.146, allocations: 6.438 kB / 1.555 GB, free: 64.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005889/5.151, allocations: 1.104 MB / 1.557 GB, free: 64.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007099/5.159, allocations: 2.516 MB / 1.559 GB, free: 64.08 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001946/5.161, allocations: 150.5 kB / 1.559 GB, free: 63.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03434/5.195, allocations: 32.6 MB / 1.591 GB, free: 36.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/5.195, allocations: 8.969 kB / 1.591 GB, free: 36.05 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03589/5.231, allocations: 19.1 MB / 1.61 GB, free: 18.96 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005709/5.237, allocations: 1.77 MB / 1.611 GB, free: 17.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003406/5.24, allocations: 130.7 kB / 1.611 GB, free: 17.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006762/5.247, allocations: 419.7 kB / 1.612 GB, free: 16.94 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00244/5.249, allocations: 0.5352 MB / 1.612 GB, free: 16.61 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001515/5.251, allocations: 201.5 kB / 1.613 GB, free: 16.43 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01018/5.261, allocations: 4.608 MB / 1.617 GB, free: 12.38 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.092e-06/5.261, allocations: 0 / 1.617 GB, free: 12.38 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01853/5.28, allocations: 3.1 MB / 1.62 GB, free: 9.293 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (567): * Single equations (assignments): 552 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,38.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4793/5.759, allocations: 20.97 MB / 1.641 GB, free: 83.61 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02352/5.783, allocations: 13.05 MB / 1.653 GB, free: 82.28 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/5.783, allocations: 0 / 1.653 GB, free: 82.28 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01478/5.797, allocations: 7.446 MB / 1.661 GB, free: 80.87 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01161/5.809, allocations: 1.959 MB / 1.663 GB, free: 80.84 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09888/5.908, allocations: 32.74 MB / 1.695 GB, free: 75.29 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02502/5.933, allocations: 11.66 MB / 1.706 GB, free: 74 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01425/5.947, allocations: 3.268 MB / 1.709 GB, free: 73.71 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01493/5.962, allocations: 6.666 MB / 1.716 GB, free: 73.71 MB / 0.5573 GB Notification: Performance of SimCode: time 1.493e-06/5.962, allocations: 0 / 1.716 GB, free: 73.71 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7742/6.737, allocations: 245.7 MB / 1.956 GB, free: 56.59 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/6.737, allocations: 173 kB / 1.956 GB, free: 56.36 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/18.06, allocations: 4 kB / 1.956 GB, free: 56.36 MB / 0.5573 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/linux/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)