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/ModelicaServices 4.0.0+maint.om/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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008888/0.0008888, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 223.2 MB / 238.9 MB, free: 5.672 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 189 kB / 290.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03238/0.03238, allocations: 8.785 MB / 350 MB, free: 4.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.0003878, allocations: 10.75 kB / 413.2 MB, free: 43.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1112, allocations: 52.57 MB / 465.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03223/0.1435, allocations: 30.68 MB / 496.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02269/0.1662, allocations: 9.641 MB / 0.4942 GB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00859/0.1749, allocations: 247.1 kB / 0.4944 GB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009235/0.1841, allocations: 2.071 MB / 0.4964 GB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01422/0.1984, allocations: 3.477 MB / 0.4998 GB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007178/0.2056, allocations: 1.634 MB / 0.5014 GB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02513/0.2308, allocations: 13.65 MB / 0.5148 GB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.497/0.7278, allocations: 24.39 MB / 0.5386 GB, free: 12.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01823/0.7461, allocations: 5.669 MB / 0.5441 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01649/0.7627, allocations: 6.252 MB / 0.5502 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006327/0.769, allocations: 0.9369 MB / 0.5511 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01031/0.7794, allocations: 1.236 MB / 0.5524 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007394/0.7868, allocations: 2.882 MB / 0.5552 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009817/0.7967, allocations: 3.079 MB / 0.5582 GB, free: 12.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03906/0.8358, allocations: 27.52 MB / 0.5851 GB, free: 0 / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.8358, allocations: 0 / 0.5851 GB, free: 0 / 366.1 MB Notification: Performance of FrontEnd: time 6.562e-06/0.8359, allocations: 8.031 kB / 0.5851 GB, free: 15.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001207/0.8371, allocations: 0 / 0.5851 GB, free: 15.99 MB / 382.1 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.05462/0.8917, allocations: 15.66 MB / 0.6004 GB, free: 3.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.8918, allocations: 8.562 kB / 0.6004 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0119/0.9037, allocations: 2.027 MB / 0.6023 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04866/0.9524, allocations: 8.2 MB / 0.6104 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02624/0.9787, allocations: 9.786 MB / 0.6199 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001366/0.9801, allocations: 1.061 MB / 0.6209 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00752/0.9876, allocations: 1.399 MB / 0.6223 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07333/1.061, allocations: 22.55 MB / 0.6443 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001085/1.062, allocations: 23.47 kB / 0.6444 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008711/1.071, allocations: 0.5832 MB / 0.6449 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009301/1.072, allocations: 0.7793 MB / 0.6457 GB, free: 12.56 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04904/1.121, allocations: 20.94 MB / 0.6661 GB, free: 7.609 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3823/1.503, allocations: 73.03 MB / 0.7374 GB, free: 97.01 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02779/1.531, allocations: 42.39 MB / 0.7788 GB, free: 61.68 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02586/1.557, allocations: 12.45 MB / 0.791 GB, free: 59.38 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.666e-05/1.557, allocations: 97.78 kB / 0.7911 GB, free: 59.29 MB / 478.1 MB Notification: Performance of pre-optimization done (n=514): time 6.452e-06/1.557, allocations: 3.656 kB / 0.7911 GB, free: 59.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=522): time 0.05729/1.614, allocations: 27.45 MB / 0.8179 GB, free: 42.87 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/1.614, allocations: 133 kB / 0.818 GB, free: 42.77 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008107/1.623, allocations: 5.659 MB / 0.8236 GB, free: 39.77 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001073/1.624, allocations: 116.6 kB / 0.8237 GB, free: 39.67 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003033/1.627, allocations: 6.122 MB / 0.8296 GB, free: 34.34 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001992/1.629, allocations: 1.794 MB / 0.8314 GB, free: 32.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004613/1.629, allocations: 149.9 kB / 0.8315 GB, free: 32.68 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000335/1.63, allocations: 0.6089 MB / 0.8321 GB, free: 32.15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004972/1.635, allocations: 3.691 MB / 0.8357 GB, free: 29.95 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006163/1.641, allocations: 6.509 MB / 0.8421 GB, free: 22.15 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007215/1.648, allocations: 5.08 MB / 0.8471 GB, free: 17.06 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.59e-05/1.648, allocations: 25.42 kB / 0.8471 GB, free: 17.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=976) (initialization): time 0.02497/1.673, allocations: 12.22 MB / 0.859 GB, free: 4.746 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.823e-05/1.673, allocations: 47.95 kB / 0.8591 GB, free: 4.699 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001835/1.673, allocations: 96 kB / 0.8591 GB, free: 4.605 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004867/1.678, allocations: 1.606 MB / 0.8607 GB, free: 2.984 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007453/1.686, allocations: 1.685 MB / 0.8624 GB, free: 1.297 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02319/1.709, allocations: 18.67 MB / 0.8806 GB, free: 14.01 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006913/1.716, allocations: 431.4 kB / 0.881 GB, free: 13.59 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001673/1.718, allocations: 372 kB / 0.8814 GB, free: 13.22 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 421 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (876): * Single equations (assignments): 866 * 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%) 1,(12,52.8%) 64,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01292/1.731, allocations: 5.197 MB / 0.8864 GB, free: 8.012 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002015/1.733, allocations: 0.5942 MB / 0.887 GB, free: 7.41 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2799/2.013, allocations: 9.562 MB / 0.8964 GB, free: 146.4 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01122/2.024, allocations: 5.993 MB / 0.9022 GB, free: 146.1 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.353e-05/2.024, allocations: 19.12 kB / 0.9022 GB, free: 146.1 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001106/2.024, allocations: 26.25 kB / 0.9023 GB, free: 146.1 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04153/2.066, allocations: 21.31 MB / 0.9231 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/2.066, allocations: 9.875 kB / 0.9231 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003667/2.069, allocations: 0.8884 MB / 0.9239 GB, free: 142.5 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004429/2.074, allocations: 1.629 MB / 0.9255 GB, free: 142.1 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007885/2.075, allocations: 127.9 kB / 0.9256 GB, free: 142 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02274/2.097, allocations: 21.82 MB / 0.947 GB, free: 126.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/2.097, allocations: 11.8 kB / 0.947 GB, free: 126.9 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02191/2.119, allocations: 14.91 MB / 0.9615 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004085/2.123, allocations: 1.372 MB / 0.9629 GB, free: 119.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001348/2.125, allocations: 107.4 kB / 0.963 GB, free: 119.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003474/2.128, allocations: 302.8 kB / 0.9633 GB, free: 119.1 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000896/2.129, allocations: 420.8 kB / 0.9637 GB, free: 119 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003238/2.13, allocations: 154 kB / 0.9638 GB, free: 118.9 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006225/2.136, allocations: 3.796 MB / 0.9675 GB, free: 116.9 MB / 0.4982 GB Notification: Performance of sort global known variables: time 3.51e-07/2.136, allocations: 0 / 0.9675 GB, free: 116.9 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01134/2.147, allocations: 2.347 MB / 0.9698 GB, free: 116.7 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 440 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12,(1,100.0%) 1,(12,54.2%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02196/2.169, allocations: 16.9 MB / 0.9863 GB, free: 99.86 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01406/2.183, allocations: 10.03 MB / 0.9961 GB, free: 89.76 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/2.183, allocations: 0 / 0.9961 GB, free: 89.76 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.00788/2.191, allocations: 5.558 MB / 1.002 GB, free: 84.11 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009044/2.2, allocations: 1.482 MB / 1.003 GB, free: 82.69 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4001/2.6, allocations: 137.4 MB / 1.137 GB, free: 126.2 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02409/2.625, allocations: 9.079 MB / 1.146 GB, free: 123.3 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01081/2.635, allocations: 2.546 MB / 1.149 GB, free: 123.2 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01034/2.646, allocations: 5.124 MB / 1.154 GB, free: 118.8 MB / 0.4982 GB Notification: Performance of SimCode: time 1.172e-06/2.646, allocations: 0 / 1.154 GB, free: 118.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5047/3.151, allocations: 181.4 MB / 1.331 GB, free: 110.6 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/3.151, allocations: 191.9 kB / 1.331 GB, free: 110.4 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.76/8.911, allocations: 0 / 1.331 GB, free: 110.4 MB / 0.4982 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) Environment - environmentSimulation: