Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_DOL.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.IMC_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_DOL,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_DOL",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.001031/0.001031, allocations: 180.9 kB / 7.65 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.04223/0.04223, allocations: 8.709 MB / 16.79 MB, free: 3.391 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.442/1.442, allocations: 221.5 MB / 240.9 MB, free: 13.12 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.001009/0.001009, allocations: 95.38 kB / 293.9 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.617e-05/1.619e-05, allocations: 0 / 352.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1228, allocations: 52.56 MB / 405.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4815/0.6044, allocations: 151.1 MB / 0.5433 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.6047, allocations: 79.95 kB / 0.5434 GB, free: 0.582 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.8/2.404, allocations: 452.1 MB / 0.9849 GB, free: 42.61 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.515e-06/2.404, allocations: 0 / 0.9849 GB, free: 42.61 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001141/2.406, allocations: 328.7 kB / 0.9852 GB, free: 42.58 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05217/2.458, allocations: 13.18 MB / 0.9981 GB, free: 38.57 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/2.458, allocations: 10.25 kB / 0.9981 GB, free: 38.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03401/2.492, allocations: 5.82 MB / 1.004 GB, free: 37.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02985/2.522, allocations: 11.72 MB / 1.015 GB, free: 36.44 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000824/2.523, allocations: 455.5 kB / 1.016 GB, free: 36.44 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006025/2.529, allocations: 0.8031 MB / 1.016 GB, free: 36.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04324/2.572, allocations: 17.54 MB / 1.034 GB, free: 36.37 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0622/2.634, allocations: 19.97 MB / 1.053 GB, free: 30.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006462/2.635, allocations: 24.8 kB / 1.053 GB, free: 30.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004217/2.639, allocations: 10.16 kB / 1.053 GB, free: 30.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001033/2.64, allocations: 0.9778 MB / 1.054 GB, free: 30.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5406/3.181, allocations: 71.38 MB / 1.124 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0332/3.214, allocations: 41.9 MB / 1.165 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008546/3.223, allocations: 5.083 MB / 1.17 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02764/3.25, allocations: 13.09 MB / 1.182 GB, free: 26.03 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/3.251, allocations: 85.94 kB / 1.182 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=502): time 9.057e-06/3.251, allocations: 0 / 1.182 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=510): time 0.05136/3.302, allocations: 21.96 MB / 1.204 GB, free: 21.96 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/3.302, allocations: 135.5 kB / 1.204 GB, free: 21.86 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008348/3.31, allocations: 4.361 MB / 1.208 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001335/3.312, allocations: 25.7 kB / 1.208 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00365/3.315, allocations: 6.134 MB / 1.214 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002575/3.318, allocations: 1.669 MB / 1.216 GB, free: 17.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004775/3.319, allocations: 2.297 kB / 1.216 GB, free: 17.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005383/3.319, allocations: 0.6086 MB / 1.217 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005353/3.324, allocations: 3.577 MB / 1.22 GB, free: 16.76 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007466/3.332, allocations: 6.318 MB / 1.226 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/3.344, allocations: 6.033 MB / 1.232 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001831/3.344, allocations: 26.53 kB / 1.232 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.02761/3.372, allocations: 12.41 MB / 1.244 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/3.372, allocations: 42.69 kB / 1.244 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001959/3.372, allocations: 91.62 kB / 1.244 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004202/3.376, allocations: 1.481 MB / 1.246 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006978/3.383, allocations: 1.696 MB / 1.248 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02118/3.404, allocations: 17.26 MB / 1.264 GB, free: 17.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008148/3.413, allocations: 334.2 kB / 1.265 GB, free: 17.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002302/3.415, allocations: 364.4 kB / 1.265 GB, free: 17.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 417 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,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 (860): * Single equations (assignments): 850 * 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: 5 * 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: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(12,53.5%) 64} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001916/3.417, allocations: 360.8 kB / 1.265 GB, free: 17.14 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01805/3.435, allocations: 9.143 MB / 1.274 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002177/3.437, allocations: 0.5584 MB / 1.275 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01975/3.457, allocations: 10.08 MB / 1.285 GB, free: 9.621 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01141/3.468, allocations: 6.748 MB / 1.291 GB, free: 7.305 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.077e-05/3.469, allocations: 17.59 kB / 1.291 GB, free: 7.305 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001084/3.469, allocations: 27.47 kB / 1.291 GB, free: 7.305 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05415/3.523, allocations: 20.21 MB / 1.311 GB, free: 8.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.473e-05/3.523, allocations: 8.781 kB / 1.311 GB, free: 8.828 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004856/3.528, allocations: 0.8972 MB / 1.312 GB, free: 8.145 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005064/3.533, allocations: 1.52 MB / 1.313 GB, free: 6.996 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001199/3.534, allocations: 46.97 kB / 1.313 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4557/3.99, allocations: 20.39 MB / 1.333 GB, free: 90.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/3.99, allocations: 11.59 kB / 1.333 GB, free: 90.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02558/4.015, allocations: 15.52 MB / 1.349 GB, free: 88.02 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004533/4.02, allocations: 1.365 MB / 1.35 GB, free: 87.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001958/4.022, allocations: 23.33 kB / 1.35 GB, free: 87.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004463/4.027, allocations: 264.7 kB / 1.35 GB, free: 87.92 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001255/4.028, allocations: 413.2 kB / 1.351 GB, free: 87.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004546/4.028, allocations: 156 kB / 1.351 GB, free: 87.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007504/4.036, allocations: 3.194 MB / 1.354 GB, free: 87.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.31e-07/4.036, allocations: 0 / 1.354 GB, free: 87.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0144/4.05, allocations: 2.129 MB / 1.356 GB, free: 87.73 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (439): * Single equations (assignments): 428 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(12,50.7%) 64,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(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.0304/4.081, allocations: 17.73 MB / 1.373 GB, free: 83.88 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01817/4.099, allocations: 9.585 MB / 1.383 GB, free: 83.06 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.128e-05/4.099, allocations: 1.156 kB / 1.383 GB, free: 83.06 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01057/4.11, allocations: 5.361 MB / 1.388 GB, free: 82.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009633/4.119, allocations: 1.196 MB / 1.389 GB, free: 82.18 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06961/4.189, allocations: 24.97 MB / 1.413 GB, free: 77.71 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01841/4.207, allocations: 9.099 MB / 1.422 GB, free: 76.55 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008306/4.216, allocations: 2.489 MB / 1.425 GB, free: 76.33 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008299/4.224, allocations: 5.133 MB / 1.43 GB, free: 72.65 MB / 0.5417 GB Notification: Performance of SimCode: time 1.402e-06/4.224, allocations: 0 / 1.43 GB, free: 72.65 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6633/4.887, allocations: 172.3 MB / 1.598 GB, free: 86.86 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/4.888, allocations: 127.3 kB / 1.598 GB, free: 86.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.504/12.39, allocations: 0 / 1.598 GB, free: 86.67 MB / 0.5417 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_DOL.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)