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.00796/0.007968, allocations: 99.11 kB / 15.73 MB, free: 6.035 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.381/1.381, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001477/0.001477, allocations: 196.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03756/0.03756, allocations: 8.807 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 87.84 kB / 467 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1107, allocations: 51.55 MB / 0.5064 GB, free: 6.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.287/0.3978, allocations: 49.49 MB / 0.5547 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03224/0.4301, allocations: 12.89 MB / 0.5673 GB, free: 9.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01489/0.445, allocations: 381.5 kB / 0.5676 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03624/0.4813, allocations: 13.9 MB / 0.5812 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02317/0.5045, allocations: 5.544 MB / 0.5866 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01324/0.5178, allocations: 3.232 MB / 0.5898 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03638/0.5542, allocations: 24.23 MB / 0.6134 GB, free: 2.043 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08254/0.6368, allocations: 46.97 MB / 0.6593 GB, free: 2.789 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02408/0.6609, allocations: 12.64 MB / 0.6717 GB, free: 6.133 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02409/0.685, allocations: 13.82 MB / 0.6852 GB, free: 8.262 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01108/0.6962, allocations: 3.625 MB / 0.6887 GB, free: 4.637 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01595/0.7121, allocations: 4.109 MB / 0.6927 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01384/0.726, allocations: 7.291 MB / 0.6998 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.02785/0.7539, allocations: 13.78 MB / 0.7133 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.613/1.367, allocations: 48.79 MB / 0.7609 GB, free: 86.33 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 1.475e-05/1.367, allocations: 3.984 kB / 0.7609 GB, free: 86.33 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.675e-06/1.367, allocations: 0.8125 kB / 0.761 GB, free: 86.33 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.002136/1.369, allocations: 0 / 0.761 GB, free: 86.33 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.1137/1.483, allocations: 28.11 MB / 0.7884 GB, free: 71.98 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/1.483, allocations: 11.44 kB / 0.7884 GB, free: 71.98 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01718/1.5, allocations: 2.988 MB / 0.7913 GB, free: 69.89 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0745/1.575, allocations: 14.05 MB / 0.805 GB, free: 60.5 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03831/1.613, allocations: 15.04 MB / 0.8197 GB, free: 46.13 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00156/1.615, allocations: 1.569 MB / 0.8213 GB, free: 44.58 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01376/1.628, allocations: 2.078 MB / 0.8233 GB, free: 42.52 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1043/1.733, allocations: 34.71 MB / 0.8572 GB, free: 7.738 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001291/1.734, allocations: 27.89 kB / 0.8572 GB, free: 7.711 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01167/1.746, allocations: 0.8565 MB / 0.8581 GB, free: 6.875 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001043/1.747, allocations: 1.149 MB / 0.8592 GB, free: 5.723 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08317/1.83, allocations: 32.33 MB / 0.8908 GB, free: 5.379 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.531/2.361, allocations: 106.5 MB / 0.9948 GB, free: 158 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03853/2.4, allocations: 50.86 MB / 1.044 GB, free: 117.5 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01588/2.416, allocations: 9.788 MB / 1.054 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04815/2.464, allocations: 22.56 MB / 1.076 GB, free: 92.78 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/2.464, allocations: 129.9 kB / 1.076 GB, free: 92.64 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.175e-05/2.464, allocations: 4 kB / 1.076 GB, free: 92.64 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.07429/2.538, allocations: 39.91 MB / 1.115 GB, free: 52.35 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.593e-05/2.538, allocations: 176.4 kB / 1.115 GB, free: 52.15 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01429/2.553, allocations: 8.36 MB / 1.123 GB, free: 43.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.002283/2.555, allocations: 176.2 kB / 1.124 GB, free: 43.62 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005061/2.56, allocations: 8.972 MB / 1.132 GB, free: 34.63 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.003626/2.564, allocations: 3.203 MB / 1.136 GB, free: 31.47 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004227/2.568, allocations: 2.213 MB / 1.138 GB, free: 29.25 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.892e-05/2.568, allocations: 305.1 kB / 1.138 GB, free: 28.95 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00967/2.578, allocations: 6.245 MB / 1.144 GB, free: 22.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01345/2.591, allocations: 9.962 MB / 1.154 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02573/2.617, allocations: 17.23 MB / 1.171 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001539/2.617, allocations: 32 kB / 1.171 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.3942/3.012, allocations: 20.35 MB / 1.191 GB, free: 197 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001206/3.012, allocations: 55.06 kB / 1.191 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002792/3.012, allocations: 121.9 kB / 1.191 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.002977/3.015, allocations: 0.9208 MB / 1.192 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01/3.025, allocations: 2.414 MB / 1.194 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/3.035, allocations: 12.5 MB / 1.206 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01074/3.046, allocations: 0.5984 MB / 1.207 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002646/3.048, allocations: 0.5163 MB / 1.207 GB, free: 189.6 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.01861/3.067, allocations: 7.917 MB / 1.215 GB, free: 186.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004136/3.071, allocations: 0.9559 MB / 1.216 GB, free: 186.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03913/3.11, allocations: 17.02 MB / 1.233 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/3.111, allocations: 96.2 kB / 1.233 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001889/3.111, allocations: 40.19 kB / 1.233 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002418/3.111, allocations: 42.23 kB / 1.233 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08716/3.198, allocations: 35.82 MB / 1.268 GB, free: 149.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.028e-05/3.198, allocations: 8 kB / 1.268 GB, free: 149.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006608/3.205, allocations: 1.432 MB / 1.269 GB, free: 148 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.003144/3.208, allocations: 0.9787 MB / 1.27 GB, free: 147.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00174/3.21, allocations: 207.9 kB / 1.27 GB, free: 146.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0142/3.224, allocations: 17.17 MB / 1.287 GB, free: 128.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/3.224, allocations: 11.94 kB / 1.287 GB, free: 128.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0441/3.268, allocations: 24.83 MB / 1.311 GB, free: 104.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00824/3.276, allocations: 2.288 MB / 1.314 GB, free: 101.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004472/3.281, allocations: 176 kB / 1.314 GB, free: 101.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007821/3.289, allocations: 499.5 kB / 1.314 GB, free: 101.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002895/3.292, allocations: 0.7913 MB / 1.315 GB, free: 100.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001773/3.294, allocations: 256 kB / 1.315 GB, free: 100.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01263/3.306, allocations: 5.689 MB / 1.321 GB, free: 94.55 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7.01e-07/3.306, allocations: 0 / 1.321 GB, free: 94.55 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01948/3.326, allocations: 3.467 MB / 1.324 GB, free: 91.09 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.04852/3.374, allocations: 25.78 MB / 1.349 GB, free: 65.14 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02963/3.404, allocations: 16.15 MB / 1.365 GB, free: 48.88 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/3.404, allocations: 0 / 1.365 GB, free: 48.88 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01794/3.422, allocations: 8.763 MB / 1.374 GB, free: 40.01 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0243/3.446, allocations: 2.554 MB / 1.376 GB, free: 37.51 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6272/4.073, allocations: 128.5 MB / 1.502 GB, free: 155.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03329/4.107, allocations: 13.12 MB / 1.514 GB, free: 142.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01439/4.121, allocations: 3.989 MB / 1.518 GB, free: 138.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01713/4.138, allocations: 7.818 MB / 1.526 GB, free: 130.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.273e-06/4.138, allocations: 0 / 1.526 GB, free: 130.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7463/4.885, allocations: 280.9 MB / 1.8 GB, free: 67.11 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.24/39.13, allocations: 3.984 kB / 1.8 GB, free: 67.1 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)