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.001098/0.001098, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.334/1.334, allocations: 222.9 MB / 239.9 MB, free: 4.621 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.001401/0.001401, allocations: 188.5 kB / 290.2 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.03448/0.03448, allocations: 8.794 MB / 349.2 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 79.12 kB / 411.7 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07683/0.07851, allocations: 51.57 MB / 463.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03702/0.1156, allocations: 38.31 MB / 0.4899 GB, free: 7.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02137/0.137, allocations: 10.04 MB / 0.4997 GB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006946/0.144, allocations: 291.1 kB / 0.4999 GB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02419/0.1682, allocations: 10.12 MB / 0.5098 GB, free: 3.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01352/0.1818, allocations: 4.05 MB / 0.5138 GB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007466/0.1892, allocations: 2.38 MB / 0.5161 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2118/0.401, allocations: 16.25 MB / 0.532 GB, free: 6.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04584/0.4469, allocations: 31.39 MB / 0.5626 GB, free: 1.727 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01381/0.4608, allocations: 8.476 MB / 0.5709 GB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01623/0.477, allocations: 9.389 MB / 0.5801 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007/0.4841, allocations: 2.418 MB / 0.5824 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01043/0.4945, allocations: 2.811 MB / 0.5852 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008054/0.5026, allocations: 4.814 MB / 0.5899 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0178/0.5205, allocations: 9.202 MB / 0.5989 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03741/0.5579, allocations: 31.93 MB / 0.6301 GB, free: 10.42 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.558, allocations: 0 / 0.6301 GB, free: 10.42 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.558, allocations: 0 / 0.6301 GB, free: 10.42 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008039/0.5588, allocations: 0 / 0.6301 GB, free: 10.42 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.05775/0.6166, allocations: 18.74 MB / 0.6484 GB, free: 7.684 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.6166, allocations: 12.03 kB / 0.6484 GB, free: 7.672 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06539/0.682, allocations: 8.242 MB / 0.6564 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03204/0.7141, allocations: 9.929 MB / 0.6661 GB, free: 5.938 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002031/0.7162, allocations: 1.065 MB / 0.6672 GB, free: 4.883 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008564/0.7248, allocations: 1.404 MB / 0.6685 GB, free: 3.492 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07228/0.7971, allocations: 22.75 MB / 0.6907 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000646/0.7978, allocations: 23.28 kB / 0.6908 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005137/0.803, allocations: 0.5759 MB / 0.6913 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008031/0.8038, allocations: 0.7755 MB / 0.6921 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4515/1.255, allocations: 21 MB / 0.7126 GB, free: 147 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1237/1.379, allocations: 72.91 MB / 0.7838 GB, free: 99.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02775/1.407, allocations: 42.41 MB / 0.8252 GB, free: 54.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0084/1.415, allocations: 5.205 MB / 0.8303 GB, free: 48.92 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02193/1.437, allocations: 12.73 MB / 0.8427 GB, free: 36.24 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/1.437, allocations: 90.77 kB / 0.8428 GB, free: 36.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 6.281e-06/1.437, allocations: 3.938 kB / 0.8428 GB, free: 36.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.05596/1.493, allocations: 26.35 MB / 0.8685 GB, free: 9.457 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/1.494, allocations: 133.3 kB / 0.8687 GB, free: 9.305 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00829/1.502, allocations: 5.767 MB / 0.8743 GB, free: 3.559 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001223/1.503, allocations: 105.7 kB / 0.8744 GB, free: 3.449 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004134/1.507, allocations: 6.157 MB / 0.8804 GB, free: 13.26 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002727/1.51, allocations: 1.735 MB / 0.8821 GB, free: 11.54 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002593/1.513, allocations: 1.465 MB / 0.8835 GB, free: 10.07 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001104/1.513, allocations: 305.1 kB / 0.8838 GB, free: 9.766 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006159/1.519, allocations: 3.63 MB / 0.8874 GB, free: 6.133 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2597/1.779, allocations: 6.467 MB / 0.8937 GB, free: 149.3 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01595/1.795, allocations: 10.76 MB / 0.9042 GB, free: 145.5 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001517/1.795, allocations: 26.69 kB / 0.9042 GB, free: 145.5 MB / 0.4982 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.0262/1.821, allocations: 12.09 MB / 0.916 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 9.867e-05/1.821, allocations: 48.81 kB / 0.9161 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/1.821, allocations: 93.84 kB / 0.9162 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004335/1.826, allocations: 1.611 MB / 0.9177 GB, free: 142.4 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006622/1.832, allocations: 1.666 MB / 0.9194 GB, free: 142.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02163/1.854, allocations: 19.68 MB / 0.9386 GB, free: 129.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007289/1.861, allocations: 425.4 kB / 0.939 GB, free: 129.1 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001674/1.863, allocations: 367.5 kB / 0.9393 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.00943/1.872, allocations: 5.188 MB / 0.9444 GB, free: 126.5 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/1.874, allocations: 0.5921 MB / 0.945 GB, free: 126.5 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01567/1.89, allocations: 9.371 MB / 0.9541 GB, free: 122.7 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008505/1.898, allocations: 5.881 MB / 0.9599 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.803e-05/1.899, allocations: 24 kB / 0.9599 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001009/1.899, allocations: 30.19 kB / 0.9599 GB, free: 119.7 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03619/1.935, allocations: 21.02 MB / 0.9805 GB, free: 102 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.317e-05/1.935, allocations: 8 kB / 0.9805 GB, free: 102 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003651/1.939, allocations: 0.8706 MB / 0.9813 GB, free: 101.1 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004676/1.943, allocations: 1.653 MB / 0.9829 GB, free: 99.47 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007088/1.944, allocations: 128 kB / 0.9831 GB, free: 99.35 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02189/1.966, allocations: 23.25 MB / 1.006 GB, free: 75.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/1.966, allocations: 11.94 kB / 1.006 GB, free: 75.39 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/1.985, allocations: 13.71 MB / 1.019 GB, free: 61.59 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003513/1.989, allocations: 1.365 MB / 1.02 GB, free: 60.21 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001121/1.99, allocations: 111.9 kB / 1.021 GB, free: 60.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/1.993, allocations: 287.7 kB / 1.021 GB, free: 59.82 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009469/1.994, allocations: 408.4 kB / 1.021 GB, free: 59.41 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003134/1.994, allocations: 152 kB / 1.021 GB, free: 59.27 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005613/2, allocations: 3.891 MB / 1.025 GB, free: 55.4 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.8e-07/2, allocations: 0 / 1.025 GB, free: 55.4 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009301/2.009, allocations: 2.337 MB / 1.027 GB, free: 53.07 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.001051/2.01, allocations: 331.7 kB / 1.028 GB, free: 52.76 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.03002/2.04, allocations: 15.86 MB / 1.043 GB, free: 36.86 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/2.04, allocations: 320 / 1.043 GB, free: 36.86 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.008124/2.048, allocations: 5.454 MB / 1.049 GB, free: 31.32 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008017/2.056, allocations: 1.626 MB / 1.05 GB, free: 29.74 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04227/2.099, allocations: 24.51 MB / 1.074 GB, free: 5.141 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2684/2.367, allocations: 8.568 MB / 1.083 GB, free: 136.7 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002748/2.37, allocations: 0.5079 MB / 1.083 GB, free: 136.7 MB / 0.4982 GB Notification: Performance of SimCode: time 1.252e-06/2.37, allocations: 1.094 kB / 1.083 GB, free: 136.7 MB / 0.4982 GB Notification: Performance of Templates: time 1.595/3.965, allocations: 0.6674 GB / 1.75 GB, free: 103.6 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)