Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: translateModel(HanserModelica.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Transformer") translateModel(HanserModelica.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009684/0.009684, allocations: 101.1 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.123/2.123, allocations: 222.9 MB / 239.5 MB, free: 4.824 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.001794/0.001795, allocations: 188.5 kB / 289.8 MB, free: 2.562 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03934/0.03934, allocations: 8.787 MB / 348.7 MB, free: 4.969 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002452/0.002452, allocations: 77.17 kB / 414.5 MB, free: 40.53 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1715, allocations: 51.57 MB / 466 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.08014/0.2517, allocations: 48.57 MB / 0.5025 GB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04019/0.292, allocations: 12.75 MB / 0.515 GB, free: 14.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01935/0.3115, allocations: 366.8 kB / 0.5154 GB, free: 13.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03685/0.3484, allocations: 12.99 MB / 0.528 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3916/0.74, allocations: 4.959 MB / 0.5329 GB, free: 6.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01318/0.7532, allocations: 3.025 MB / 0.5358 GB, free: 6.492 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.04787/0.8011, allocations: 24.7 MB / 0.5599 GB, free: 6.348 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0941/0.8953, allocations: 38.69 MB / 0.5977 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03368/0.929, allocations: 10.67 MB / 0.6082 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03211/0.9612, allocations: 13.08 MB / 0.6209 GB, free: 6.855 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01351/0.9747, allocations: 2.297 MB / 0.6232 GB, free: 4.559 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02354/0.9983, allocations: 2.791 MB / 0.6259 GB, free: 1.816 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0186/1.017, allocations: 5.902 MB / 0.6317 GB, free: 12.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0468/1.064, allocations: 12.38 MB / 0.6438 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.08132/1.145, allocations: 42.38 MB / 0.6851 GB, free: 6.176 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.06e-05/1.145, allocations: 0 / 0.6851 GB, free: 6.176 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.815e-06/1.145, allocations: 0 / 0.6851 GB, free: 6.176 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.002157/1.147, allocations: 0 / 0.6851 GB, free: 6.176 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.8624/2.01, allocations: 27.66 MB / 0.7121 GB, free: 135.2 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.917e-05/2.01, allocations: 8.062 kB / 0.7122 GB, free: 135.2 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08927/2.099, allocations: 13.89 MB / 0.7257 GB, free: 134 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04413/2.143, allocations: 14.53 MB / 0.7399 GB, free: 124.4 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002736/2.146, allocations: 1.578 MB / 0.7415 GB, free: 123.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01265/2.159, allocations: 2.079 MB / 0.7435 GB, free: 123 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1146/2.274, allocations: 34.72 MB / 0.7774 GB, free: 94.24 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001313/2.275, allocations: 31.73 kB / 0.7774 GB, free: 94.21 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01085/2.286, allocations: 0.8618 MB / 0.7783 GB, free: 93.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00136/2.287, allocations: 1.145 MB / 0.7794 GB, free: 92.21 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07883/2.366, allocations: 32.32 MB / 0.8109 GB, free: 59.87 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9599/3.326, allocations: 107.6 MB / 0.916 GB, free: 108.6 MB / 0.5139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04609/3.372, allocations: 50.85 MB / 0.9657 GB, free: 73.99 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01818/3.391, allocations: 9.772 MB / 0.9752 GB, free: 73.82 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05081/3.441, allocations: 22.6 MB / 0.9973 GB, free: 68.9 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/3.442, allocations: 137.5 kB / 0.9974 GB, free: 68.79 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=894): time 1.054e-05/3.442, allocations: 0 / 0.9974 GB, free: 68.79 MB / 0.5139 GB Notification: Performance of matching and sorting (n=906): time 0.09049/3.532, allocations: 39.48 MB / 1.036 GB, free: 46.9 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/3.532, allocations: 174.8 kB / 1.036 GB, free: 46.79 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01923/3.551, allocations: 8.342 MB / 1.044 GB, free: 41.74 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.002477/3.554, allocations: 173.7 kB / 1.044 GB, free: 41.57 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.00698/3.561, allocations: 8.688 MB / 1.053 GB, free: 32.82 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.005217/3.566, allocations: 3.048 MB / 1.056 GB, free: 29.8 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006678/3.573, allocations: 2.212 MB / 1.058 GB, free: 27.58 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 7.936e-05/3.573, allocations: 309.1 kB / 1.058 GB, free: 27.27 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01676/3.59, allocations: 6.238 MB / 1.064 GB, free: 21.03 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02262/3.613, allocations: 9.962 MB / 1.074 GB, free: 9.43 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04725/3.66, allocations: 17.24 MB / 1.091 GB, free: 6.496 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002113/3.66, allocations: 36 kB / 1.091 GB, free: 6.461 MB / 0.5295 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.07817/3.738, allocations: 20.3 MB / 1.111 GB, free: 2.059 MB / 0.5452 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001657/3.739, allocations: 56.94 kB / 1.111 GB, free: 2.004 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003184/3.739, allocations: 119.9 kB / 1.111 GB, free: 1.887 MB / 0.5452 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5121/4.251, allocations: 4.329 MB / 1.115 GB, free: 165.1 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01302/4.264, allocations: 2.414 MB / 1.118 GB, free: 165.1 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05852/4.323, allocations: 38.07 MB / 1.155 GB, free: 148.3 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01473/4.338, allocations: 0.6002 MB / 1.155 GB, free: 148.1 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004867/4.342, allocations: 0.5166 MB / 1.156 GB, free: 148 MB / 0.5452 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 531 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStep2QS[3].y,booleanStep2QS[2].y,booleanStep2QS[1].y,booleanStep1QS[3].y,booleanStep1QS[2].y,booleanStep1QS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 6 * 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): 6 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (30,174,25.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.02138/4.364, allocations: 7.927 MB / 1.164 GB, free: 144.3 MB / 0.5452 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003902/4.368, allocations: 0.9063 MB / 1.165 GB, free: 144.3 MB / 0.5452 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04061/4.408, allocations: 17.04 MB / 1.181 GB, free: 137.4 MB / 0.5452 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.362e-05/4.409, allocations: 89.28 kB / 1.181 GB, free: 137.4 MB / 0.5452 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001388/4.409, allocations: 44.94 kB / 1.181 GB, free: 137.4 MB / 0.5452 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002295/4.409, allocations: 47.39 kB / 1.181 GB, free: 137.4 MB / 0.5452 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08584/4.495, allocations: 35.95 MB / 1.216 GB, free: 112.6 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.076e-05/4.495, allocations: 8 kB / 1.216 GB, free: 112.6 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00724/4.502, allocations: 1.424 MB / 1.218 GB, free: 111.2 MB / 0.5452 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01441/4.517, allocations: 4.351 MB / 1.222 GB, free: 106.8 MB / 0.5452 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002435/4.519, allocations: 200 kB / 1.222 GB, free: 106.6 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0637/4.583, allocations: 39.79 MB / 1.261 GB, free: 66.31 MB / 0.5452 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/4.583, allocations: 15.88 kB / 1.261 GB, free: 66.3 MB / 0.5452 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07214/4.655, allocations: 24.77 MB / 1.285 GB, free: 41.83 MB / 0.5452 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01083/4.666, allocations: 2.246 MB / 1.288 GB, free: 39.83 MB / 0.5452 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005666/4.672, allocations: 180 kB / 1.288 GB, free: 39.65 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01274/4.684, allocations: 491.5 kB / 1.288 GB, free: 39.17 MB / 0.5452 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004555/4.689, allocations: 0.7037 MB / 1.289 GB, free: 38.46 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002155/4.691, allocations: 255.9 kB / 1.289 GB, free: 38.21 MB / 0.5452 GB Notification: Performance of sorting global known variables: time 0.0187/4.71, allocations: 5.681 MB / 1.295 GB, free: 32.54 MB / 0.5452 GB Notification: Performance of sort global known variables: time 1.222e-06/4.71, allocations: 0 / 1.295 GB, free: 32.54 MB / 0.5452 GB Notification: Performance of remove unused functions: time 0.03148/4.742, allocations: 3.803 MB / 1.298 GB, free: 28.75 MB / 0.5452 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (703): * Single equations (assignments): 695 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (30,174,25.9%), (1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003987/4.746, allocations: 456.7 kB / 1.299 GB, free: 28.31 MB / 0.5452 GB Notification: Performance of simCode: created initialization part: time 0.4063/5.152, allocations: 17.18 MB / 1.316 GB, free: 162 MB / 0.5452 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-05/5.152, allocations: 2.344 kB / 1.316 GB, free: 162 MB / 0.5452 GB Notification: Performance of simCode: created simulation system equations: time 0.02373/5.176, allocations: 9.863 MB / 1.325 GB, free: 160.7 MB / 0.5452 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02261/5.198, allocations: 2.42 MB / 1.328 GB, free: 160.6 MB / 0.5452 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1045/5.303, allocations: 46.97 MB / 1.373 GB, free: 138.2 MB / 0.5452 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03194/5.335, allocations: 12.81 MB / 1.386 GB, free: 133.8 MB / 0.5452 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004982/5.34, allocations: 0.7411 MB / 1.387 GB, free: 133.8 MB / 0.5452 GB Notification: Performance of SimCode: time 1.363e-06/5.34, allocations: 0 / 1.387 GB, free: 133.8 MB / 0.5452 GB Notification: Performance of Templates: time 3.37/8.71, allocations: 1.129 GB / 2.516 GB, free: 70.88 MB / 0.592 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Transformer -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe 2>&1)