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.008366/0.008366, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.436/1.436, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001465/0.001465, allocations: 184.5 kB / 289.7 MB, free: 2.262 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.797 MB / 348.7 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 71.88 kB / 463.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1189, allocations: 51.57 MB / 0.5034 GB, free: 9.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.3275/0.4464, allocations: 38.33 MB / 0.5408 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02112/0.4676, allocations: 10.02 MB / 0.5506 GB, free: 2.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009485/0.4771, allocations: 293.8 kB / 0.5509 GB, free: 2.883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02609/0.5033, allocations: 10.14 MB / 0.5608 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02127/0.5246, allocations: 4.034 MB / 0.5647 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009498/0.5341, allocations: 2.376 MB / 0.5671 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02783/0.5619, allocations: 16.38 MB / 0.5831 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05412/0.6161, allocations: 31.19 MB / 0.6135 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01606/0.6322, allocations: 8.47 MB / 0.6218 GB, free: 8.273 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01675/0.649, allocations: 9.328 MB / 0.6309 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007746/0.6568, allocations: 2.418 MB / 0.6333 GB, free: 12.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01163/0.6684, allocations: 2.812 MB / 0.636 GB, free: 9.684 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007619/0.6761, allocations: 4.805 MB / 0.6407 GB, free: 4.863 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01653/0.6926, allocations: 9.199 MB / 0.6497 GB, free: 11.63 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04025/0.7329, allocations: 32.18 MB / 0.6811 GB, free: 11.35 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.733, allocations: 8 kB / 0.6811 GB, free: 11.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.733, allocations: 0 / 0.6811 GB, free: 11.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001189/0.7342, allocations: 0 / 0.6811 GB, free: 11.34 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.06429/0.7985, allocations: 19.02 MB / 0.6997 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.7986, allocations: 12.03 kB / 0.6997 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04966/0.8483, allocations: 8.369 MB / 0.7079 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02746/0.8758, allocations: 10.24 MB / 0.7179 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001286/0.8771, allocations: 1.064 MB / 0.7189 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006525/0.8836, allocations: 1.398 MB / 0.7203 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6149/1.499, allocations: 22.74 MB / 0.7425 GB, free: 133.6 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008313/1.499, allocations: 21.48 kB / 0.7425 GB, free: 133.6 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006337/1.506, allocations: 0.5769 MB / 0.7431 GB, free: 133.1 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001257/1.507, allocations: 0.7804 MB / 0.7438 GB, free: 133 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05106/1.558, allocations: 21.02 MB / 0.7643 GB, free: 124.4 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1315/1.69, allocations: 72.19 MB / 0.8348 GB, free: 56.97 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02563/1.715, allocations: 42.4 MB / 0.8762 GB, free: 9.699 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007454/1.723, allocations: 5.17 MB / 0.8813 GB, free: 4.512 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0234/1.746, allocations: 12.7 MB / 0.8937 GB, free: 8.027 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.664e-05/1.746, allocations: 90.77 kB / 0.8938 GB, free: 7.93 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 8.566e-06/1.747, allocations: 0 / 0.8938 GB, free: 7.93 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.06419/1.811, allocations: 26.68 MB / 0.9198 GB, free: 13.51 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.199e-05/1.811, allocations: 129.3 kB / 0.92 GB, free: 13.36 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0101/1.821, allocations: 5.772 MB / 0.9256 GB, free: 7.672 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001269/1.822, allocations: 105.7 kB / 0.9257 GB, free: 7.562 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004777/1.827, allocations: 6.363 MB / 0.9319 GB, free: 1.32 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002693/1.83, allocations: 1.822 MB / 0.9337 GB, free: 15.52 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002539/1.832, allocations: 1.462 MB / 0.9351 GB, free: 14.05 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001359/1.832, allocations: 305.1 kB / 0.9354 GB, free: 13.75 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006084/1.839, allocations: 3.63 MB / 0.939 GB, free: 10.12 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00829/1.847, allocations: 6.478 MB / 0.9453 GB, free: 2.34 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3883/2.235, allocations: 10.76 MB / 0.9558 GB, free: 175 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/2.235, allocations: 29.75 kB / 0.9558 GB, free: 175 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.03258/2.268, allocations: 12.11 MB / 0.9676 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/2.268, allocations: 48.47 kB / 0.9677 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002448/2.268, allocations: 94.02 kB / 0.9678 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005281/2.274, allocations: 1.601 MB / 0.9693 GB, free: 172.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007526/2.281, allocations: 1.664 MB / 0.971 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02239/2.304, allocations: 19.69 MB / 0.9902 GB, free: 159.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007792/2.311, allocations: 423.3 kB / 0.9906 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00184/2.313, allocations: 367.1 kB / 0.9909 GB, free: 159.1 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.01231/2.326, allocations: 5.19 MB / 0.996 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002661/2.328, allocations: 0.6237 MB / 0.9966 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01787/2.346, allocations: 9.37 MB / 1.006 GB, free: 152.8 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00935/2.356, allocations: 5.877 MB / 1.012 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-05/2.356, allocations: 19.66 kB / 1.012 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001031/2.356, allocations: 26.91 kB / 1.012 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04634/2.402, allocations: 21.01 MB / 1.032 GB, free: 139.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-05/2.402, allocations: 4 kB / 1.032 GB, free: 139.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00374/2.406, allocations: 0.8663 MB / 1.033 GB, free: 138.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004724/2.411, allocations: 1.638 MB / 1.035 GB, free: 136.8 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001008/2.412, allocations: 128 kB / 1.035 GB, free: 136.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02197/2.434, allocations: 23.27 MB / 1.057 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/2.434, allocations: 12 kB / 1.057 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02114/2.455, allocations: 13.75 MB / 1.071 GB, free: 98.89 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004853/2.46, allocations: 1.388 MB / 1.072 GB, free: 97.49 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001853/2.462, allocations: 104 kB / 1.072 GB, free: 97.39 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003749/2.466, allocations: 287.7 kB / 1.073 GB, free: 97.11 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001134/2.467, allocations: 408.4 kB / 1.073 GB, free: 96.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003388/2.467, allocations: 152 kB / 1.073 GB, free: 96.55 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006268/2.473, allocations: 3.891 MB / 1.077 GB, free: 92.69 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4.5e-07/2.473, allocations: 0 / 1.077 GB, free: 92.69 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01125/2.485, allocations: 2.338 MB / 1.079 GB, free: 90.36 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.001376/2.486, allocations: 318.8 kB / 1.079 GB, free: 90.06 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01537/2.501, allocations: 9.909 MB / 1.089 GB, free: 80.05 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/2.501, allocations: 0 / 1.089 GB, free: 80.05 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009014/2.51, allocations: 5.463 MB / 1.094 GB, free: 74.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01274/2.523, allocations: 1.641 MB / 1.096 GB, free: 72.9 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05447/2.578, allocations: 24.97 MB / 1.12 GB, free: 47.82 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0159/2.594, allocations: 8.859 MB / 1.129 GB, free: 38.92 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.008903/2.603, allocations: 2.527 MB / 1.132 GB, free: 36.38 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001926/2.605, allocations: 455.4 kB / 1.132 GB, free: 35.94 MB / 0.5763 GB Notification: Performance of SimCode: time 1.262e-06/2.605, allocations: 0 / 1.132 GB, free: 35.94 MB / 0.5763 GB Notification: Performance of Templates: time 0.4785/3.083, allocations: 97.48 MB / 1.227 GB, free: 137.3 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)