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.005768/0.005768, allocations: 100.8 kB / 15.73 MB, free: 6.445 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.521/1.521, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001573/0.001573, allocations: 196.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03713/0.03713, allocations: 8.8 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 75.88 kB / 467 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1267, allocations: 51.57 MB / 0.5064 GB, free: 6.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.3285/0.4552, allocations: 49.48 MB / 0.5547 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03558/0.4908, allocations: 12.89 MB / 0.5673 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0152/0.5061, allocations: 377.4 kB / 0.5676 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03597/0.5421, allocations: 13.81 MB / 0.5811 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02464/0.5668, allocations: 5.426 MB / 0.5864 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01444/0.5813, allocations: 3.235 MB / 0.5896 GB, free: 8.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03737/0.6187, allocations: 24.22 MB / 0.6132 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09396/0.7127, allocations: 46.97 MB / 0.6591 GB, free: 3.141 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02894/0.7417, allocations: 12.6 MB / 0.6714 GB, free: 6.531 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0287/0.7704, allocations: 13.82 MB / 0.6849 GB, free: 8.668 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01199/0.7825, allocations: 3.625 MB / 0.6884 GB, free: 5.043 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01491/0.7974, allocations: 4.109 MB / 0.6924 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01351/0.811, allocations: 7.295 MB / 0.6996 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.03071/0.8417, allocations: 13.78 MB / 0.713 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.6195/1.461, allocations: 48.79 MB / 0.7607 GB, free: 86.3 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/1.461, allocations: 1.844 kB / 0.7607 GB, free: 86.3 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.274e-06/1.461, allocations: 0 / 0.7607 GB, free: 86.3 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.002388/1.464, allocations: 1.125 kB / 0.7607 GB, free: 86.3 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.1224/1.586, allocations: 28.12 MB / 0.7881 GB, free: 72 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 6.858e-05/1.586, allocations: 9.469 kB / 0.7881 GB, free: 72 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01936/1.606, allocations: 2.984 MB / 0.7911 GB, free: 69.91 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07757/1.683, allocations: 14.05 MB / 0.8048 GB, free: 60.56 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04201/1.725, allocations: 15.03 MB / 0.8195 GB, free: 46.2 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001567/1.727, allocations: 1.578 MB / 0.821 GB, free: 44.64 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01379/1.741, allocations: 2.077 MB / 0.823 GB, free: 42.58 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1201/1.861, allocations: 34.71 MB / 0.8569 GB, free: 7.805 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001366/1.862, allocations: 31.45 kB / 0.857 GB, free: 7.777 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01398/1.876, allocations: 0.8559 MB / 0.8578 GB, free: 6.941 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001172/1.877, allocations: 1.155 MB / 0.8589 GB, free: 5.785 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0856/1.963, allocations: 32.32 MB / 0.8905 GB, free: 5.449 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5498/2.513, allocations: 106.5 MB / 0.9945 GB, free: 158 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04095/2.554, allocations: 50.85 MB / 1.044 GB, free: 117.5 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01694/2.571, allocations: 9.786 MB / 1.054 GB, free: 112.6 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05504/2.626, allocations: 22.57 MB / 1.076 GB, free: 92.93 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/2.626, allocations: 129.9 kB / 1.076 GB, free: 92.79 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.066e-05/2.626, allocations: 4 kB / 1.076 GB, free: 92.79 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.08311/2.709, allocations: 39.92 MB / 1.115 GB, free: 52.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.229e-05/2.709, allocations: 172.5 kB / 1.115 GB, free: 52.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01953/2.729, allocations: 8.364 MB / 1.123 GB, free: 43.95 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.00219/2.731, allocations: 173.7 kB / 1.123 GB, free: 43.77 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005143/2.736, allocations: 8.963 MB / 1.132 GB, free: 34.79 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004194/2.741, allocations: 3.207 MB / 1.135 GB, free: 31.62 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005538/2.746, allocations: 2.217 MB / 1.137 GB, free: 29.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.507e-05/2.746, allocations: 305.1 kB / 1.138 GB, free: 29.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01019/2.756, allocations: 6.241 MB / 1.144 GB, free: 22.85 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01545/2.772, allocations: 9.97 MB / 1.154 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02993/2.802, allocations: 17.23 MB / 1.17 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00017/2.802, allocations: 32 kB / 1.17 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.3984/3.201, allocations: 20.34 MB / 1.19 GB, free: 197 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/3.201, allocations: 62.92 kB / 1.19 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002695/3.201, allocations: 117.7 kB / 1.19 GB, free: 197 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.003059/3.204, allocations: 0.9248 MB / 1.191 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01216/3.216, allocations: 2.413 MB / 1.194 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/3.227, allocations: 12.51 MB / 1.206 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01165/3.239, allocations: 0.5999 MB / 1.206 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003407/3.242, allocations: 0.5158 MB / 1.207 GB, free: 189.7 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.0215/3.264, allocations: 7.92 MB / 1.215 GB, free: 186.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004189/3.268, allocations: 0.9529 MB / 1.216 GB, free: 186.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03404/3.302, allocations: 17.03 MB / 1.232 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.53e-05/3.302, allocations: 91.06 kB / 1.232 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001126/3.302, allocations: 41.88 kB / 1.232 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002419/3.302, allocations: 44.95 kB / 1.232 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0852/3.388, allocations: 35.81 MB / 1.267 GB, free: 149.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001051/3.388, allocations: 11.98 kB / 1.267 GB, free: 149.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007401/3.395, allocations: 1.43 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.003307/3.399, allocations: 0.9775 MB / 1.27 GB, free: 147.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002321/3.401, allocations: 203.9 kB / 1.27 GB, free: 147 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01379/3.415, allocations: 17.16 MB / 1.287 GB, free: 129.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/3.415, allocations: 11.94 kB / 1.287 GB, free: 129.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04766/3.462, allocations: 24.83 MB / 1.311 GB, free: 104.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009768/3.472, allocations: 2.288 MB / 1.313 GB, free: 102.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005476/3.478, allocations: 180 kB / 1.313 GB, free: 101.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009149/3.487, allocations: 495.5 kB / 1.314 GB, free: 101.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003523/3.49, allocations: 0.7913 MB / 1.315 GB, free: 100.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002224/3.493, allocations: 256 kB / 1.315 GB, free: 100.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0138/3.506, allocations: 5.689 MB / 1.32 GB, free: 94.71 MB / 0.6075 GB Notification: Performance of sort global known variables: time 5.71e-07/3.507, allocations: 0 / 1.32 GB, free: 94.71 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.02281/3.529, allocations: 3.462 MB / 1.324 GB, free: 91.25 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.0525/3.582, allocations: 25.79 MB / 1.349 GB, free: 65.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.03337/3.615, allocations: 16.15 MB / 1.365 GB, free: 49.05 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/3.615, allocations: 0 / 1.365 GB, free: 49.05 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01675/3.632, allocations: 8.764 MB / 1.373 GB, free: 40.18 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0234/3.656, allocations: 2.557 MB / 1.376 GB, free: 37.68 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.591/4.247, allocations: 128.5 MB / 1.501 GB, free: 155.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03078/4.277, allocations: 13.12 MB / 1.514 GB, free: 142.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01495/4.292, allocations: 3.994 MB / 1.518 GB, free: 138.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01744/4.31, allocations: 7.806 MB / 1.526 GB, free: 130.4 MB / 0.6075 GB Notification: Performance of SimCode: time 9.81e-07/4.31, allocations: 4 kB / 1.526 GB, free: 130.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.717/5.027, allocations: 280.9 MB / 1.8 GB, free: 67.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.06/40.08, allocations: 10.66 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)