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.001114/0.001114, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 239.2 MB, free: 4.602 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.001556/0.001556, allocations: 188.5 kB / 289.5 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03429/0.03429, allocations: 8.791 MB / 348.5 MB, free: 4.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002563, allocations: 82.81 kB / 414.6 MB, free: 40.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1463, allocations: 51.57 MB / 466.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.05685/0.2032, allocations: 49.49 MB / 0.5035 GB, free: 9.141 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04114/0.2444, allocations: 12.89 MB / 0.5161 GB, free: 12.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01822/0.2627, allocations: 378.8 kB / 0.5165 GB, free: 11.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3301/0.5929, allocations: 13.79 MB / 0.53 GB, free: 6.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02698/0.6199, allocations: 5.426 MB / 0.5353 GB, free: 6.859 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01296/0.6328, allocations: 3.255 MB / 0.5384 GB, free: 6.789 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.04238/0.6752, allocations: 24.04 MB / 0.5619 GB, free: 6.582 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1033/0.7786, allocations: 47.34 MB / 0.6081 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0337/0.8123, allocations: 12.58 MB / 0.6204 GB, free: 7.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0305/0.8429, allocations: 13.87 MB / 0.634 GB, free: 9.699 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0133/0.8562, allocations: 3.625 MB / 0.6375 GB, free: 6.074 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02046/0.8767, allocations: 4.116 MB / 0.6415 GB, free: 1.984 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01573/0.8925, allocations: 7.293 MB / 0.6487 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03569/0.9282, allocations: 13.79 MB / 0.6621 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6054/1.534, allocations: 48.42 MB / 0.7094 GB, free: 78.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.216e-05/1.534, allocations: 5.5 kB / 0.7094 GB, free: 78.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.556e-06/1.534, allocations: 0 / 0.7094 GB, free: 78.14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.002075/1.536, allocations: 0 / 0.7094 GB, free: 78.14 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.1195/1.655, allocations: 27.67 MB / 0.7364 GB, free: 71.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.932e-05/1.655, allocations: 11.06 kB / 0.7364 GB, free: 71.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08001/1.736, allocations: 13.89 MB / 0.75 GB, free: 67.49 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04147/1.777, allocations: 14.59 MB / 0.7642 GB, free: 61.81 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003283/1.78, allocations: 1.575 MB / 0.7658 GB, free: 61.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0118/1.792, allocations: 2.088 MB / 0.7678 GB, free: 60.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.114/1.906, allocations: 34.71 MB / 0.8017 GB, free: 26.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001351/1.908, allocations: 33.23 kB / 0.8017 GB, free: 26.03 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01197/1.92, allocations: 0.859 MB / 0.8026 GB, free: 25.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001257/1.921, allocations: 1.154 MB / 0.8037 GB, free: 24.03 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07711/1.998, allocations: 32.31 MB / 0.8353 GB, free: 7.703 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4851/2.483, allocations: 107.6 MB / 0.9403 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04191/2.525, allocations: 50.86 MB / 0.99 GB, free: 141.5 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01538/2.541, allocations: 9.771 MB / 0.9995 GB, free: 141.4 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04509/2.586, allocations: 22.6 MB / 1.022 GB, free: 135.5 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/2.586, allocations: 138.2 kB / 1.022 GB, free: 135.4 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=894): time 1.242e-05/2.586, allocations: 0.8438 kB / 1.022 GB, free: 135.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=906): time 0.07789/2.664, allocations: 39.47 MB / 1.06 GB, free: 115.6 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/2.664, allocations: 170.6 kB / 1.06 GB, free: 115.5 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01646/2.68, allocations: 8.348 MB / 1.069 GB, free: 107.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.002381/2.683, allocations: 173.7 kB / 1.069 GB, free: 107.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005509/2.688, allocations: 8.681 MB / 1.077 GB, free: 98.34 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.004113/2.693, allocations: 3.062 MB / 1.08 GB, free: 95.3 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005293/2.698, allocations: 2.212 MB / 1.082 GB, free: 93.08 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.062e-05/2.698, allocations: 305.1 kB / 1.083 GB, free: 92.78 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009545/2.707, allocations: 6.24 MB / 1.089 GB, free: 86.54 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/2.72, allocations: 9.967 MB / 1.099 GB, free: 74.95 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02232/2.742, allocations: 17.23 MB / 1.115 GB, free: 56.03 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/2.742, allocations: 39.94 kB / 1.115 GB, free: 55.99 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03925/2.781, allocations: 20.3 MB / 1.135 GB, free: 35.58 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.145e-05/2.782, allocations: 56 kB / 1.135 GB, free: 35.53 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001639/2.782, allocations: 119.9 kB / 1.135 GB, free: 35.41 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.00254/2.784, allocations: 0.9422 MB / 1.136 GB, free: 34.46 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009099/2.793, allocations: 2.406 MB / 1.139 GB, free: 32.05 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008749/2.802, allocations: 12.49 MB / 1.151 GB, free: 18.87 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01055/2.813, allocations: 0.6125 MB / 1.151 GB, free: 18.26 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002569/2.815, allocations: 0.5117 MB / 1.152 GB, free: 17.75 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.01654/2.832, allocations: 7.916 MB / 1.16 GB, free: 9.812 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002867/2.835, allocations: 0.9069 MB / 1.161 GB, free: 8.895 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2783/3.113, allocations: 17.04 MB / 1.177 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-05/3.113, allocations: 94.7 kB / 1.177 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001251/3.113, allocations: 41.72 kB / 1.177 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002208/3.114, allocations: 46.73 kB / 1.177 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06814/3.182, allocations: 35.94 MB / 1.212 GB, free: 187.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-05/3.182, allocations: 5.656 kB / 1.212 GB, free: 187.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006599/3.188, allocations: 1.429 MB / 1.214 GB, free: 187.1 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.002929/3.191, allocations: 0.9823 MB / 1.215 GB, free: 186.8 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001532/3.193, allocations: 206.2 kB / 1.215 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01386/3.207, allocations: 17.17 MB / 1.232 GB, free: 173 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/3.207, allocations: 6.562 kB / 1.232 GB, free: 173 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04323/3.25, allocations: 24.76 MB / 1.256 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006767/3.257, allocations: 2.247 MB / 1.258 GB, free: 161.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003485/3.26, allocations: 175.8 kB / 1.258 GB, free: 161.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008356/3.269, allocations: 496.1 kB / 1.259 GB, free: 160.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002935/3.272, allocations: 0.7886 MB / 1.26 GB, free: 160.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001033/3.273, allocations: 259 kB / 1.26 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01097/3.284, allocations: 5.688 MB / 1.265 GB, free: 155.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 7.31e-07/3.284, allocations: 0 / 1.265 GB, free: 155.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0135/3.297, allocations: 3.473 MB / 1.269 GB, free: 151.9 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.002179/3.3, allocations: 470.7 kB / 1.269 GB, free: 151.6 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.07361/3.373, allocations: 36.15 MB / 1.305 GB, free: 115.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/3.373, allocations: 4 kB / 1.305 GB, free: 115.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01273/3.386, allocations: 8.755 MB / 1.313 GB, free: 107 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01575/3.402, allocations: 2.557 MB / 1.316 GB, free: 104.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07432/3.476, allocations: 38.54 MB / 1.353 GB, free: 65.96 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0252/3.501, allocations: 13.12 MB / 1.366 GB, free: 52.79 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.0116/3.513, allocations: 3.993 MB / 1.37 GB, free: 48.79 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002938/3.516, allocations: 0.6711 MB / 1.371 GB, free: 48.12 MB / 0.5763 GB Notification: Performance of SimCode: time 1.163e-06/3.516, allocations: 0 / 1.371 GB, free: 48.12 MB / 0.5763 GB Notification: Performance of Templates: time 0.4983/4.014, allocations: 154 MB / 1.521 GB, free: 98.27 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)