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.000941/0.0009409, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.391/1.391, allocations: 222.9 MB / 239 MB, free: 4.605 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.00166/0.00166, allocations: 188.5 kB / 289.3 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03361/0.03361, allocations: 8.79 MB / 348.2 MB, free: 4.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 74.95 kB / 414 MB, free: 40.55 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.123, allocations: 51.56 MB / 465.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.04841/0.1715, allocations: 48.58 MB / 0.5021 GB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03174/0.2033, allocations: 12.71 MB / 0.5145 GB, free: 13.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0138/0.2171, allocations: 362.8 kB / 0.5149 GB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03129/0.2485, allocations: 13 MB / 0.5276 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3061/0.5546, allocations: 4.901 MB / 0.5323 GB, free: 6.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01147/0.566, allocations: 3.002 MB / 0.5353 GB, free: 6.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.03612/0.6022, allocations: 24.27 MB / 0.559 GB, free: 6.281 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1022/0.7044, allocations: 53.78 MB / 0.6115 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03253/0.737, allocations: 12.58 MB / 0.6238 GB, free: 6.496 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02755/0.7646, allocations: 13.97 MB / 0.6374 GB, free: 8.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01457/0.7792, allocations: 3.621 MB / 0.641 GB, free: 5.309 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02258/0.8018, allocations: 4.111 MB / 0.645 GB, free: 1.223 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01648/0.8183, allocations: 7.299 MB / 0.6521 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.04024/0.8586, allocations: 13.78 MB / 0.6656 GB, free: 12.29 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6465/1.505, allocations: 48.39 MB / 0.7128 GB, free: 78.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/1.505, allocations: 1.75 kB / 0.7128 GB, free: 78.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.256e-06/1.505, allocations: 0 / 0.7128 GB, free: 78.38 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.002106/1.507, allocations: 2.5 kB / 0.7128 GB, free: 78.38 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: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.118/1.625, allocations: 27.66 MB / 0.7398 GB, free: 71.49 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/1.625, allocations: 9.812 kB / 0.7398 GB, free: 71.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07779/1.703, allocations: 13.89 MB / 0.7534 GB, free: 67.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04366/1.747, allocations: 14.53 MB / 0.7676 GB, free: 62.32 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001887/1.749, allocations: 1.58 MB / 0.7691 GB, free: 61.61 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01246/1.761, allocations: 2.078 MB / 0.7712 GB, free: 60.92 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1041/1.865, allocations: 34.72 MB / 0.8051 GB, free: 26.76 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00154/1.867, allocations: 33.86 kB / 0.8051 GB, free: 26.73 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01216/1.879, allocations: 0.8578 MB / 0.8059 GB, free: 25.89 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001229/1.88, allocations: 1.151 MB / 0.8071 GB, free: 24.74 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07572/1.956, allocations: 32.32 MB / 0.8386 GB, free: 8.41 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4989/2.455, allocations: 107.6 MB / 0.9437 GB, free: 176.7 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0393/2.495, allocations: 50.85 MB / 0.9934 GB, free: 142.1 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01587/2.51, allocations: 9.775 MB / 1.003 GB, free: 141.9 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04761/2.558, allocations: 22.61 MB / 1.025 GB, free: 136 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.818e-05/2.558, allocations: 132.2 kB / 1.025 GB, free: 135.9 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=894): time 1.207e-05/2.558, allocations: 0 / 1.025 GB, free: 135.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=906): time 0.08137/2.64, allocations: 39.47 MB / 1.064 GB, free: 116.2 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.758e-05/2.64, allocations: 171.5 kB / 1.064 GB, free: 116.1 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01603/2.656, allocations: 8.349 MB / 1.072 GB, free: 108.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.002159/2.658, allocations: 173.7 kB / 1.072 GB, free: 108 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.00573/2.664, allocations: 8.685 MB / 1.081 GB, free: 99.24 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.004507/2.668, allocations: 3.049 MB / 1.084 GB, free: 96.22 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006201/2.675, allocations: 2.208 MB / 1.086 GB, free: 94 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 6.809e-05/2.675, allocations: 317.1 kB / 1.086 GB, free: 93.69 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01059/2.685, allocations: 6.241 MB / 1.092 GB, free: 87.44 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01521/2.7, allocations: 9.964 MB / 1.102 GB, free: 75.84 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02609/2.727, allocations: 17.23 MB / 1.119 GB, free: 56.92 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002081/2.727, allocations: 32 kB / 1.119 GB, free: 56.89 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.04392/2.771, allocations: 20.3 MB / 1.139 GB, free: 36.48 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002498/2.771, allocations: 56 kB / 1.139 GB, free: 36.42 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002923/2.771, allocations: 119.9 kB / 1.139 GB, free: 36.3 MB / 0.5763 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.003285/2.775, allocations: 0.9327 MB / 1.14 GB, free: 35.36 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01064/2.785, allocations: 2.414 MB / 1.142 GB, free: 32.94 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/2.796, allocations: 12.49 MB / 1.154 GB, free: 19.76 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01279/2.809, allocations: 0.6047 MB / 1.155 GB, free: 19.16 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003278/2.812, allocations: 0.5117 MB / 1.155 GB, free: 18.64 MB / 0.5763 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): 2 * 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): 2 systems {(2,100.0%), (204,1.3%)} * 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 {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01968/2.832, allocations: 7.925 MB / 1.163 GB, free: 10.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003077/2.835, allocations: 0.9108 MB / 1.164 GB, free: 9.781 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3425/3.177, allocations: 17.03 MB / 1.181 GB, free: 199.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/3.177, allocations: 91.86 kB / 1.181 GB, free: 199.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001424/3.177, allocations: 44.81 kB / 1.181 GB, free: 199.4 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002366/3.178, allocations: 47.53 kB / 1.181 GB, free: 199.4 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07753/3.255, allocations: 35.94 MB / 1.216 GB, free: 187.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.003e-05/3.255, allocations: 7.172 kB / 1.216 GB, free: 187.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006564/3.262, allocations: 1.434 MB / 1.217 GB, free: 187.3 MB / 0.5763 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.003213/3.265, allocations: 0.9732 MB / 1.218 GB, free: 187.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002072/3.267, allocations: 208.7 kB / 1.218 GB, free: 186.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01288/3.28, allocations: 17.16 MB / 1.235 GB, free: 173.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/3.28, allocations: 10.5 kB / 1.235 GB, free: 173.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03983/3.32, allocations: 24.77 MB / 1.259 GB, free: 163.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006886/3.327, allocations: 2.239 MB / 1.262 GB, free: 162.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003685/3.331, allocations: 178 kB / 1.262 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007781/3.338, allocations: 496.5 kB / 1.262 GB, free: 161.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002836/3.341, allocations: 0.7888 MB / 1.263 GB, free: 161.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001177/3.342, allocations: 259.1 kB / 1.263 GB, free: 161.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.009544/3.352, allocations: 5.684 MB / 1.269 GB, free: 156.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.693e-06/3.352, allocations: 0 / 1.269 GB, free: 156.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01592/3.368, allocations: 3.482 MB / 1.272 GB, free: 153 MB / 0.5763 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): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(204,1.3%)} * 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): 7 systems {(1,1,100.0%), (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.002601/3.371, allocations: 464.9 kB / 1.273 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.07401/3.445, allocations: 36.14 MB / 1.308 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/3.445, allocations: 7.938 kB / 1.308 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01354/3.458, allocations: 8.763 MB / 1.316 GB, free: 108.1 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01603/3.474, allocations: 2.555 MB / 1.319 GB, free: 105.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0754/3.55, allocations: 47.37 MB / 1.365 GB, free: 58.18 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02643/3.576, allocations: 13.12 MB / 1.378 GB, free: 45 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01467/3.591, allocations: 3.989 MB / 1.382 GB, free: 41 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003532/3.595, allocations: 0.6634 MB / 1.383 GB, free: 40.34 MB / 0.5763 GB Notification: Performance of SimCode: time 9.92e-07/3.595, allocations: 0 / 1.383 GB, free: 40.34 MB / 0.5763 GB Notification: Performance of Templates: time 0.4644/4.059, allocations: 157 MB / 1.536 GB, free: 88.9 MB / 0.5763 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)