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.001043/0.001043, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.471/1.471, allocations: 223.2 MB / 238.9 MB, free: 5.469 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.001132/0.001132, allocations: 183.6 kB / 290.2 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03287/0.03287, allocations: 8.8 MB / 350.1 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004156/0.0004157, allocations: 10 kB / 416.4 MB, free: 41.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1151, allocations: 52.56 MB / 469 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.0404/0.1556, allocations: 39.55 MB / 0.4966 GB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03103/0.1866, allocations: 12.5 MB / 0.5088 GB, free: 5.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01427/0.201, allocations: 322.9 kB / 0.5091 GB, free: 5.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01515/0.2161, allocations: 2.631 MB / 0.5117 GB, free: 3.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02541/0.2416, allocations: 4.582 MB / 0.5162 GB, free: 14.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01269/0.2543, allocations: 2.209 MB / 0.5183 GB, free: 12.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3516/0.6059, allocations: 18.52 MB / 0.5364 GB, free: 9.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07784/0.6838, allocations: 36.2 MB / 0.5718 GB, free: 4.664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01717/0.701, allocations: 8.239 MB / 0.5798 GB, free: 3.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01844/0.7195, allocations: 9.268 MB / 0.5889 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008271/0.7278, allocations: 1.402 MB / 0.5902 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01268/0.7405, allocations: 1.783 MB / 0.592 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01042/0.751, allocations: 4.41 MB / 0.5963 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01311/0.7641, allocations: 4.597 MB / 0.6008 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04947/0.8136, allocations: 41.07 MB / 0.6409 GB, free: 4.379 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8137, allocations: 0 / 0.6409 GB, free: 4.379 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.8137, allocations: 0 / 0.6409 GB, free: 4.379 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001518/0.8152, allocations: 4 kB / 0.6409 GB, free: 4.375 MB / 414.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.07973/0.8949, allocations: 23.02 MB / 0.6634 GB, free: 13.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.895, allocations: 8.828 kB / 0.6634 GB, free: 13.53 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0783/0.9733, allocations: 13.89 MB / 0.6769 GB, free: 15.76 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.041/1.014, allocations: 14.38 MB / 0.691 GB, free: 1.504 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002129/1.017, allocations: 1.579 MB / 0.6925 GB, free: 15.94 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01163/1.028, allocations: 2.075 MB / 0.6945 GB, free: 13.89 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6294/1.658, allocations: 34.38 MB / 0.7281 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001249/1.659, allocations: 32.31 kB / 0.7281 GB, free: 102.7 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01015/1.669, allocations: 0.8593 MB / 0.729 GB, free: 102.6 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002224/1.671, allocations: 1.154 MB / 0.7301 GB, free: 102.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08078/1.752, allocations: 32.19 MB / 0.7615 GB, free: 87.89 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2142/1.966, allocations: 107.9 MB / 0.8669 GB, free: 4.156 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5885/2.555, allocations: 50.77 MB / 0.9165 GB, free: 145.2 MB / 0.5295 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06702/2.622, allocations: 21.56 MB / 0.9375 GB, free: 144.1 MB / 0.5295 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/2.622, allocations: 134.7 kB / 0.9377 GB, free: 144.1 MB / 0.5295 GB Notification: Performance of pre-optimization done (n=906): time 4.51e-05/2.622, allocations: 0 / 0.9377 GB, free: 144.1 MB / 0.5295 GB Notification: Performance of matching and sorting (n=918): time 0.1428/2.765, allocations: 39.88 MB / 0.9766 GB, free: 125.8 MB / 0.5295 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/2.765, allocations: 170.9 kB / 0.9768 GB, free: 125.7 MB / 0.5295 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.022/2.787, allocations: 8.229 MB / 0.9848 GB, free: 122.7 MB / 0.5295 GB Notification: Performance of collectPreVariables (initialization): time 0.002319/2.79, allocations: 176.3 kB / 0.985 GB, free: 122.6 MB / 0.5295 GB Notification: Performance of collectInitialEqns (initialization): time 0.007514/2.797, allocations: 8.669 MB / 0.9934 GB, free: 116.1 MB / 0.5295 GB Notification: Performance of collectInitialBindings (initialization): time 0.004653/2.802, allocations: 3.092 MB / 0.9965 GB, free: 113.7 MB / 0.5295 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002493/2.805, allocations: 238.2 kB / 0.9967 GB, free: 113.5 MB / 0.5295 GB Notification: Performance of setup shared object (initialization): time 0.00127/2.806, allocations: 0.7784 MB / 0.9974 GB, free: 113 MB / 0.5295 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/2.817, allocations: 6.273 MB / 1.004 GB, free: 110.6 MB / 0.5295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01505/2.832, allocations: 9.937 MB / 1.013 GB, free: 103.6 MB / 0.5295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01518/2.847, allocations: 8.344 MB / 1.021 GB, free: 98.04 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000239/2.848, allocations: 32 kB / 1.021 GB, free: 98 MB / 0.5295 GB Notification: Performance of matching and sorting (n=1494) (initialization): time 0.04583/2.893, allocations: 20.36 MB / 1.041 GB, free: 77.82 MB / 0.5295 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002237/2.894, allocations: 52 kB / 1.041 GB, free: 77.77 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002561/2.894, allocations: 120 kB / 1.041 GB, free: 77.65 MB / 0.5295 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= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/2.897, allocations: 0.9463 MB / 1.042 GB, free: 76.7 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01019/2.907, allocations: 2.422 MB / 1.045 GB, free: 74.27 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009746/2.917, allocations: 11.73 MB / 1.056 GB, free: 61.9 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01131/2.928, allocations: 0.6126 MB / 1.057 GB, free: 61.29 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002969/2.931, allocations: 0.5225 MB / 1.057 GB, free: 60.77 MB / 0.5295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 529 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1240): * Single equations (assignments): 1233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0175/2.949, allocations: 7.921 MB / 1.065 GB, free: 52.84 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004675/2.953, allocations: 0.9069 MB / 1.066 GB, free: 51.92 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0374/2.991, allocations: 17.18 MB / 1.083 GB, free: 34.6 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/2.991, allocations: 96 kB / 1.083 GB, free: 34.5 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001867/2.991, allocations: 40 kB / 1.083 GB, free: 34.46 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003133/2.992, allocations: 43.83 kB / 1.083 GB, free: 34.42 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4119/3.403, allocations: 36.13 MB / 1.118 GB, free: 134.1 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.496e-05/3.404, allocations: 6.875 kB / 1.118 GB, free: 134.1 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007289/3.411, allocations: 1.45 MB / 1.12 GB, free: 134.1 MB / 0.5295 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= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.003507/3.414, allocations: 0.9529 MB / 1.121 GB, free: 134 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001857/3.416, allocations: 209.2 kB / 1.121 GB, free: 134 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/3.431, allocations: 15.94 MB / 1.136 GB, free: 124.8 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/3.431, allocations: 6.625 kB / 1.136 GB, free: 124.8 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0421/3.473, allocations: 26.16 MB / 1.162 GB, free: 116.1 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007192/3.48, allocations: 2.256 MB / 1.164 GB, free: 115.3 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002755/3.483, allocations: 178.8 kB / 1.164 GB, free: 115.2 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006254/3.489, allocations: 0.5067 MB / 1.165 GB, free: 115.1 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002224/3.491, allocations: 0.7906 MB / 1.166 GB, free: 115 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001129/3.492, allocations: 264 kB / 1.166 GB, free: 114.9 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.01092/3.503, allocations: 5.575 MB / 1.171 GB, free: 112.9 MB / 0.5295 GB Notification: Performance of sort global known variables: time 6.91e-07/3.503, allocations: 0 / 1.171 GB, free: 112.9 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.01538/3.519, allocations: 3.474 MB / 1.175 GB, free: 112.6 MB / 0.5295 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 (715): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002877/3.522, allocations: 436.2 kB / 1.175 GB, free: 112.3 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.02507/3.547, allocations: 16.2 MB / 1.191 GB, free: 105.8 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/3.547, allocations: 5.75 kB / 1.191 GB, free: 105.8 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.01231/3.559, allocations: 8.827 MB / 1.199 GB, free: 101.9 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01163/3.571, allocations: 2.313 MB / 1.202 GB, free: 101.1 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06535/3.636, allocations: 45.59 MB / 1.246 GB, free: 60.73 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01476/3.651, allocations: 13.46 MB / 1.259 GB, free: 47.64 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.0143/3.665, allocations: 4.001 MB / 1.263 GB, free: 43.62 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004094/3.669, allocations: 0.6595 MB / 1.264 GB, free: 42.96 MB / 0.5295 GB Notification: Performance of SimCode: time 1.332e-06/3.669, allocations: 0 / 1.264 GB, free: 42.96 MB / 0.5295 GB Notification: Performance of Templates: time 0.4809/4.15, allocations: 146.4 MB / 1.407 GB, free: 96 MB / 0.5452 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: