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.00644/0.00644, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.518/1.518, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.00127/0.00127, allocations: 184.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03419/0.03419, allocations: 8.8 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 75.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1148, allocations: 51.56 MB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.2885/0.4033, allocations: 38.32 MB / 0.5408 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02849/0.4318, allocations: 10.02 MB / 0.5506 GB, free: 2.934 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01074/0.4426, allocations: 294.1 kB / 0.5509 GB, free: 2.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02469/0.4674, allocations: 10.13 MB / 0.5608 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01656/0.4839, allocations: 4.04 MB / 0.5647 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01235/0.4963, allocations: 2.377 MB / 0.5671 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02924/0.5256, allocations: 16.38 MB / 0.583 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05115/0.5767, allocations: 31.19 MB / 0.6135 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01711/0.5939, allocations: 8.509 MB / 0.6218 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01682/0.6107, allocations: 9.324 MB / 0.6309 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008521/0.6193, allocations: 2.418 MB / 0.6333 GB, free: 12.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01396/0.6333, allocations: 2.808 MB / 0.636 GB, free: 9.621 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01058/0.6439, allocations: 4.809 MB / 0.6407 GB, free: 4.797 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02102/0.665, allocations: 9.199 MB / 0.6497 GB, free: 11.56 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04206/0.7071, allocations: 32.1 MB / 0.6811 GB, free: 11.37 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.7072, allocations: 4 kB / 0.6811 GB, free: 11.36 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.7072, allocations: 0 / 0.6811 GB, free: 11.36 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0009859/0.7082, allocations: 3.938 kB / 0.6811 GB, free: 11.36 MB / 494.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.07253/0.7807, allocations: 18.67 MB / 0.6993 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.77e-05/0.7808, allocations: 12.03 kB / 0.6993 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05119/0.832, allocations: 8.298 MB / 0.7074 GB, free: 236 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03128/0.8634, allocations: 10.21 MB / 0.7174 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001773/0.8652, allocations: 1.064 MB / 0.7184 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007226/0.8725, allocations: 1.394 MB / 0.7198 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6734/1.546, allocations: 22.74 MB / 0.742 GB, free: 134 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000902/1.547, allocations: 23.72 kB / 0.742 GB, free: 134 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005823/1.553, allocations: 0.5753 MB / 0.7426 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001491/1.554, allocations: 0.7771 MB / 0.7433 GB, free: 133.4 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05608/1.61, allocations: 21.01 MB / 0.7639 GB, free: 124.8 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1406/1.751, allocations: 72 MB / 0.8342 GB, free: 57.41 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02712/1.778, allocations: 42.39 MB / 0.8756 GB, free: 10.14 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008049/1.786, allocations: 5.162 MB / 0.8806 GB, free: 4.957 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02603/1.812, allocations: 12.68 MB / 0.893 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.08e-05/1.812, allocations: 86.75 kB / 0.8931 GB, free: 8.23 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 7.324e-06/1.812, allocations: 0 / 0.8931 GB, free: 8.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.0653/1.878, allocations: 26.36 MB / 0.9188 GB, free: 13.54 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.96e-05/1.878, allocations: 133.3 kB / 0.919 GB, free: 13.38 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01178/1.89, allocations: 5.755 MB / 0.9246 GB, free: 7.648 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001324/1.891, allocations: 109.7 kB / 0.9247 GB, free: 7.535 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004958/1.896, allocations: 6.16 MB / 0.9307 GB, free: 1.34 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.003015/1.899, allocations: 1.727 MB / 0.9324 GB, free: 15.62 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002779/1.902, allocations: 1.465 MB / 0.9338 GB, free: 14.15 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.000115/1.902, allocations: 301.1 kB / 0.9341 GB, free: 13.85 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006467/1.908, allocations: 3.626 MB / 0.9376 GB, free: 10.22 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009644/1.918, allocations: 6.478 MB / 0.944 GB, free: 2.445 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4082/2.326, allocations: 10.76 MB / 0.9545 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/2.327, allocations: 26.69 kB / 0.9545 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.0283/2.355, allocations: 12.09 MB / 0.9663 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/2.355, allocations: 48.97 kB / 0.9664 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002706/2.355, allocations: 94.23 kB / 0.9664 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005314/2.361, allocations: 1.601 MB / 0.968 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008159/2.369, allocations: 1.665 MB / 0.9696 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02404/2.393, allocations: 19.67 MB / 0.9888 GB, free: 159.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007868/2.401, allocations: 424.6 kB / 0.9893 GB, free: 159.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/2.402, allocations: 366.5 kB / 0.9896 GB, free: 159.6 MB / 0.5763 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.01104/2.413, allocations: 5.187 MB / 0.9947 GB, free: 157.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001722/2.415, allocations: 0.5945 MB / 0.9952 GB, free: 157.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/2.43, allocations: 9.36 MB / 1.004 GB, free: 153.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008593/2.439, allocations: 5.882 MB / 1.01 GB, free: 150.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.991e-05/2.439, allocations: 23.2 kB / 1.01 GB, free: 150.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.572e-05/2.439, allocations: 28.41 kB / 1.01 GB, free: 150.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0351/2.474, allocations: 21 MB / 1.031 GB, free: 139.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-05/2.474, allocations: 8.094 kB / 1.031 GB, free: 139.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003541/2.478, allocations: 0.8735 MB / 1.032 GB, free: 138.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004938/2.483, allocations: 1.636 MB / 1.033 GB, free: 136.8 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006802/2.483, allocations: 124 kB / 1.033 GB, free: 136.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02312/2.506, allocations: 23.24 MB / 1.056 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/2.507, allocations: 15.94 kB / 1.056 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02037/2.527, allocations: 13.71 MB / 1.069 GB, free: 98.94 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004292/2.531, allocations: 1.363 MB / 1.071 GB, free: 97.56 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001888/2.533, allocations: 104 kB / 1.071 GB, free: 97.46 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004099/2.537, allocations: 287.7 kB / 1.071 GB, free: 97.18 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/2.538, allocations: 412.4 kB / 1.071 GB, free: 96.77 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/2.539, allocations: 152 kB / 1.072 GB, free: 96.62 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006934/2.546, allocations: 3.887 MB / 1.075 GB, free: 92.76 MB / 0.5763 GB Notification: Performance of sort global known variables: time 7.12e-07/2.546, allocations: 0 / 1.075 GB, free: 92.76 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01099/2.557, allocations: 2.341 MB / 1.078 GB, free: 90.43 MB / 0.5763 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.001326/2.558, allocations: 325.1 kB / 1.078 GB, free: 90.12 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01579/2.574, allocations: 9.895 MB / 1.088 GB, free: 80.14 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/2.574, allocations: 4 kB / 1.088 GB, free: 80.13 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009333/2.583, allocations: 5.454 MB / 1.093 GB, free: 74.59 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01063/2.594, allocations: 1.633 MB / 1.095 GB, free: 73 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05432/2.648, allocations: 24.59 MB / 1.119 GB, free: 48.32 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01376/2.662, allocations: 8.846 MB / 1.127 GB, free: 39.43 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00879/2.671, allocations: 2.527 MB / 1.13 GB, free: 36.89 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002395/2.673, allocations: 463.4 kB / 1.13 GB, free: 36.45 MB / 0.5763 GB Notification: Performance of SimCode: time 1.223e-06/2.673, allocations: 0 / 1.13 GB, free: 36.45 MB / 0.5763 GB Notification: Performance of Templates: time 0.4958/3.169, allocations: 98.02 MB / 1.226 GB, free: 137.4 MB / 0.5763 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)