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.001489/0.001489, allocations: 107.8 kB / 16.41 MB, free: 6.465 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.548/1.548, allocations: 222.9 MB / 240.1 MB, free: 4.344 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.002559/0.002559, allocations: 196.4 kB / 290.4 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03456/0.03456, allocations: 8.802 MB / 349.3 MB, free: 4.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001714, allocations: 75.88 kB / 468.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1329, allocations: 51.57 MB / 0.5075 GB, free: 5.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.3758/0.5087, allocations: 49.48 MB / 0.5558 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03965/0.5484, allocations: 12.9 MB / 0.5684 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0167/0.5652, allocations: 381.9 kB / 0.5688 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0357/0.6009, allocations: 13.8 MB / 0.5823 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02476/0.6257, allocations: 5.44 MB / 0.5876 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01214/0.6379, allocations: 3.233 MB / 0.5907 GB, free: 8.324 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0369/0.6748, allocations: 24.21 MB / 0.6144 GB, free: 1.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0998/0.7746, allocations: 46.97 MB / 0.6602 GB, free: 2.613 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02754/0.8022, allocations: 12.64 MB / 0.6726 GB, free: 5.957 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0279/0.8302, allocations: 13.82 MB / 0.6861 GB, free: 8.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01255/0.8428, allocations: 3.625 MB / 0.6896 GB, free: 4.465 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01703/0.8598, allocations: 4.109 MB / 0.6936 GB, free: 368 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01703/0.8769, allocations: 7.295 MB / 0.7008 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.035/0.912, allocations: 13.78 MB / 0.7142 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.6515/1.563, allocations: 48.68 MB / 0.7618 GB, free: 86.53 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/1.564, allocations: 1.969 kB / 0.7618 GB, free: 86.53 MB / 0.5138 GB Notification: Performance of FrontEnd: time 4.188e-06/1.564, allocations: 7.047 kB / 0.7618 GB, free: 86.53 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.00227/1.566, allocations: 0 / 0.7618 GB, free: 86.53 MB / 0.5138 GB 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.1241/1.69, allocations: 27.61 MB / 0.7887 GB, free: 72.58 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/1.69, allocations: 11.44 kB / 0.7887 GB, free: 72.58 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07803/1.768, allocations: 13.94 MB / 0.8023 GB, free: 64.17 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03746/1.806, allocations: 14.98 MB / 0.817 GB, free: 49.85 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001584/1.807, allocations: 1.577 MB / 0.8185 GB, free: 48.29 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01392/1.821, allocations: 2.07 MB / 0.8205 GB, free: 46.24 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1161/1.937, allocations: 34.72 MB / 0.8544 GB, free: 11.46 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001161/1.938, allocations: 31.7 kB / 0.8545 GB, free: 11.43 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01278/1.951, allocations: 0.859 MB / 0.8553 GB, free: 10.59 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00114/1.952, allocations: 1.153 MB / 0.8564 GB, free: 9.434 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08986/2.042, allocations: 32.33 MB / 0.888 GB, free: 9.102 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5547/2.597, allocations: 106.2 MB / 0.9918 GB, free: 155.5 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0407/2.638, allocations: 50.86 MB / 1.041 GB, free: 117.6 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01585/2.654, allocations: 9.797 MB / 1.051 GB, free: 113.9 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04762/2.701, allocations: 22.52 MB / 1.073 GB, free: 96.46 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001068/2.702, allocations: 129.9 kB / 1.073 GB, free: 96.32 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.113e-05/2.702, allocations: 0 / 1.073 GB, free: 96.32 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.088/2.79, allocations: 39.47 MB / 1.112 GB, free: 56.43 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/2.79, allocations: 176.5 kB / 1.112 GB, free: 56.24 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01933/2.809, allocations: 8.344 MB / 1.12 GB, free: 47.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.002311/2.811, allocations: 173.7 kB / 1.12 GB, free: 47.73 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005843/2.817, allocations: 8.691 MB / 1.129 GB, free: 38.98 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004214/2.822, allocations: 3.046 MB / 1.132 GB, free: 35.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009514/2.831, allocations: 2.204 MB / 1.134 GB, free: 33.75 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.308e-05/2.831, allocations: 309.1 kB / 1.134 GB, free: 33.45 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0114/2.843, allocations: 6.245 MB / 1.14 GB, free: 27.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01486/2.857, allocations: 9.962 MB / 1.15 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02584/2.883, allocations: 17.24 MB / 1.167 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002307/2.884, allocations: 32 kB / 1.167 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.4087/3.292, allocations: 20.29 MB / 1.187 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/3.292, allocations: 61.31 kB / 1.187 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002276/3.293, allocations: 117.7 kB / 1.187 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01395/3.307, allocations: 4.328 MB / 1.191 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01088/3.318, allocations: 2.412 MB / 1.193 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05066/3.368, allocations: 40.85 MB / 1.233 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/3.38, allocations: 0.6097 MB / 1.234 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003508/3.384, allocations: 0.5115 MB / 1.234 GB, free: 174.5 MB / 0.6075 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.02248/3.406, allocations: 7.922 MB / 1.242 GB, free: 170.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005442/3.412, allocations: 0.9049 MB / 1.243 GB, free: 170.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03397/3.446, allocations: 17.02 MB / 1.26 GB, free: 156.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.285e-05/3.446, allocations: 88 kB / 1.26 GB, free: 156.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.05e-05/3.446, allocations: 49.75 kB / 1.26 GB, free: 156.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002187/3.446, allocations: 45.75 kB / 1.26 GB, free: 156.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0769/3.523, allocations: 35.82 MB / 1.295 GB, free: 122.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.009e-05/3.523, allocations: 10.06 kB / 1.295 GB, free: 122.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006771/3.53, allocations: 1.424 MB / 1.296 GB, free: 120.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0129/3.543, allocations: 4.334 MB / 1.3 GB, free: 116.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002124/3.545, allocations: 211.9 kB / 1.301 GB, free: 116.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04612/3.591, allocations: 43 MB / 1.343 GB, free: 72.56 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.259e-06/3.591, allocations: 12.16 kB / 1.343 GB, free: 72.55 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04013/3.632, allocations: 24.79 MB / 1.367 GB, free: 47.83 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00743/3.639, allocations: 2.243 MB / 1.369 GB, free: 45.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004177/3.643, allocations: 176 kB / 1.369 GB, free: 45.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008385/3.652, allocations: 491.5 kB / 1.37 GB, free: 44.91 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00328/3.655, allocations: 0.6998 MB / 1.37 GB, free: 44.21 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001719/3.657, allocations: 259.9 kB / 1.37 GB, free: 43.96 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01202/3.669, allocations: 5.693 MB / 1.376 GB, free: 38.28 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4e-07/3.669, allocations: 0 / 1.376 GB, free: 38.28 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.02003/3.689, allocations: 3.797 MB / 1.38 GB, free: 34.48 MB / 0.6075 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.002945/3.692, allocations: 478.2 kB / 1.38 GB, free: 34.04 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02913/3.721, allocations: 17.23 MB / 1.397 GB, free: 16.69 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/3.721, allocations: 0 / 1.397 GB, free: 16.69 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.3348/4.056, allocations: 9.848 MB / 1.407 GB, free: 190.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01973/4.076, allocations: 2.56 MB / 1.409 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08788/4.164, allocations: 37.69 MB / 1.446 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02625/4.19, allocations: 12.81 MB / 1.458 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004296/4.194, allocations: 0.7493 MB / 1.459 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of SimCode: time 2.194e-06/4.194, allocations: 0 / 1.459 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of Templates: time 2.732/6.926, allocations: 1.131 GB / 2.59 GB, free: 204.6 MB / 0.6388 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)