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.00108/0.00108, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04158/0.04158, allocations: 8.715 MB / 16.79 MB, free: 3.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 221.5 MB / 240.9 MB, free: 13.2 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.001039/0.001039, allocations: 93.19 kB / 293.9 MB, free: 7.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.84e-05, allocations: 0 / 352.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 52.56 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4243/0.5307, allocations: 159.3 MB / 0.5513 GB, free: 8.422 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.5309, allocations: 71.97 kB / 0.5514 GB, free: 8.352 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.408/2.939, allocations: 0.5663 GB / 1.118 GB, free: 40.68 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.943e-06/2.939, allocations: 0 / 1.118 GB, free: 40.68 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.002239/2.942, allocations: 421.4 kB / 1.118 GB, free: 40.64 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.08002/3.022, allocations: 16.9 MB / 1.135 GB, free: 35.62 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.411e-05/3.022, allocations: 11.75 kB / 1.135 GB, free: 35.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05305/3.075, allocations: 7.819 MB / 1.142 GB, free: 34.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05171/3.127, allocations: 14.84 MB / 1.157 GB, free: 32.88 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001404/3.128, allocations: 0.5684 MB / 1.157 GB, free: 32.87 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009329/3.137, allocations: 1.012 MB / 1.158 GB, free: 32.86 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05721/3.195, allocations: 22.77 MB / 1.181 GB, free: 32.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0942/3.289, allocations: 26.02 MB / 1.206 GB, free: 30.63 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008865/3.29, allocations: 25.41 kB / 1.206 GB, free: 30.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00678/3.297, allocations: 13.12 kB / 1.206 GB, free: 30.62 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001506/3.298, allocations: 1.272 MB / 1.207 GB, free: 30.58 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6808/3.979, allocations: 92.63 MB / 1.298 GB, free: 66.87 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04311/4.022, allocations: 51.13 MB / 1.348 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01439/4.036, allocations: 7.282 MB / 1.355 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04337/4.08, allocations: 19.63 MB / 1.374 GB, free: 25.71 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/4.08, allocations: 108.1 kB / 1.374 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=685): time 1.326e-05/4.08, allocations: 3.094 kB / 1.374 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=693): time 0.07361/4.154, allocations: 29.71 MB / 1.403 GB, free: 20.47 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.121e-05/4.154, allocations: 150 kB / 1.403 GB, free: 20.37 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01367/4.168, allocations: 5.302 MB / 1.408 GB, free: 19.88 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001615/4.169, allocations: 31.14 kB / 1.408 GB, free: 19.85 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005741/4.175, allocations: 7.735 MB / 1.416 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00326/4.178, allocations: 2.247 MB / 1.418 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001861/4.18, allocations: 0 / 1.418 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001239/4.181, allocations: 0.6876 MB / 1.419 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008865/4.19, allocations: 4.812 MB / 1.424 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01137/4.202, allocations: 8.023 MB / 1.431 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01543/4.217, allocations: 7.841 MB / 1.439 GB, free: 5.195 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003208/4.218, allocations: 30.38 kB / 1.439 GB, free: 5.195 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04199/4.26, allocations: 16.49 MB / 1.455 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003042/4.26, allocations: 50.27 kB / 1.455 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004943/4.26, allocations: 102.9 kB / 1.455 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007261/4.268, allocations: 2.393 MB / 1.458 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009946/4.278, allocations: 2.109 MB / 1.46 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03884/4.317, allocations: 27.24 MB / 1.486 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01115/4.328, allocations: 439.7 kB / 1.487 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003898/4.332, allocations: 447.9 kB / 1.487 GB, free: 12.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * 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 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%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00571/4.337, allocations: 399.5 kB / 1.488 GB, free: 11.93 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03316/4.371, allocations: 12.78 MB / 1.5 GB, free: 1.105 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003751/4.374, allocations: 0.7167 MB / 1.501 GB, free: 392 kB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5361/4.911, allocations: 14.11 MB / 1.514 GB, free: 88.06 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01717/4.928, allocations: 9.432 MB / 1.524 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001068/4.928, allocations: 28.59 kB / 1.524 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001568/4.928, allocations: 34.64 kB / 1.524 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0713/4.999, allocations: 27.11 MB / 1.55 GB, free: 86.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.255e-05/4.999, allocations: 6.031 kB / 1.55 GB, free: 86.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006331/5.006, allocations: 1.175 MB / 1.551 GB, free: 86.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006757/5.013, allocations: 2.441 MB / 1.554 GB, free: 86.15 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001542/5.014, allocations: 58.2 kB / 1.554 GB, free: 86.15 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03292/5.047, allocations: 31.56 MB / 1.585 GB, free: 72.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/5.047, allocations: 9.281 kB / 1.585 GB, free: 72.56 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0362/5.083, allocations: 20.72 MB / 1.605 GB, free: 69.46 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006882/5.09, allocations: 1.783 MB / 1.607 GB, free: 68.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003272/5.094, allocations: 17.62 kB / 1.607 GB, free: 68.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006628/5.1, allocations: 376.9 kB / 1.607 GB, free: 68.85 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001953/5.102, allocations: 0.5375 MB / 1.608 GB, free: 68.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006357/5.103, allocations: 196.7 kB / 1.608 GB, free: 68.72 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.009599/5.112, allocations: 3.909 MB / 1.612 GB, free: 67.18 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.71e-07/5.112, allocations: 0 / 1.612 GB, free: 67.18 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01953/5.132, allocations: 2.76 MB / 1.614 GB, free: 67.16 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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) * 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 simulation (565): * Single equations (assignments): 550 * 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%) 1,(18,41.7%) 100,(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} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0391/5.171, allocations: 22.36 MB / 1.636 GB, free: 57.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02163/5.193, allocations: 13.04 MB / 1.649 GB, free: 51.83 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/5.193, allocations: 3.938 kB / 1.649 GB, free: 51.83 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01382/5.207, allocations: 7.452 MB / 1.656 GB, free: 46.21 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01203/5.219, allocations: 1.575 MB / 1.658 GB, free: 45.03 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09746/5.316, allocations: 32.33 MB / 1.689 GB, free: 17.06 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4525/5.769, allocations: 11.87 MB / 1.701 GB, free: 77.59 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01569/5.784, allocations: 3.233 MB / 1.704 GB, free: 77.52 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01371/5.798, allocations: 6.642 MB / 1.71 GB, free: 77.51 MB / 0.5573 GB Notification: Performance of SimCode: time 1.493e-06/5.798, allocations: 0 / 1.71 GB, free: 77.51 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8511/6.649, allocations: 225.8 MB / 1.931 GB, free: 39.39 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/6.65, allocations: 129 kB / 1.931 GB, free: 39.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.876/16.53, allocations: 2.812 kB / 1.931 GB, free: 39.2 MB / 0.573 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)