Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.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.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") translateModel(HanserModelica.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 100.1 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.54/1.54, allocations: 223.2 MB / 238.9 MB, free: 5.633 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.001252/0.001252, allocations: 189 kB / 290.2 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03468/0.03468, allocations: 8.801 MB / 350.1 MB, free: 4.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004364, allocations: 10.34 kB / 413.1 MB, free: 43.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.116, allocations: 52.57 MB / 465.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04224/0.1583, allocations: 36.25 MB / 0.4901 GB, free: 9.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0328/0.1911, allocations: 11.43 MB / 0.5013 GB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01251/0.2037, allocations: 302.9 kB / 0.5016 GB, free: 13.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0131/0.2168, allocations: 2.456 MB / 0.504 GB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02085/0.2378, allocations: 4.136 MB / 0.508 GB, free: 6.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01017/0.248, allocations: 2.027 MB / 0.51 GB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.03296/0.2809, allocations: 16.55 MB / 0.5262 GB, free: 4.301 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5423/0.8232, allocations: 31.64 MB / 0.5571 GB, free: 5.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01532/0.8386, allocations: 7.242 MB / 0.5641 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01589/0.8545, allocations: 8.001 MB / 0.572 GB, free: 5.586 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007187/0.8618, allocations: 1.209 MB / 0.5731 GB, free: 5.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01315/0.8749, allocations: 1.525 MB / 0.5746 GB, free: 5.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009371/0.8844, allocations: 3.745 MB / 0.5783 GB, free: 5.293 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01265/0.897, allocations: 3.971 MB / 0.5822 GB, free: 3.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0467/0.9438, allocations: 34.83 MB / 0.6162 GB, free: 5.914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.9438, allocations: 0 / 0.6162 GB, free: 5.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.691e-06/0.9438, allocations: 4 kB / 0.6162 GB, free: 5.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.001546/0.9454, allocations: 0 / 0.6162 GB, free: 5.91 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: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.07289/1.018, allocations: 19.99 MB / 0.6357 GB, free: 4.082 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/1.018, allocations: 8.031 kB / 0.6357 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06687/1.085, allocations: 11.15 MB / 0.6466 GB, free: 9.707 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04244/1.128, allocations: 12.85 MB / 0.6592 GB, free: 13.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002394/1.13, allocations: 1.358 MB / 0.6605 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01071/1.141, allocations: 1.786 MB / 0.6622 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09602/1.237, allocations: 29.32 MB / 0.6909 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009486/1.238, allocations: 19.89 kB / 0.6909 GB, free: 13.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006904/1.245, allocations: 0.7449 MB / 0.6916 GB, free: 12.57 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001228/1.246, allocations: 0.9918 MB / 0.6926 GB, free: 11.58 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5197/1.766, allocations: 27.19 MB / 0.7191 GB, free: 116.8 MB / 478.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.155/1.921, allocations: 94.27 MB / 0.8112 GB, free: 48 MB / 478.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03296/1.954, allocations: 51.94 MB / 0.8619 GB, free: 7.176 MB / 494.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03364/1.988, allocations: 16.45 MB / 0.878 GB, free: 6.82 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.042e-05/1.988, allocations: 116.6 kB / 0.8781 GB, free: 6.695 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=697): time 8.766e-06/1.988, allocations: 0 / 0.8781 GB, free: 6.695 MB / 0.4983 GB Notification: Performance of matching and sorting (n=705): time 0.3208/2.309, allocations: 39.1 MB / 0.9163 GB, free: 152.4 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/2.309, allocations: 154.5 kB / 0.9164 GB, free: 152.3 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01167/2.32, allocations: 7.008 MB / 0.9233 GB, free: 151.8 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001207/2.322, allocations: 139 kB / 0.9234 GB, free: 151.8 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003925/2.326, allocations: 7.78 MB / 0.931 GB, free: 146.6 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.002321/2.328, allocations: 2.388 MB / 0.9333 GB, free: 144.7 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009899/2.329, allocations: 195.4 kB / 0.9335 GB, free: 144.6 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 0.0005544/2.33, allocations: 0.698 MB / 0.9342 GB, free: 144.1 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007593/2.337, allocations: 4.927 MB / 0.939 GB, free: 142.2 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009795/2.347, allocations: 8.359 MB / 0.9472 GB, free: 136 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009001/2.356, allocations: 6.646 MB / 0.9537 GB, free: 133 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.407e-05/2.356, allocations: 32.38 kB / 0.9537 GB, free: 133 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.02631/2.382, allocations: 16.22 MB / 0.9695 GB, free: 126.3 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 7.965e-05/2.383, allocations: 50.97 kB / 0.9696 GB, free: 126.3 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/2.383, allocations: 110.9 kB / 0.9697 GB, free: 126.3 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005672/2.388, allocations: 2.553 MB / 0.9722 GB, free: 125.6 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007844/2.396, allocations: 2.121 MB / 0.9742 GB, free: 124.9 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02821/2.425, allocations: 29.34 MB / 1.003 GB, free: 97.31 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007284/2.432, allocations: 0.5424 MB / 1.003 GB, free: 96.77 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001669/2.434, allocations: 456 kB / 1.004 GB, free: 96.32 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 507 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1102): * Single equations (assignments): 1089 * 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: 8 * 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: 8 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01/2.444, allocations: 6.762 MB / 1.01 GB, free: 89.55 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/2.445, allocations: 0.7718 MB / 1.011 GB, free: 88.77 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01821/2.463, allocations: 13.32 MB / 1.024 GB, free: 75.24 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01176/2.475, allocations: 8.352 MB / 1.032 GB, free: 66.79 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.054e-05/2.475, allocations: 28 kB / 1.032 GB, free: 66.76 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002155/2.476, allocations: 35.86 kB / 1.032 GB, free: 66.73 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.047/2.523, allocations: 28.35 MB / 1.06 GB, free: 38.19 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.27e-05/2.523, allocations: 7.984 kB / 1.06 GB, free: 38.18 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004716/2.527, allocations: 1.143 MB / 1.061 GB, free: 37.04 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005953/2.533, allocations: 2.61 MB / 1.064 GB, free: 34.4 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001127/2.534, allocations: 152 kB / 1.064 GB, free: 34.25 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2851/2.82, allocations: 33.87 MB / 1.097 GB, free: 132.9 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/2.82, allocations: 13.59 kB / 1.097 GB, free: 132.9 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03817/2.858, allocations: 19.71 MB / 1.116 GB, free: 131 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005206/2.863, allocations: 1.782 MB / 1.118 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00209/2.865, allocations: 134.7 kB / 1.118 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00457/2.87, allocations: 411.9 kB / 1.119 GB, free: 130.9 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001344/2.871, allocations: 0.5341 MB / 1.119 GB, free: 130.8 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004931/2.872, allocations: 199.6 kB / 1.119 GB, free: 130.8 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.008609/2.88, allocations: 4.699 MB / 1.124 GB, free: 129.8 MB / 0.5139 GB Notification: Performance of sort global known variables: time 1.022e-06/2.88, allocations: 0 / 1.124 GB, free: 129.8 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01394/2.894, allocations: 3.073 MB / 1.127 GB, free: 129.5 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,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 (577): * Single equations (assignments): 562 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002009/2.896, allocations: 365 kB / 1.127 GB, free: 129.3 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.02077/2.917, allocations: 13.55 MB / 1.14 GB, free: 123.5 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/2.917, allocations: 3.562 kB / 1.14 GB, free: 123.5 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.0115/2.929, allocations: 7.684 MB / 1.148 GB, free: 119.7 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009514/2.938, allocations: 1.951 MB / 1.15 GB, free: 119.1 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05561/2.994, allocations: 38.5 MB / 1.187 GB, free: 86.29 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01887/3.013, allocations: 11.65 MB / 1.199 GB, free: 77.52 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.01267/3.025, allocations: 3.316 MB / 1.202 GB, free: 74.2 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002861/3.028, allocations: 0.5619 MB / 1.203 GB, free: 73.64 MB / 0.5139 GB Notification: Performance of SimCode: time 9.62e-07/3.028, allocations: 0 / 1.203 GB, free: 73.64 MB / 0.5139 GB Notification: Performance of Templates: time 0.4317/3.46, allocations: 127 MB / 1.327 GB, free: 116.8 MB / 0.5295 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Start.sim & ./HanserModelica_HanserModelica.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1) Environment - environmentSimulation: