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.001521/0.001521, 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.403/1.403, allocations: 222.9 MB / 239.3 MB, free: 4.633 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.001435/0.001436, allocations: 192.5 kB / 289.6 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03405/0.03405, allocations: 8.814 MB / 348.5 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002683/0.002683, allocations: 78.5 kB / 414.7 MB, free: 40.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1068, allocations: 51.56 MB / 466.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.05055/0.1574, allocations: 49.49 MB / 0.5037 GB, free: 9.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02805/0.1855, allocations: 12.89 MB / 0.5162 GB, free: 12.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01289/0.1984, allocations: 382.8 kB / 0.5166 GB, free: 11.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2341/0.4326, allocations: 13.78 MB / 0.5301 GB, free: 6.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01848/0.4511, allocations: 5.436 MB / 0.5354 GB, free: 6.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00953/0.4606, allocations: 3.24 MB / 0.5385 GB, free: 6.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02807/0.4887, allocations: 24.04 MB / 0.562 GB, free: 6.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07713/0.5659, allocations: 47.37 MB / 0.6083 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02896/0.5949, allocations: 12.58 MB / 0.6206 GB, free: 7.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02395/0.6189, allocations: 13.85 MB / 0.6341 GB, free: 9.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01251/0.6315, allocations: 3.625 MB / 0.6376 GB, free: 6.125 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01357/0.6451, allocations: 4.124 MB / 0.6417 GB, free: 2.027 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01152/0.6566, allocations: 7.295 MB / 0.6488 GB, free: 10.83 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02929/0.6859, allocations: 13.8 MB / 0.6623 GB, free: 13.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5054/1.191, allocations: 48.4 MB / 0.7095 GB, free: 77.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.677e-06/1.191, allocations: 0 / 0.7095 GB, free: 77.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.525e-06/1.191, allocations: 0 / 0.7095 GB, free: 77.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001646/1.193, allocations: 0 / 0.7095 GB, free: 77.53 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.09024/1.283, allocations: 27.67 MB / 0.7366 GB, free: 70.64 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.283, allocations: 9.75 kB / 0.7366 GB, free: 70.64 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01224/1.296, allocations: 2.986 MB / 0.7395 GB, free: 70.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.108/1.404, allocations: 13.9 MB / 0.7531 GB, free: 66.19 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04082/1.445, allocations: 14.58 MB / 0.7673 GB, free: 59.51 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002303/1.447, allocations: 1.579 MB / 0.7688 GB, free: 58.8 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01198/1.459, allocations: 2.079 MB / 0.7709 GB, free: 57.69 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09551/1.554, allocations: 34.72 MB / 0.8048 GB, free: 22.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009823/1.555, allocations: 33.39 kB / 0.8048 GB, free: 22.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01033/1.566, allocations: 0.8591 MB / 0.8056 GB, free: 22.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001008/1.567, allocations: 1.152 MB / 0.8068 GB, free: 20.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07045/1.637, allocations: 32.32 MB / 0.8383 GB, free: 4.555 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4685/2.106, allocations: 107.6 MB / 0.9434 GB, free: 176 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03951/2.145, allocations: 50.87 MB / 0.9931 GB, free: 141.4 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01447/2.16, allocations: 9.773 MB / 1.003 GB, free: 141.2 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04684/2.207, allocations: 22.61 MB / 1.025 GB, free: 134.7 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.884e-05/2.207, allocations: 128.1 kB / 1.025 GB, free: 134.6 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=894): time 1.259e-05/2.207, allocations: 4 kB / 1.025 GB, free: 134.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=906): time 0.0719/2.279, allocations: 39.47 MB / 1.063 GB, free: 112.8 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.489e-05/2.279, allocations: 172.5 kB / 1.064 GB, free: 112.6 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01578/2.295, allocations: 8.348 MB / 1.072 GB, free: 104.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001993/2.297, allocations: 173.7 kB / 1.072 GB, free: 104.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005138/2.302, allocations: 8.689 MB / 1.08 GB, free: 95.34 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.003799/2.306, allocations: 3.05 MB / 1.083 GB, free: 92.31 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004302/2.31, allocations: 2.212 MB / 1.085 GB, free: 90.09 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.068e-05/2.31, allocations: 305.1 kB / 1.086 GB, free: 89.79 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008612/2.319, allocations: 6.238 MB / 1.092 GB, free: 83.55 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/2.331, allocations: 9.957 MB / 1.102 GB, free: 71.95 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02009/2.351, allocations: 17.24 MB / 1.118 GB, free: 53.02 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-05/2.351, allocations: 35.94 kB / 1.118 GB, free: 52.99 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03319/2.384, allocations: 20.3 MB / 1.138 GB, free: 32.57 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/2.385, allocations: 56 kB / 1.138 GB, free: 32.52 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002797/2.385, allocations: 116 kB / 1.138 GB, free: 32.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.002676/2.388, allocations: 0.9387 MB / 1.139 GB, free: 31.45 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01045/2.398, allocations: 2.41 MB / 1.142 GB, free: 29.04 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009724/2.408, allocations: 12.5 MB / 1.154 GB, free: 15.86 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009914/2.418, allocations: 0.6048 MB / 1.154 GB, free: 15.25 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002155/2.42, allocations: 0.5117 MB / 1.155 GB, free: 14.74 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.01294/2.433, allocations: 7.923 MB / 1.163 GB, free: 6.801 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002426/2.435, allocations: 0.9069 MB / 1.164 GB, free: 5.883 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2693/2.705, allocations: 17.02 MB / 1.18 GB, free: 200.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.721e-05/2.705, allocations: 98.91 kB / 1.18 GB, free: 200.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001305/2.705, allocations: 43.69 kB / 1.18 GB, free: 200.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001933/2.705, allocations: 45.55 kB / 1.18 GB, free: 200.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07929/2.784, allocations: 35.94 MB / 1.216 GB, free: 187.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.819e-05/2.785, allocations: 7.875 kB / 1.216 GB, free: 187.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006882/2.791, allocations: 1.421 MB / 1.217 GB, free: 187.6 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.003583/2.795, allocations: 0.987 MB / 1.218 GB, free: 187.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002196/2.797, allocations: 207.5 kB / 1.218 GB, free: 187.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01501/2.812, allocations: 17.17 MB / 1.235 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.447e-06/2.812, allocations: 11.47 kB / 1.235 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04678/2.859, allocations: 24.77 MB / 1.259 GB, free: 160.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007071/2.866, allocations: 2.241 MB / 1.261 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004772/2.871, allocations: 175.8 kB / 1.261 GB, free: 159 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00841/2.879, allocations: 493.7 kB / 1.262 GB, free: 158.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003379/2.883, allocations: 0.7941 MB / 1.263 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00197/2.885, allocations: 260.3 kB / 1.263 GB, free: 158 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01377/2.899, allocations: 5.68 MB / 1.268 GB, free: 153.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.102e-06/2.899, allocations: 0 / 1.268 GB, free: 153.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01878/2.917, allocations: 3.477 MB / 1.272 GB, free: 149.7 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.04982/2.967, allocations: 25.71 MB / 1.297 GB, free: 124.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.08229/3.05, allocations: 36.14 MB / 1.332 GB, free: 88.13 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.169e-05/3.05, allocations: 4.938 kB / 1.332 GB, free: 88.12 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01596/3.066, allocations: 8.762 MB / 1.341 GB, free: 79.28 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0194/3.085, allocations: 2.553 MB / 1.343 GB, free: 76.84 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5126/3.598, allocations: 178.8 MB / 1.518 GB, free: 122.8 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0245/3.622, allocations: 13.12 MB / 1.531 GB, free: 109.8 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01623/3.639, allocations: 3.992 MB / 1.535 GB, free: 105.8 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01692/3.656, allocations: 7.81 MB / 1.542 GB, free: 98.02 MB / 0.5763 GB Notification: Performance of SimCode: time 1.463e-06/3.656, allocations: 0 / 1.542 GB, free: 98.02 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7031/4.359, allocations: 285.3 MB / 1.821 GB, free: 64.41 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/20.54, allocations: 13.67 kB / 1.821 GB, free: 64.41 MB / 0.5763 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)