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.001157/0.001157, allocations: 105.6 kB / 16.37 MB, free: 6.477 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.445/1.445, allocations: 222.9 MB / 240 MB, free: 4.605 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.001387/0.001387, allocations: 195.5 kB / 290.3 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03483/0.03483, allocations: 8.787 MB / 349.3 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 78.02 kB / 412.5 MB, free: 41.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09655, allocations: 51.56 MB / 464.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.04387/0.1405, allocations: 38.32 MB / 0.4906 GB, free: 7.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02387/0.1644, allocations: 10.04 MB / 0.5004 GB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0068/0.1712, allocations: 291.1 kB / 0.5007 GB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02212/0.1934, allocations: 10.12 MB / 0.5106 GB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01516/0.2086, allocations: 4.041 MB / 0.5145 GB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008587/0.2172, allocations: 2.379 MB / 0.5169 GB, free: 12.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2599/0.4771, allocations: 16.37 MB / 0.5329 GB, free: 6.801 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05687/0.534, allocations: 31.2 MB / 0.5633 GB, free: 2.164 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01789/0.552, allocations: 8.47 MB / 0.5716 GB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0203/0.5723, allocations: 9.329 MB / 0.5807 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009043/0.5814, allocations: 2.422 MB / 0.5831 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01442/0.5959, allocations: 2.805 MB / 0.5858 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01184/0.6078, allocations: 4.811 MB / 0.5905 GB, free: 308 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02847/0.6363, allocations: 9.254 MB / 0.5995 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05447/0.6908, allocations: 32.1 MB / 0.6309 GB, free: 10 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.6909, allocations: 0 / 0.6309 GB, free: 10 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6909, allocations: 0 / 0.6309 GB, free: 10 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00104/0.6919, allocations: 0 / 0.6309 GB, free: 10 MB / 430.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.08889/0.7808, allocations: 18.67 MB / 0.6491 GB, free: 7.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.846e-05/0.7809, allocations: 8.031 kB / 0.6491 GB, free: 7.332 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07837/0.8593, allocations: 8.296 MB / 0.6572 GB, free: 15.11 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03312/0.8925, allocations: 10.2 MB / 0.6672 GB, free: 5.277 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001564/0.8941, allocations: 1.06 MB / 0.6682 GB, free: 4.227 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008153/0.9023, allocations: 1.395 MB / 0.6696 GB, free: 2.844 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07495/0.9773, allocations: 22.75 MB / 0.6918 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006276/0.9779, allocations: 27.39 kB / 0.6918 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007414/0.9854, allocations: 0.5755 MB / 0.6924 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008976/0.9863, allocations: 0.7754 MB / 0.6932 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5482/1.535, allocations: 21.01 MB / 0.7137 GB, free: 147.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1639/1.698, allocations: 72 MB / 0.784 GB, free: 99.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02901/1.727, allocations: 42.41 MB / 0.8254 GB, free: 54.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008431/1.736, allocations: 5.198 MB / 0.8305 GB, free: 49.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02452/1.761, allocations: 12.68 MB / 0.8429 GB, free: 36.54 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.497e-05/1.761, allocations: 86.77 kB / 0.843 GB, free: 36.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 7.284e-06/1.761, allocations: 0 / 0.843 GB, free: 36.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.06107/1.822, allocations: 26.36 MB / 0.8687 GB, free: 9.758 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/1.822, allocations: 129.3 kB / 0.8688 GB, free: 9.609 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01051/1.832, allocations: 5.767 MB / 0.8744 GB, free: 3.863 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001449/1.834, allocations: 109.7 kB / 0.8746 GB, free: 3.75 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004799/1.839, allocations: 6.154 MB / 0.8806 GB, free: 13.56 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003235/1.842, allocations: 1.734 MB / 0.8823 GB, free: 11.84 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003334/1.845, allocations: 1.461 MB / 0.8837 GB, free: 10.37 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001567/1.845, allocations: 309.1 kB / 0.884 GB, free: 10.07 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006707/1.852, allocations: 3.626 MB / 0.8875 GB, free: 6.438 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3137/2.166, allocations: 6.47 MB / 0.8938 GB, free: 149.2 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01616/2.182, allocations: 10.76 MB / 0.9043 GB, free: 145.5 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001457/2.182, allocations: 27.59 kB / 0.9044 GB, free: 145.5 MB / 0.4982 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02414/2.207, allocations: 12.09 MB / 0.9162 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 9.373e-05/2.207, allocations: 47.47 kB / 0.9162 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001891/2.207, allocations: 93.78 kB / 0.9163 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004085/2.211, allocations: 1.598 MB / 0.9179 GB, free: 142.4 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006113/2.217, allocations: 1.667 MB / 0.9195 GB, free: 142.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02052/2.238, allocations: 19.66 MB / 0.9387 GB, free: 129.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006638/2.244, allocations: 425.4 kB / 0.9391 GB, free: 129.1 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001734/2.246, allocations: 364.1 kB / 0.9395 GB, free: 129 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 (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,52.1%), (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.01016/2.256, allocations: 5.19 MB / 0.9445 GB, free: 126.5 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001427/2.258, allocations: 0.5964 MB / 0.9451 GB, free: 126.5 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01395/2.272, allocations: 9.365 MB / 0.9543 GB, free: 122.7 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007443/2.279, allocations: 5.875 MB / 0.96 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.406e-05/2.279, allocations: 20 kB / 0.96 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.571e-05/2.279, allocations: 29.62 kB / 0.96 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0301/2.309, allocations: 21.01 MB / 0.9806 GB, free: 102.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-05/2.309, allocations: 4 kB / 0.9806 GB, free: 102.1 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00331/2.313, allocations: 0.8699 MB / 0.9814 GB, free: 101.2 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004166/2.317, allocations: 1.642 MB / 0.983 GB, free: 99.54 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005569/2.317, allocations: 124 kB / 0.9831 GB, free: 99.41 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02032/2.338, allocations: 23.24 MB / 1.006 GB, free: 75.48 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/2.338, allocations: 7.938 kB / 1.006 GB, free: 75.47 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/2.356, allocations: 13.72 MB / 1.019 GB, free: 61.66 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003999/2.36, allocations: 1.364 MB / 1.021 GB, free: 60.27 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001417/2.361, allocations: 104 kB / 1.021 GB, free: 60.17 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00346/2.365, allocations: 287.7 kB / 1.021 GB, free: 59.89 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009152/2.366, allocations: 408.4 kB / 1.021 GB, free: 59.48 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00033/2.366, allocations: 152 kB / 1.021 GB, free: 59.34 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005595/2.372, allocations: 3.887 MB / 1.025 GB, free: 55.48 MB / 0.4982 GB Notification: Performance of sort global known variables: time 3.01e-07/2.372, allocations: 0 / 1.025 GB, free: 55.48 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0118/2.383, allocations: 2.345 MB / 1.028 GB, free: 53.14 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 (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001548/2.385, allocations: 322.7 kB / 1.028 GB, free: 52.84 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01454/2.4, allocations: 9.898 MB / 1.038 GB, free: 42.85 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/2.4, allocations: 0 / 1.038 GB, free: 42.85 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.008139/2.408, allocations: 5.454 MB / 1.043 GB, free: 37.32 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007956/2.416, allocations: 1.634 MB / 1.044 GB, free: 35.75 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04361/2.459, allocations: 24.6 MB / 1.068 GB, free: 11.06 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01516/2.475, allocations: 8.85 MB / 1.077 GB, free: 2.172 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.2701/2.745, allocations: 2.527 MB / 1.08 GB, free: 132.5 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001948/2.747, allocations: 458.4 kB / 1.08 GB, free: 132.5 MB / 0.4982 GB Notification: Performance of SimCode: time 9.52e-07/2.747, allocations: 0 / 1.08 GB, free: 132.5 MB / 0.4982 GB Notification: Performance of Templates: time 0.1717/2.918, allocations: 94.4 MB / 1.172 GB, free: 77.17 MB / 0.4982 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)