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.004803/0.004803, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.392/1.392, allocations: 222.9 MB / 239.4 MB, free: 4.5 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.001614/0.001615, allocations: 188.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03488/0.03488, allocations: 8.802 MB / 348.7 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002919/0.002919, allocations: 87.84 kB / 467 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1164, allocations: 51.56 MB / 0.5064 GB, free: 6.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.2767/0.3931, allocations: 49.49 MB / 0.5547 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03389/0.4271, allocations: 12.89 MB / 0.5673 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01468/0.4418, allocations: 377.2 kB / 0.5676 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03592/0.4778, allocations: 13.9 MB / 0.5812 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02509/0.5029, allocations: 5.549 MB / 0.5866 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01299/0.516, allocations: 3.229 MB / 0.5898 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03974/0.5557, allocations: 24.22 MB / 0.6134 GB, free: 2.105 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0877/0.6435, allocations: 46.97 MB / 0.6593 GB, free: 2.848 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02326/0.6668, allocations: 12.64 MB / 0.6717 GB, free: 6.191 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02677/0.6936, allocations: 13.82 MB / 0.6852 GB, free: 8.324 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01248/0.7061, allocations: 3.625 MB / 0.6887 GB, free: 4.699 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01633/0.7225, allocations: 4.109 MB / 0.6927 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01458/0.7371, allocations: 7.299 MB / 0.6998 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0247/0.7618, allocations: 13.78 MB / 0.7133 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.5793/1.341, allocations: 48.79 MB / 0.7609 GB, free: 86.22 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 1.093e-05/1.341, allocations: 0 / 0.7609 GB, free: 86.22 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.194e-06/1.341, allocations: 1.594 kB / 0.7609 GB, free: 86.22 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001937/1.343, allocations: 0 / 0.7609 GB, free: 86.22 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.1637/1.507, allocations: 28.12 MB / 0.7884 GB, free: 71.89 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 6.514e-05/1.507, allocations: 11.34 kB / 0.7884 GB, free: 71.89 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02064/1.528, allocations: 2.984 MB / 0.7913 GB, free: 69.8 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09315/1.621, allocations: 14.05 MB / 0.805 GB, free: 60.5 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03768/1.659, allocations: 15.04 MB / 0.8197 GB, free: 46.13 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001645/1.66, allocations: 1.573 MB / 0.8213 GB, free: 44.57 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01484/1.675, allocations: 2.075 MB / 0.8233 GB, free: 42.52 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1022/1.777, allocations: 34.72 MB / 0.8572 GB, free: 7.734 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001188/1.779, allocations: 23.91 kB / 0.8572 GB, free: 7.711 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01216/1.791, allocations: 0.8551 MB / 0.858 GB, free: 6.879 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001104/1.792, allocations: 1.16 MB / 0.8592 GB, free: 5.719 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07966/1.872, allocations: 32.33 MB / 0.8908 GB, free: 5.379 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6169/2.488, allocations: 106.5 MB / 0.9948 GB, free: 158.1 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04056/2.529, allocations: 50.85 MB / 1.044 GB, free: 117.6 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01719/2.546, allocations: 9.793 MB / 1.054 GB, free: 112.7 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04534/2.592, allocations: 22.56 MB / 1.076 GB, free: 92.86 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/2.592, allocations: 129.9 kB / 1.076 GB, free: 92.72 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.244e-05/2.592, allocations: 4 kB / 1.076 GB, free: 92.71 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.0699/2.662, allocations: 39.91 MB / 1.115 GB, free: 52.43 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/2.662, allocations: 172.4 kB / 1.115 GB, free: 52.23 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01256/2.675, allocations: 8.36 MB / 1.123 GB, free: 43.88 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001968/2.677, allocations: 177.7 kB / 1.124 GB, free: 43.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.004451/2.681, allocations: 8.967 MB / 1.132 GB, free: 34.71 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004476/2.685, allocations: 3.204 MB / 1.136 GB, free: 31.55 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005168/2.691, allocations: 2.225 MB / 1.138 GB, free: 29.32 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.103e-05/2.691, allocations: 301.1 kB / 1.138 GB, free: 29.03 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01094/2.702, allocations: 6.245 MB / 1.144 GB, free: 22.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01093/2.713, allocations: 9.966 MB / 1.154 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02496/2.738, allocations: 17.23 MB / 1.171 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001611/2.738, allocations: 36 kB / 1.171 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.4329/3.171, allocations: 20.34 MB / 1.191 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001354/3.171, allocations: 54.61 kB / 1.191 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002826/3.171, allocations: 120.4 kB / 1.191 GB, free: 197.3 MB / 0.6075 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.003019/3.174, allocations: 0.9271 MB / 1.192 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01093/3.185, allocations: 2.41 MB / 1.194 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/3.196, allocations: 12.49 MB / 1.206 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/3.208, allocations: 0.6055 MB / 1.207 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003032/3.211, allocations: 0.5147 MB / 1.207 GB, free: 189.9 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): 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.01865/3.229, allocations: 7.919 MB / 1.215 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002747/3.232, allocations: 0.9534 MB / 1.216 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02885/3.261, allocations: 17.03 MB / 1.233 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.354e-05/3.261, allocations: 92.95 kB / 1.233 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001106/3.261, allocations: 40.41 kB / 1.233 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001755/3.262, allocations: 51.06 kB / 1.233 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07548/3.337, allocations: 35.83 MB / 1.268 GB, free: 149.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.972e-05/3.337, allocations: 4 kB / 1.268 GB, free: 149.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006692/3.344, allocations: 1.432 MB / 1.269 GB, free: 148.2 MB / 0.6075 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.002982/3.347, allocations: 0.9819 MB / 1.27 GB, free: 147.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001757/3.349, allocations: 200 kB / 1.27 GB, free: 147 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01381/3.362, allocations: 17.16 MB / 1.287 GB, free: 129 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/3.362, allocations: 7.938 kB / 1.287 GB, free: 129 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04466/3.407, allocations: 24.83 MB / 1.311 GB, free: 104.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008043/3.415, allocations: 2.289 MB / 1.314 GB, free: 102 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00379/3.419, allocations: 176 kB / 1.314 GB, free: 101.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00754/3.427, allocations: 499.5 kB / 1.314 GB, free: 101.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002298/3.429, allocations: 0.7874 MB / 1.315 GB, free: 100.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007168/3.43, allocations: 263.9 kB / 1.315 GB, free: 100.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.009481/3.439, allocations: 5.677 MB / 1.321 GB, free: 94.66 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.9e-07/3.439, allocations: 0 / 1.321 GB, free: 94.66 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0165/3.456, allocations: 3.475 MB / 1.324 GB, free: 91.2 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): 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.03657/3.492, allocations: 25.79 MB / 1.349 GB, free: 65.25 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02477/3.517, allocations: 16.14 MB / 1.365 GB, free: 49 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-05/3.517, allocations: 4 kB / 1.365 GB, free: 49 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01484/3.532, allocations: 8.759 MB / 1.374 GB, free: 40.12 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01648/3.548, allocations: 2.556 MB / 1.376 GB, free: 37.63 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5967/4.145, allocations: 128.5 MB / 1.502 GB, free: 155.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04006/4.185, allocations: 13.12 MB / 1.514 GB, free: 142.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01856/4.204, allocations: 3.998 MB / 1.518 GB, free: 138.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01975/4.224, allocations: 7.81 MB / 1.526 GB, free: 130.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.874e-06/4.224, allocations: 0 / 1.526 GB, free: 130.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7413/4.965, allocations: 280.9 MB / 1.8 GB, free: 67.29 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.39/40.36, allocations: 9.656 kB / 1.8 GB, free: 67.29 MB / 0.6075 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Transformer_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Transformer.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe 2>&1)