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-master/package.mo", uses=false) 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) 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.0008475/0.000848, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.35/1.35, allocations: 223.3 MB / 239.4 MB, free: 5.395 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.0009475/0.0009475, allocations: 176.5 kB / 290.6 MB, free: 2.07 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03304/0.03304, allocations: 8.801 MB / 350.5 MB, free: 4.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003256, allocations: 9.281 kB / 413.9 MB, free: 42.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.08517, allocations: 52.57 MB / 466.5 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03574/0.1209, allocations: 36.15 MB / 0.4908 GB, free: 8.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.1423, allocations: 9.842 MB / 0.5005 GB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007352/0.1497, allocations: 271.1 kB / 0.5007 GB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007992/0.1577, allocations: 2.453 MB / 0.5031 GB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01328/0.171, allocations: 3.663 MB / 0.5067 GB, free: 8.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007128/0.1782, allocations: 2.086 MB / 0.5087 GB, free: 6.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02132/0.1995, allocations: 16.62 MB / 0.525 GB, free: 5.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2625/0.4621, allocations: 29.3 MB / 0.5536 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01057/0.4727, allocations: 5.933 MB / 0.5594 GB, free: 4.078 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01178/0.4845, allocations: 7.213 MB / 0.5664 GB, free: 2.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004855/0.4894, allocations: 0.937 MB / 0.5673 GB, free: 2.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007666/0.4971, allocations: 1.322 MB / 0.5686 GB, free: 2.559 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005432/0.5026, allocations: 3.045 MB / 0.5716 GB, free: 2.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01265/0.5153, allocations: 7.278 MB / 0.5787 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03386/0.5492, allocations: 30.11 MB / 0.6081 GB, free: 6.355 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5492, allocations: 4 kB / 0.6081 GB, free: 6.352 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.5492, allocations: 4 kB / 0.6081 GB, free: 6.348 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009394/0.5502, allocations: 0 / 0.6081 GB, free: 6.348 MB / 398.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.04798/0.5982, allocations: 15.61 MB / 0.6234 GB, free: 6.727 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.5982, allocations: 15.97 kB / 0.6234 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007593/0.6059, allocations: 2.008 MB / 0.6253 GB, free: 4.703 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04712/0.653, allocations: 8.283 MB / 0.6334 GB, free: 12.49 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02151/0.6745, allocations: 9.921 MB / 0.6431 GB, free: 2.938 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001322/0.6759, allocations: 1.063 MB / 0.6441 GB, free: 1.883 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00528/0.6812, allocations: 1.396 MB / 0.6455 GB, free: 0.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0571/0.7383, allocations: 22.78 MB / 0.6678 GB, free: 9.672 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008856/0.7392, allocations: 19.8 kB / 0.6678 GB, free: 9.652 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004413/0.7437, allocations: 0.5813 MB / 0.6683 GB, free: 9.086 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009468/0.7446, allocations: 0.7755 MB / 0.6691 GB, free: 8.309 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04492/0.7896, allocations: 21.05 MB / 0.6897 GB, free: 3.254 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4627/1.252, allocations: 73.15 MB / 0.7611 GB, free: 115.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02552/1.278, allocations: 42.43 MB / 0.8025 GB, free: 74.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007517/1.285, allocations: 5.266 MB / 0.8077 GB, free: 71.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01876/1.304, allocations: 12.83 MB / 0.8202 GB, free: 63.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/1.304, allocations: 89.25 kB / 0.8203 GB, free: 63.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 6.301e-06/1.304, allocations: 0 / 0.8203 GB, free: 63.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.05234/1.357, allocations: 26.91 MB / 0.8466 GB, free: 36.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/1.357, allocations: 129.4 kB / 0.8467 GB, free: 36.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007632/1.364, allocations: 5.763 MB / 0.8523 GB, free: 30.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008848/1.365, allocations: 105.7 kB / 0.8524 GB, free: 30.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002719/1.368, allocations: 6.152 MB / 0.8584 GB, free: 24.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.37, allocations: 1.746 MB / 0.8601 GB, free: 22.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007995/1.37, allocations: 0.5925 MB / 0.8607 GB, free: 21.81 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.761e-05/1.37, allocations: 309.1 kB / 0.861 GB, free: 21.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0047/1.375, allocations: 3.68 MB / 0.8646 GB, free: 17.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005764/1.381, allocations: 6.525 MB / 0.871 GB, free: 9.996 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01238/1.393, allocations: 10.88 MB / 0.8816 GB, free: 13.79 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/1.394, allocations: 28 kB / 0.8816 GB, free: 13.77 MB / 0.4982 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02304/1.417, allocations: 12.19 MB / 0.8935 GB, free: 1.512 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.058e-05/1.417, allocations: 55.75 kB / 0.8936 GB, free: 1.461 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/1.417, allocations: 92 kB / 0.8937 GB, free: 1.371 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2185/1.635, allocations: 1.595 MB / 0.8952 GB, free: 155 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006704/1.642, allocations: 1.667 MB / 0.8968 GB, free: 155 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02481/1.667, allocations: 18.26 MB / 0.9147 GB, free: 148.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006317/1.673, allocations: 429.5 kB / 0.9151 GB, free: 148.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/1.675, allocations: 369.3 kB / 0.9154 GB, free: 148.3 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (12,64,53.5%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01183/1.687, allocations: 5.19 MB / 0.9205 GB, free: 145.8 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002026/1.689, allocations: 0.5927 MB / 0.9211 GB, free: 145.8 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01647/1.705, allocations: 9.476 MB / 0.9303 GB, free: 141.9 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009402/1.715, allocations: 5.965 MB / 0.9362 GB, free: 139.6 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.219e-05/1.715, allocations: 18.12 kB / 0.9362 GB, free: 139.6 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.384e-05/1.715, allocations: 32.14 kB / 0.9362 GB, free: 139.6 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03552/1.75, allocations: 21.18 MB / 0.9569 GB, free: 129.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.012e-05/1.751, allocations: 7.828 kB / 0.9569 GB, free: 129.4 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003711/1.754, allocations: 0.8675 MB / 0.9577 GB, free: 128.6 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004365/1.759, allocations: 1.639 MB / 0.9593 GB, free: 126.9 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008662/1.76, allocations: 128 kB / 0.9595 GB, free: 126.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02159/1.781, allocations: 21.39 MB / 0.9803 GB, free: 104.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/1.781, allocations: 8 kB / 0.9804 GB, free: 104.7 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02227/1.803, allocations: 13.89 MB / 0.9939 GB, free: 90.82 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003111/1.807, allocations: 1.371 MB / 0.9953 GB, free: 89.53 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00154/1.808, allocations: 104 kB / 0.9954 GB, free: 89.43 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003732/1.812, allocations: 299.8 kB / 0.9956 GB, free: 89.14 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/1.813, allocations: 416.9 kB / 0.996 GB, free: 88.73 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004831/1.814, allocations: 156 kB / 0.9962 GB, free: 88.57 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006427/1.82, allocations: 3.883 MB / 1 GB, free: 84.72 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.7e-07/1.82, allocations: 4 kB / 1 GB, free: 84.71 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009122/1.829, allocations: 2.345 MB / 1.002 GB, free: 82.38 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 (441): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02207/1.851, allocations: 14.67 MB / 1.017 GB, free: 67.36 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01534/1.867, allocations: 9.972 MB / 1.026 GB, free: 57.29 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/1.867, allocations: 3.938 kB / 1.026 GB, free: 57.28 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.008518/1.875, allocations: 5.509 MB / 1.032 GB, free: 51.7 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01539/1.891, allocations: 1.544 MB / 1.033 GB, free: 50.18 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4305/2.321, allocations: 107.8 MB / 1.139 GB, free: 134.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01632/2.337, allocations: 8.851 MB / 1.147 GB, free: 131 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.00956/2.347, allocations: 2.531 MB / 1.15 GB, free: 129.9 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007938/2.355, allocations: 5.161 MB / 1.155 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of SimCode: time 1.223e-06/2.355, allocations: 2.156 kB / 1.155 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4842/2.839, allocations: 184.1 MB / 1.335 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/2.839, allocations: 211.3 kB / 1.335 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.682/8.522, allocations: 0 / 1.335 GB, free: 114.9 MB / 0.5138 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/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)