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: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Transformer,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Transformer,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.254/1.254, allocations: 222.9 MB / 238.9 MB, free: 4.789 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.001222/0.001222, allocations: 195.6 kB / 289.1 MB, free: 2.531 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03323/0.03323, allocations: 8.793 MB / 348.1 MB, free: 4.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 74.09 kB / 413.9 MB, free: 40.49 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07208/0.07351, allocations: 51.56 MB / 465.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.04437/0.1179, allocations: 48.58 MB / 0.502 GB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02468/0.1426, allocations: 12.74 MB / 0.5145 GB, free: 13.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008781/0.1514, allocations: 362.8 kB / 0.5148 GB, free: 13.49 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02807/0.1795, allocations: 12.98 MB / 0.5275 GB, free: 492 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1936/0.3731, allocations: 4.973 MB / 0.5323 GB, free: 6.879 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008941/0.3821, allocations: 3.015 MB / 0.5353 GB, free: 6.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0291/0.4112, allocations: 24.7 MB / 0.5594 GB, free: 6.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06106/0.4723, allocations: 38.7 MB / 0.5972 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02172/0.4941, allocations: 10.66 MB / 0.6076 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02212/0.5162, allocations: 13.09 MB / 0.6204 GB, free: 6.996 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008022/0.5243, allocations: 2.301 MB / 0.6226 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01422/0.5385, allocations: 2.794 MB / 0.6254 GB, free: 1.953 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0101/0.5487, allocations: 5.898 MB / 0.6311 GB, free: 12.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02939/0.5781, allocations: 12.38 MB / 0.6432 GB, free: 15.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05108/0.6292, allocations: 47.49 MB / 0.6896 GB, free: 1.227 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.6292, allocations: 0 / 0.6896 GB, free: 1.227 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.6292, allocations: 3.938 kB / 0.6896 GB, free: 1.223 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001263/0.6305, allocations: 0 / 0.6896 GB, free: 1.223 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.459/1.089, allocations: 27.65 MB / 0.7166 GB, free: 136.1 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/1.09, allocations: 9.969 kB / 0.7166 GB, free: 136.1 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01086/1.1, allocations: 2.987 MB / 0.7195 GB, free: 134.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07217/1.173, allocations: 13.89 MB / 0.7331 GB, free: 130.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02764/1.2, allocations: 14.54 MB / 0.7473 GB, free: 120.9 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001381/1.202, allocations: 1.58 MB / 0.7488 GB, free: 120.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007971/1.21, allocations: 2.078 MB / 0.7509 GB, free: 119.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08093/1.291, allocations: 34.71 MB / 0.7848 GB, free: 88.56 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000752/1.291, allocations: 35.67 kB / 0.7848 GB, free: 88.53 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005978/1.297, allocations: 0.8595 MB / 0.7856 GB, free: 87.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00088/1.298, allocations: 1.149 MB / 0.7868 GB, free: 86.54 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05846/1.357, allocations: 32.31 MB / 0.8183 GB, free: 54.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6027/1.959, allocations: 107.6 MB / 0.9234 GB, free: 108.4 MB / 0.5139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03419/1.994, allocations: 50.87 MB / 0.9731 GB, free: 73.83 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01368/2.007, allocations: 9.766 MB / 0.9826 GB, free: 73.66 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03589/2.043, allocations: 22.61 MB / 1.005 GB, free: 67.24 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.74e-05/2.043, allocations: 127.6 kB / 1.005 GB, free: 67.13 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=894): time 9.968e-06/2.043, allocations: 0 / 1.005 GB, free: 67.13 MB / 0.5139 GB Notification: Performance of matching and sorting (n=906): time 0.06437/2.108, allocations: 39.48 MB / 1.043 GB, free: 44.09 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/2.108, allocations: 170.9 kB / 1.044 GB, free: 43.99 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01089/2.119, allocations: 8.345 MB / 1.052 GB, free: 36.33 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001551/2.12, allocations: 169.7 kB / 1.052 GB, free: 36.16 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003819/2.124, allocations: 8.685 MB / 1.06 GB, free: 27.42 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.003122/2.127, allocations: 3.053 MB / 1.063 GB, free: 24.39 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003345/2.131, allocations: 2.208 MB / 1.065 GB, free: 22.17 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 3.929e-05/2.131, allocations: 301.1 kB / 1.066 GB, free: 21.88 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007551/2.138, allocations: 6.241 MB / 1.072 GB, free: 15.63 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009566/2.148, allocations: 9.97 MB / 1.082 GB, free: 4.02 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02493/2.173, allocations: 17.23 MB / 1.098 GB, free: 1.098 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000126/2.173, allocations: 32 kB / 1.098 GB, free: 1.066 MB / 0.5295 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.2704/2.443, allocations: 20.3 MB / 1.118 GB, free: 161.4 MB / 0.5452 GB Notification: Performance of prepare postOptimizeDAE: time 9.877e-05/2.444, allocations: 58.91 kB / 1.118 GB, free: 161.4 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000239/2.444, allocations: 120.6 kB / 1.118 GB, free: 161.4 MB / 0.5452 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.003052/2.447, allocations: 0.9292 MB / 1.119 GB, free: 161.3 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0101/2.457, allocations: 2.41 MB / 1.122 GB, free: 161.3 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/2.467, allocations: 11.52 MB / 1.133 GB, free: 154.8 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009399/2.477, allocations: 0.6031 MB / 1.134 GB, free: 154.8 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002987/2.48, allocations: 0.512 MB / 1.134 GB, free: 154.8 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): 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.01747/2.497, allocations: 7.93 MB / 1.142 GB, free: 154.2 MB / 0.5452 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002283/2.499, allocations: 0.9038 MB / 1.143 GB, free: 154.2 MB / 0.5452 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02653/2.526, allocations: 17.04 MB / 1.159 GB, free: 147.5 MB / 0.5452 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.086e-05/2.526, allocations: 90.78 kB / 1.159 GB, free: 147.5 MB / 0.5452 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.929e-05/2.526, allocations: 43.5 kB / 1.159 GB, free: 147.5 MB / 0.5452 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000129/2.526, allocations: 45.14 kB / 1.159 GB, free: 147.5 MB / 0.5452 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06351/2.59, allocations: 35.95 MB / 1.195 GB, free: 132 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.828e-05/2.59, allocations: 7.188 kB / 1.195 GB, free: 132 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006083/2.596, allocations: 1.427 MB / 1.196 GB, free: 131.7 MB / 0.5452 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.002981/2.599, allocations: 0.9843 MB / 1.197 GB, free: 131.1 MB / 0.5452 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001449/2.6, allocations: 204.6 kB / 1.197 GB, free: 131 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01192/2.612, allocations: 15.74 MB / 1.212 GB, free: 117.4 MB / 0.5452 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/2.612, allocations: 15.41 kB / 1.213 GB, free: 117.4 MB / 0.5452 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03382/2.646, allocations: 24.77 MB / 1.237 GB, free: 93.04 MB / 0.5452 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005666/2.652, allocations: 2.235 MB / 1.239 GB, free: 91.26 MB / 0.5452 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002554/2.654, allocations: 176 kB / 1.239 GB, free: 91.09 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007123/2.662, allocations: 495.5 kB / 1.24 GB, free: 90.61 MB / 0.5452 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002544/2.664, allocations: 0.7949 MB / 1.24 GB, free: 89.81 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007745/2.665, allocations: 256 kB / 1.241 GB, free: 89.56 MB / 0.5452 GB Notification: Performance of sorting global known variables: time 0.009384/2.674, allocations: 5.681 MB / 1.246 GB, free: 83.89 MB / 0.5452 GB Notification: Performance of sort global known variables: time 9.31e-07/2.674, allocations: 4.109 kB / 1.246 GB, free: 83.89 MB / 0.5452 GB Notification: Performance of remove unused functions: time 0.01451/2.689, allocations: 3.472 MB / 1.249 GB, free: 80.42 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): 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.03777/2.727, allocations: 25.72 MB / 1.275 GB, free: 54.99 MB / 0.5452 GB Notification: Performance of simCode: created initialization part: time 0.0233/2.75, allocations: 16.08 MB / 1.29 GB, free: 38.8 MB / 0.5452 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/2.75, allocations: 4 kB / 1.29 GB, free: 38.8 MB / 0.5452 GB Notification: Performance of simCode: created simulation system equations: time 0.01139/2.761, allocations: 8.76 MB / 1.299 GB, free: 29.94 MB / 0.5452 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01067/2.772, allocations: 2.415 MB / 1.301 GB, free: 27.56 MB / 0.5452 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4674/3.239, allocations: 187.4 MB / 1.484 GB, free: 33.93 MB / 0.5452 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01935/3.259, allocations: 13.12 MB / 1.497 GB, free: 20.77 MB / 0.5452 GB Notification: Performance of simCode: alias equations: time 0.01122/3.27, allocations: 3.993 MB / 1.501 GB, free: 16.83 MB / 0.5452 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01097/3.281, allocations: 7.806 MB / 1.509 GB, free: 9.02 MB / 0.5452 GB Notification: Performance of SimCode: time 9.62e-07/3.281, allocations: 0 / 1.509 GB, free: 9.02 MB / 0.5452 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7534/4.034, allocations: 282.6 MB / 1.785 GB, free: 137.7 MB / 0.5608 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/4.035, allocations: 263 kB / 1.785 GB, free: 137.4 MB / 0.5608 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.23/11.27, allocations: 0 / 1.785 GB, free: 137.4 MB / 0.5608 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Transformer.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe 2>&1)