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.001383/0.001383, allocations: 174.7 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.05597/0.05597, allocations: 8.702 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.534/1.534, allocations: 221.4 MB / 246 MB, free: 3.547 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.0009618/0.0009619, allocations: 88.38 kB / 299.1 MB, free: 2.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.71e-05/3.734e-05, allocations: 4 kB / 359.6 MB, free: 6.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3028, allocations: 52.54 MB / 412.2 MB, free: 22.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4843/0.7872, allocations: 151.7 MB / 0.5507 GB, free: 31.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.7874, allocations: 73.97 kB / 0.5507 GB, free: 31.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.47/2.257, allocations: 457.1 MB / 0.9971 GB, free: 14.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.845e-06/2.257, allocations: 4 kB / 0.9971 GB, free: 14.72 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001546/2.259, allocations: 327.6 kB / 0.9974 GB, free: 14.4 MB / 474.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.05275/2.311, allocations: 13.19 MB / 1.01 GB, free: 1.102 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/2.312, allocations: 9.156 kB / 1.01 GB, free: 1.094 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00929/2.321, allocations: 1.995 MB / 1.012 GB, free: 15.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03489/2.356, allocations: 5.827 MB / 1.018 GB, free: 9.234 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3958/2.752, allocations: 11.71 MB / 1.029 GB, free: 33.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00149/2.753, allocations: 1.021 MB / 1.03 GB, free: 33.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007024/2.76, allocations: 1.352 MB / 1.032 GB, free: 33.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06505/2.825, allocations: 22.17 MB / 1.053 GB, free: 31.89 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006797/2.826, allocations: 19.72 kB / 1.053 GB, free: 31.89 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004537/2.831, allocations: 0.5858 MB / 1.054 GB, free: 31.89 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009961/2.832, allocations: 0.9771 MB / 1.055 GB, free: 31.86 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04011/2.872, allocations: 19.17 MB / 1.074 GB, free: 31.74 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.13/3.002, allocations: 72.72 MB / 1.145 GB, free: 3.867 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03674/3.039, allocations: 42.12 MB / 1.186 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01006/3.049, allocations: 5.065 MB / 1.191 GB, free: 11.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03172/3.08, allocations: 12.76 MB / 1.203 GB, free: 4.754 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001078/3.081, allocations: 94.78 kB / 1.203 GB, free: 4.648 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=502): time 1.031e-05/3.081, allocations: 0 / 1.203 GB, free: 4.648 MB / 0.5261 GB Notification: Performance of matching and sorting (n=510): time 0.0439/3.125, allocations: 18.92 MB / 1.222 GB, free: 3.75 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.691e-05/3.125, allocations: 131.5 kB / 1.222 GB, free: 3.602 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4173/3.542, allocations: 5.007 MB / 1.227 GB, free: 94.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001385/3.543, allocations: 108.8 kB / 1.227 GB, free: 94.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005969/3.549, allocations: 6.14 MB / 1.233 GB, free: 93.27 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002734/3.552, allocations: 1.743 MB / 1.235 GB, free: 92.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008321/3.553, allocations: 149.6 kB / 1.235 GB, free: 92.18 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000476/3.554, allocations: 0.609 MB / 1.235 GB, free: 91.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0064/3.56, allocations: 3.51 MB / 1.239 GB, free: 91.85 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008717/3.569, allocations: 6.293 MB / 1.245 GB, free: 88.49 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007654/3.576, allocations: 4.923 MB / 1.25 GB, free: 88.42 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/3.577, allocations: 27.66 kB / 1.25 GB, free: 88.42 MB / 0.5417 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.02559/3.602, allocations: 11.8 MB / 1.261 GB, free: 87.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002357/3.602, allocations: 44.06 kB / 1.261 GB, free: 87.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002528/3.603, allocations: 95.56 kB / 1.261 GB, free: 87.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004718/3.607, allocations: 1.508 MB / 1.263 GB, free: 87.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006999/3.614, allocations: 1.642 MB / 1.264 GB, free: 87.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02295/3.637, allocations: 17.85 MB / 1.282 GB, free: 81.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008479/3.646, allocations: 429.9 kB / 1.282 GB, free: 80.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0023/3.648, allocations: 367.9 kB / 1.283 GB, free: 80.99 MB / 0.5417 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,52.8%) 64} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004396/3.653, allocations: 0.5733 MB / 1.283 GB, free: 80.83 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003239/3.656, allocations: 0.5944 MB / 1.284 GB, free: 80.52 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02435/3.68, allocations: 9.154 MB / 1.293 GB, free: 79.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01259/3.693, allocations: 5.771 MB / 1.298 GB, free: 79.73 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-05/3.693, allocations: 17.94 kB / 1.298 GB, free: 79.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001556/3.693, allocations: 25.27 kB / 1.298 GB, free: 79.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05816/3.752, allocations: 20.89 MB / 1.319 GB, free: 78.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-05/3.752, allocations: 4.312 kB / 1.319 GB, free: 78.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004358/3.756, allocations: 0.8598 MB / 1.32 GB, free: 78.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005184/3.761, allocations: 1.543 MB / 1.321 GB, free: 78.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001404/3.763, allocations: 128.1 kB / 1.321 GB, free: 78.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02412/3.787, allocations: 21.02 MB / 1.342 GB, free: 63.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.138e-05/3.787, allocations: 12.75 kB / 1.342 GB, free: 63.84 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0248/3.812, allocations: 14.31 MB / 1.356 GB, free: 56.67 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004725/3.816, allocations: 1.358 MB / 1.357 GB, free: 55.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002593/3.819, allocations: 106 kB / 1.357 GB, free: 55.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005249/3.824, allocations: 303.1 kB / 1.358 GB, free: 55.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001806/3.826, allocations: 406.7 kB / 1.358 GB, free: 55.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001059/3.827, allocations: 153.3 kB / 1.358 GB, free: 55.62 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.008831/3.836, allocations: 3.757 MB / 1.362 GB, free: 54.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.743e-06/3.836, allocations: 0 / 1.362 GB, free: 54.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0137/3.85, allocations: 2.39 MB / 1.364 GB, free: 53.97 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,52.1%) 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.02679/3.877, allocations: 16.7 MB / 1.38 GB, free: 40.84 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01969/3.896, allocations: 9.612 MB / 1.39 GB, free: 32.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/3.897, allocations: 0.5 kB / 1.39 GB, free: 32.27 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01066/3.907, allocations: 5.338 MB / 1.395 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01017/3.917, allocations: 1.485 MB / 1.396 GB, free: 26.29 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4879/4.405, allocations: 25.56 MB / 1.421 GB, free: 90.03 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02298/4.428, allocations: 9.087 MB / 1.43 GB, free: 89.02 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01075/4.439, allocations: 2.521 MB / 1.433 GB, free: 88.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01159/4.451, allocations: 5.135 MB / 1.438 GB, free: 88.95 MB / 0.5417 GB Notification: Performance of SimCode: time 1.863e-06/4.451, allocations: 0 / 1.438 GB, free: 88.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6956/5.146, allocations: 188.2 MB / 1.622 GB, free: 52.87 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/5.147, allocations: 164.7 kB / 1.622 GB, free: 52.65 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/13.3, allocations: 0 / 1.622 GB, free: 52.65 MB / 0.5573 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)