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: translateModel(HanserModelica.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") translateModel(HanserModelica.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 99.27 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.3 MB / 240 MB, free: 5.402 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.0009315/0.0009315, allocations: 168.6 kB / 291.3 MB, free: 2.078 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03545/0.03545, allocations: 8.81 MB / 351.2 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003276/0.0003277, allocations: 10.36 kB / 414.5 MB, free: 42.74 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0672/0.06754, allocations: 52.57 MB / 467 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03336/0.1009, allocations: 36.15 MB / 0.4914 GB, free: 8.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.1188, allocations: 9.846 MB / 0.501 GB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00572/0.1245, allocations: 271.1 kB / 0.5013 GB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006585/0.1311, allocations: 2.453 MB / 0.5037 GB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01126/0.1424, allocations: 3.659 MB / 0.5072 GB, free: 8.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005776/0.1482, allocations: 2.089 MB / 0.5093 GB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01821/0.1664, allocations: 16.64 MB / 0.5255 GB, free: 5.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.213/0.3794, allocations: 29.29 MB / 0.5541 GB, free: 4.297 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00737/0.3868, allocations: 5.938 MB / 0.5599 GB, free: 3.629 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008506/0.3953, allocations: 7.203 MB / 0.567 GB, free: 2.137 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002552/0.3979, allocations: 0.9423 MB / 0.5679 GB, free: 2.133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004168/0.4021, allocations: 1.329 MB / 0.5692 GB, free: 2.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002812/0.4049, allocations: 3.037 MB / 0.5721 GB, free: 1.582 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006695/0.4116, allocations: 7.279 MB / 0.5792 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02087/0.4325, allocations: 27.05 MB / 0.6057 GB, free: 9.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.4325, allocations: 4 kB / 0.6057 GB, free: 9.246 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.818e-06/0.4325, allocations: 0 / 0.6057 GB, free: 9.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005413/0.4331, allocations: 3.938 kB / 0.6057 GB, free: 9.242 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.04119/0.4743, allocations: 15.6 MB / 0.6209 GB, free: 9.625 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.4743, allocations: 12.03 kB / 0.6209 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04686/0.5212, allocations: 8.291 MB / 0.629 GB, free: 1.398 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01784/0.5391, allocations: 9.912 MB / 0.6387 GB, free: 7.848 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007794/0.5399, allocations: 1.064 MB / 0.6397 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003321/0.5432, allocations: 1.396 MB / 0.6411 GB, free: 5.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04224/0.5854, allocations: 22.79 MB / 0.6633 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002791/0.5857, allocations: 15.81 kB / 0.6634 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001584/0.5873, allocations: 0.5793 MB / 0.6639 GB, free: 13.99 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007103/0.5881, allocations: 0.7754 MB / 0.6647 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04045/0.6285, allocations: 21.04 MB / 0.6852 GB, free: 8.164 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4261/1.055, allocations: 73.15 MB / 0.7567 GB, free: 116.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02414/1.079, allocations: 42.43 MB / 0.7981 GB, free: 75.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006591/1.085, allocations: 5.268 MB / 0.8032 GB, free: 72.47 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01682/1.102, allocations: 12.84 MB / 0.8158 GB, free: 63.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/1.102, allocations: 84.09 kB / 0.8159 GB, free: 63.83 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 5.911e-06/1.102, allocations: 0 / 0.8159 GB, free: 63.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.05135/1.154, allocations: 26.9 MB / 0.8421 GB, free: 40.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/1.154, allocations: 137.3 kB / 0.8423 GB, free: 40.74 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006605/1.16, allocations: 5.759 MB / 0.8479 GB, free: 35 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003277/1.161, allocations: 105.7 kB / 0.848 GB, free: 34.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002355/1.163, allocations: 6.157 MB / 0.854 GB, free: 28.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000978/1.164, allocations: 1.749 MB / 0.8557 GB, free: 26.97 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007141/1.165, allocations: 0.5886 MB / 0.8563 GB, free: 26.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.128e-05/1.165, allocations: 309.1 kB / 0.8566 GB, free: 26.07 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004632/1.169, allocations: 3.68 MB / 0.8602 GB, free: 22.39 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005489/1.175, allocations: 6.525 MB / 0.8665 GB, free: 14.56 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/1.186, allocations: 10.87 MB / 0.8772 GB, free: 2.371 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-05/1.186, allocations: 28 kB / 0.8772 GB, free: 2.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=968) (initialization): time 0.01909/1.205, allocations: 12.2 MB / 0.8891 GB, free: 6.078 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 6.174e-05/1.205, allocations: 44 kB / 0.8891 GB, free: 6.035 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.062e-05/1.205, allocations: 92 kB / 0.8892 GB, free: 5.945 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004596/1.21, allocations: 1.6 MB / 0.8908 GB, free: 4.332 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005931/1.216, allocations: 1.669 MB / 0.8924 GB, free: 2.66 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2058/1.421, allocations: 18.25 MB / 0.9102 GB, free: 146.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005732/1.427, allocations: 433 kB / 0.9107 GB, free: 146.6 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001161/1.428, allocations: 372.1 kB / 0.911 GB, free: 146.6 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.007988/1.436, allocations: 5.189 MB / 0.9161 GB, free: 145 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/1.438, allocations: 0.593 MB / 0.9167 GB, free: 145 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/1.453, allocations: 9.482 MB / 0.9259 GB, free: 141.2 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00837/1.461, allocations: 5.961 MB / 0.9317 GB, free: 138.9 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.791e-05/1.461, allocations: 15.81 kB / 0.9318 GB, free: 138.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.124e-05/1.461, allocations: 31.48 kB / 0.9318 GB, free: 138.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02796/1.489, allocations: 21.17 MB / 0.9525 GB, free: 129.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.717e-05/1.489, allocations: 6.969 kB / 0.9525 GB, free: 129.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003557/1.493, allocations: 0.8629 MB / 0.9533 GB, free: 129.4 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004398/1.497, allocations: 1.637 MB / 0.9549 GB, free: 128.6 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000323/1.497, allocations: 130 kB / 0.955 GB, free: 128.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02043/1.518, allocations: 21.39 MB / 0.9759 GB, free: 108.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.518, allocations: 11.94 kB / 0.9759 GB, free: 108.2 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01829/1.536, allocations: 13.88 MB / 0.9895 GB, free: 94.25 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002529/1.539, allocations: 1.37 MB / 0.9908 GB, free: 93.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007386/1.54, allocations: 108 kB / 0.9909 GB, free: 92.99 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002934/1.542, allocations: 299.6 kB / 0.9912 GB, free: 92.7 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008219/1.543, allocations: 412.4 kB / 0.9916 GB, free: 92.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003091/1.544, allocations: 156 kB / 0.9918 GB, free: 92.14 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004809/1.548, allocations: 3.883 MB / 0.9956 GB, free: 88.29 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.71e-07/1.548, allocations: 3.719 kB / 0.9956 GB, free: 88.29 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.006801/1.555, allocations: 2.349 MB / 0.9979 GB, free: 85.95 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.0006475/1.556, allocations: 320.9 kB / 0.9982 GB, free: 85.64 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0129/1.569, allocations: 9.974 MB / 1.008 GB, free: 75.58 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.569, allocations: 4 kB / 1.008 GB, free: 75.57 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007204/1.576, allocations: 5.499 MB / 1.013 GB, free: 70 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01168/1.588, allocations: 1.543 MB / 1.015 GB, free: 68.49 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03574/1.624, allocations: 30.7 MB / 1.045 GB, free: 37.68 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008173/1.632, allocations: 8.571 MB / 1.053 GB, free: 29.07 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/1.634, allocations: 0.5071 MB / 1.054 GB, free: 28.56 MB / 0.4982 GB Notification: Performance of SimCode: time 6.31e-07/1.634, allocations: 0 / 1.054 GB, free: 28.56 MB / 0.4982 GB Notification: Performance of Templates: time 1.278/2.912, allocations: 0.6658 GB / 1.719 GB, free: 137.9 MB / 0.5294 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)