Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",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.005447/0.005447, allocations: 170.8 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04065/0.04065, allocations: 8.798 MB / 24.65 MB, free: 4.109 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.367/1.367, allocations: 223.2 MB / 250.7 MB, free: 4.863 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.0009139/0.000914, allocations: 98.36 kB / 304 MB, free: 3.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000381/0.000381, allocations: 11.94 kB / 367.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1177, allocations: 52.55 MB / 419.7 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3879/0.5057, allocations: 110.2 MB / 0.5175 GB, free: 14.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.5059, allocations: 79.97 kB / 0.5176 GB, free: 14.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4042/0.9102, allocations: 80.94 MB / 0.5966 GB, free: 80.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.9102, allocations: 0 / 0.5966 GB, free: 80.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001945/0.9104, allocations: 80.92 kB / 0.5967 GB, free: 80.59 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.008831/0.9193, allocations: 3.541 MB / 0.6002 GB, free: 79.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.9193, allocations: 8.938 kB / 0.6002 GB, free: 79.12 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001341/0.9207, allocations: 468.6 kB / 0.6006 GB, free: 79.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004292/0.925, allocations: 0.7427 MB / 0.6013 GB, free: 78.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/0.9351, allocations: 3.352 MB / 0.6046 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/0.9355, allocations: 245 kB / 0.6049 GB, free: 78.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00126/0.9368, allocations: 330.3 kB / 0.6052 GB, free: 78.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009705/0.9465, allocations: 4.223 MB / 0.6093 GB, free: 77.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.093e-05/0.9467, allocations: 8.766 kB / 0.6093 GB, free: 77.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003722/0.947, allocations: 138.7 kB / 0.6094 GB, free: 77.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001799/0.9472, allocations: 147.1 kB / 0.6096 GB, free: 77.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00767/0.9549, allocations: 3.392 MB / 0.6129 GB, free: 77.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02902/0.984, allocations: 13.89 MB / 0.6264 GB, free: 73.87 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006583/0.9906, allocations: 6.638 MB / 0.6329 GB, free: 68.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007837/0.9985, allocations: 3.284 MB / 0.6361 GB, free: 66.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001621/1, allocations: 0.9632 MB / 0.6371 GB, free: 65.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 5.16e-06/1, allocations: 0 / 0.6371 GB, free: 65.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.01302/1.013, allocations: 6.111 MB / 0.643 GB, free: 62.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.288e-05/1.013, allocations: 228.8 kB / 0.6433 GB, free: 62.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003532/1.017, allocations: 1.549 MB / 0.6448 GB, free: 61.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000293/1.017, allocations: 58.3 kB / 0.6448 GB, free: 61.52 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/1.019, allocations: 1.445 MB / 0.6462 GB, free: 60.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005907/1.019, allocations: 0.5154 MB / 0.6467 GB, free: 60.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/1.02, allocations: 43.38 kB / 0.6468 GB, free: 60 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/1.02, allocations: 382.8 kB / 0.6472 GB, free: 59.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/1.021, allocations: 0.7087 MB / 0.6478 GB, free: 59.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/1.023, allocations: 1.335 MB / 0.6491 GB, free: 58.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/1.024, allocations: 0.9471 MB / 0.6501 GB, free: 57.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.496e-05/1.024, allocations: 6.906 kB / 0.6501 GB, free: 57.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.004638/1.029, allocations: 2.649 MB / 0.6527 GB, free: 56.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/1.029, allocations: 13.31 kB / 0.6527 GB, free: 56.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.734e-05/1.029, allocations: 16.84 kB / 0.6527 GB, free: 56.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/1.03, allocations: 369.5 kB / 0.653 GB, free: 56.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/1.032, allocations: 398.2 kB / 0.6534 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006418/1.038, allocations: 7.786 MB / 0.661 GB, free: 49.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/1.04, allocations: 105.5 kB / 0.6611 GB, free: 49.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004211/1.041, allocations: 83.66 kB / 0.6612 GB, free: 49.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002859/1.044, allocations: 1.033 MB / 0.6622 GB, free: 49.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006789/1.045, allocations: 199.2 kB / 0.6624 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004718/1.049, allocations: 2.379 MB / 0.6647 GB, free: 47.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/1.049, allocations: 19.14 kB / 0.6648 GB, free: 47.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.804e-05/1.049, allocations: 11.12 kB / 0.6648 GB, free: 47.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.849e-05/1.049, allocations: 6.844 kB / 0.6648 GB, free: 47.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/1.06, allocations: 5.241 MB / 0.6699 GB, free: 45.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/1.06, allocations: 0 / 0.6699 GB, free: 45.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008756/1.061, allocations: 198.2 kB / 0.6701 GB, free: 45.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/1.062, allocations: 0.5235 MB / 0.6706 GB, free: 45.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001595/1.063, allocations: 48.69 kB / 0.6706 GB, free: 45.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/1.073, allocations: 12.28 MB / 0.6826 GB, free: 34.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.073, allocations: 7.812 kB / 0.6826 GB, free: 34.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006095/1.079, allocations: 3.456 MB / 0.686 GB, free: 33.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/1.081, allocations: 433.2 kB / 0.6864 GB, free: 32.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007746/1.082, allocations: 52.42 kB / 0.6865 GB, free: 32.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/1.083, allocations: 64.45 kB / 0.6865 GB, free: 32.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/1.084, allocations: 124.8 kB / 0.6866 GB, free: 32.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/1.084, allocations: 55.19 kB / 0.6867 GB, free: 32.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002607/1.086, allocations: 1.179 MB / 0.6879 GB, free: 32.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.086, allocations: 0 / 0.6879 GB, free: 32.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003514/1.09, allocations: 0.632 MB / 0.6885 GB, free: 32.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (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,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,booleanStep.y,greaterThreshold.y,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006258/1.096, allocations: 4.687 MB / 0.693 GB, free: 29.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003907/1.1, allocations: 2.44 MB / 0.6954 GB, free: 28.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.1, allocations: 4.188 kB / 0.6954 GB, free: 28.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002499/1.103, allocations: 1.799 MB / 0.6972 GB, free: 26.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/1.106, allocations: 0.5129 MB / 0.6977 GB, free: 26.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02093/1.127, allocations: 20.96 MB / 0.7182 GB, free: 5.445 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003181/1.13, allocations: 2.395 MB / 0.7205 GB, free: 3.559 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002074/1.132, allocations: 420.2 kB / 0.7209 GB, free: 3.273 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001774/1.134, allocations: 1.156 MB / 0.722 GB, free: 2.207 MB / 442.7 MB Notification: Performance of SimCode: time 1.173e-06/1.134, allocations: 0 / 0.722 GB, free: 2.207 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3284/1.462, allocations: 53.49 MB / 0.7743 GB, free: 76.16 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000127/1.463, allocations: 202.4 kB / 0.7745 GB, free: 75.92 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.67/5.132, allocations: 0 / 0.7745 GB, free: 75.92 MB / 458.7 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)