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.001386/0.001386, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.433/1.433, allocations: 222.9 MB / 239 MB, free: 4.73 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.001274/0.001274, allocations: 192.4 kB / 289.3 MB, free: 2.457 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03318/0.03318, allocations: 8.789 MB / 348.2 MB, free: 4.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 74.06 kB / 410.6 MB, free: 42.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09643/0.09778, allocations: 51.57 MB / 462.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03766/0.1355, allocations: 37.62 MB / 499.8 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02097/0.1565, allocations: 9.896 MB / 0.4977 GB, free: 15.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009484/0.166, allocations: 275.1 kB / 0.498 GB, free: 14.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02398/0.19, allocations: 9.53 MB / 0.5073 GB, free: 5.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01269/0.2027, allocations: 3.648 MB / 0.5108 GB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006668/0.2094, allocations: 2.194 MB / 0.513 GB, free: 15.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4872/0.6966, allocations: 16.46 MB / 0.5291 GB, free: 6.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06081/0.7575, allocations: 35.03 MB / 0.5633 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01931/0.7769, allocations: 8.516 MB / 0.5716 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0195/0.7964, allocations: 9.398 MB / 0.5808 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008655/0.8051, allocations: 2.41 MB / 0.5831 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0116/0.8167, allocations: 2.816 MB / 0.5859 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009068/0.8258, allocations: 4.813 MB / 0.5906 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02659/0.8525, allocations: 9.235 MB / 0.5996 GB, free: 7.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04639/0.8989, allocations: 31.9 MB / 0.6307 GB, free: 9.574 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.899, allocations: 4 kB / 0.6307 GB, free: 9.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.899, allocations: 0 / 0.6307 GB, free: 9.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001014/0.9, allocations: 3.938 kB / 0.6307 GB, free: 9.566 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.06438/0.9644, allocations: 18.74 MB / 0.649 GB, free: 6.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.9645, allocations: 8.031 kB / 0.649 GB, free: 6.832 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04568/1.01, allocations: 8.254 MB / 0.6571 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0197/1.03, allocations: 9.882 MB / 0.6668 GB, free: 5.141 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001061/1.031, allocations: 1.065 MB / 0.6678 GB, free: 4.086 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005366/1.036, allocations: 1.398 MB / 0.6692 GB, free: 2.699 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06247/1.099, allocations: 22.77 MB / 0.6914 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008693/1.1, allocations: 19.75 kB / 0.6914 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006547/1.106, allocations: 0.584 MB / 0.692 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001079/1.107, allocations: 0.7787 MB / 0.6928 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3324/1.44, allocations: 21.01 MB / 0.7133 GB, free: 148 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1333/1.573, allocations: 72.92 MB / 0.7845 GB, free: 100 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02703/1.6, allocations: 42.45 MB / 0.8259 GB, free: 53.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007936/1.608, allocations: 5.251 MB / 0.8311 GB, free: 48.14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01998/1.628, allocations: 12.8 MB / 0.8436 GB, free: 35.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.633e-05/1.628, allocations: 94.78 kB / 0.8437 GB, free: 35.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 6.131e-06/1.628, allocations: 3.938 kB / 0.8437 GB, free: 35.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.05544/1.684, allocations: 26.77 MB / 0.8698 GB, free: 8.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/1.684, allocations: 129.4 kB / 0.8699 GB, free: 8.012 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009296/1.693, allocations: 5.771 MB / 0.8756 GB, free: 2.262 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00165/1.695, allocations: 109.7 kB / 0.8757 GB, free: 2.148 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004602/1.7, allocations: 6.15 MB / 0.8817 GB, free: 11.96 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003033/1.703, allocations: 1.75 MB / 0.8834 GB, free: 10.23 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002869/1.705, allocations: 1.469 MB / 0.8848 GB, free: 8.75 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001214/1.706, allocations: 309.1 kB / 0.8851 GB, free: 8.445 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0063/1.712, allocations: 3.669 MB / 0.8887 GB, free: 4.773 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3231/2.035, allocations: 6.507 MB / 0.895 GB, free: 149.8 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0161/2.051, allocations: 10.84 MB / 0.9056 GB, free: 146 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001551/2.051, allocations: 26.12 kB / 0.9057 GB, free: 146 MB / 0.4982 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.02877/2.08, allocations: 12.18 MB / 0.9176 GB, free: 143.2 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.000139/2.08, allocations: 47.56 kB / 0.9176 GB, free: 143.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002876/2.081, allocations: 93.22 kB / 0.9177 GB, free: 143.2 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004602/2.085, allocations: 1.609 MB / 0.9193 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006814/2.092, allocations: 1.667 MB / 0.9209 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02318/2.115, allocations: 19.68 MB / 0.9401 GB, free: 129.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00796/2.123, allocations: 427.4 kB / 0.9405 GB, free: 129.5 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00206/2.125, allocations: 374.5 kB / 0.9409 GB, free: 129.4 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 (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,53.5%), (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.01208/2.137, allocations: 5.184 MB / 0.9459 GB, free: 126.9 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001794/2.139, allocations: 0.5963 MB / 0.9465 GB, free: 126.9 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01624/2.156, allocations: 9.448 MB / 0.9557 GB, free: 123 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009117/2.165, allocations: 5.96 MB / 0.9616 GB, free: 120 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-05/2.165, allocations: 20 kB / 0.9616 GB, free: 120 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.962e-05/2.165, allocations: 36.62 kB / 0.9616 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0386/2.204, allocations: 21.14 MB / 0.9823 GB, free: 101.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/2.204, allocations: 4 kB / 0.9823 GB, free: 101.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003777/2.207, allocations: 0.8742 MB / 0.9831 GB, free: 100.7 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00462/2.212, allocations: 1.653 MB / 0.9847 GB, free: 99.07 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001017/2.213, allocations: 124 kB / 0.9848 GB, free: 98.95 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02153/2.235, allocations: 23.24 MB / 1.008 GB, free: 75.01 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/2.235, allocations: 11.94 kB / 1.008 GB, free: 75 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02227/2.257, allocations: 13.85 MB / 1.021 GB, free: 61.07 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004391/2.261, allocations: 1.358 MB / 1.022 GB, free: 59.69 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002021/2.263, allocations: 108 kB / 1.023 GB, free: 59.58 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004354/2.268, allocations: 291.7 kB / 1.023 GB, free: 59.3 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001365/2.269, allocations: 408.4 kB / 1.023 GB, free: 58.89 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003907/2.27, allocations: 156 kB / 1.023 GB, free: 58.74 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006872/2.276, allocations: 3.887 MB / 1.027 GB, free: 54.88 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.41e-07/2.276, allocations: 0 / 1.027 GB, free: 54.88 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0113/2.288, allocations: 2.341 MB / 1.029 GB, free: 52.55 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 (441): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001666/2.289, allocations: 326.5 kB / 1.03 GB, free: 52.24 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.03422/2.324, allocations: 16.13 MB / 1.045 GB, free: 36.06 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/2.324, allocations: 0 / 1.045 GB, free: 36.06 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0104/2.334, allocations: 5.493 MB / 1.051 GB, free: 30.49 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01082/2.345, allocations: 1.636 MB / 1.052 GB, free: 28.9 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3239/2.669, allocations: 30.9 MB / 1.083 GB, free: 138.7 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01873/2.688, allocations: 8.848 MB / 1.091 GB, free: 137.7 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01/2.698, allocations: 2.535 MB / 1.094 GB, free: 137.6 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002352/2.7, allocations: 456.9 kB / 1.094 GB, free: 137.6 MB / 0.4982 GB Notification: Performance of SimCode: time 2.425e-06/2.7, allocations: 0.5625 kB / 1.094 GB, free: 137.6 MB / 0.4982 GB Notification: Performance of Templates: time 0.1672/2.867, allocations: 102.7 MB / 1.194 GB, free: 62.44 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 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)