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.0052/0.0052, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.391/1.391, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001583/0.001583, allocations: 184.5 kB / 289.7 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03584/0.03584, allocations: 8.798 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002487/0.002487, allocations: 91.86 kB / 467 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1032, allocations: 51.55 MB / 0.5064 GB, free: 6.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.2547/0.358, allocations: 49.5 MB / 0.5547 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03052/0.3885, allocations: 12.88 MB / 0.5673 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01168/0.4002, allocations: 377.6 kB / 0.5676 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03373/0.434, allocations: 13.81 MB / 0.5811 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02111/0.4552, allocations: 5.419 MB / 0.5864 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01099/0.4662, allocations: 3.239 MB / 0.5896 GB, free: 8.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03319/0.4994, allocations: 24.21 MB / 0.6132 GB, free: 2.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07263/0.572, allocations: 46.98 MB / 0.6591 GB, free: 3.055 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02241/0.5945, allocations: 12.6 MB / 0.6714 GB, free: 6.453 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02363/0.6182, allocations: 13.82 MB / 0.6849 GB, free: 8.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0103/0.6285, allocations: 3.625 MB / 0.6884 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01351/0.642, allocations: 4.109 MB / 0.6925 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0115/0.6536, allocations: 7.295 MB / 0.6996 GB, free: 9.539 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.02702/0.6806, allocations: 13.78 MB / 0.713 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.5188/1.2, allocations: 48.79 MB / 0.7607 GB, free: 86.42 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/1.2, allocations: 0 / 0.7607 GB, free: 86.42 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.194e-06/1.2, allocations: 0.8125 kB / 0.7607 GB, free: 86.42 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.00175/1.201, allocations: 0.8125 kB / 0.7607 GB, free: 86.42 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.09594/1.297, allocations: 28.12 MB / 0.7881 GB, free: 72 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/1.297, allocations: 7.719 kB / 0.7882 GB, free: 72 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01448/1.312, allocations: 2.983 MB / 0.7911 GB, free: 69.91 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07343/1.385, allocations: 14.04 MB / 0.8048 GB, free: 60.51 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03234/1.418, allocations: 15.04 MB / 0.8195 GB, free: 46.14 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001592/1.419, allocations: 1.574 MB / 0.821 GB, free: 44.58 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01032/1.43, allocations: 2.072 MB / 0.823 GB, free: 42.53 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09487/1.525, allocations: 34.72 MB / 0.8569 GB, free: 7.742 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001066/1.526, allocations: 23.47 kB / 0.857 GB, free: 7.723 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009096/1.535, allocations: 0.8597 MB / 0.8578 GB, free: 6.883 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001002/1.536, allocations: 1.153 MB / 0.8589 GB, free: 5.727 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07849/1.614, allocations: 32.33 MB / 0.8905 GB, free: 5.387 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.451/2.065, allocations: 106.5 MB / 0.9945 GB, free: 157.9 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03688/2.102, allocations: 50.86 MB / 1.044 GB, free: 117.5 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01479/2.117, allocations: 9.791 MB / 1.054 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04176/2.159, allocations: 22.56 MB / 1.076 GB, free: 92.86 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.032e-05/2.159, allocations: 133.9 kB / 1.076 GB, free: 92.71 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.063e-05/2.159, allocations: 0 / 1.076 GB, free: 92.71 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.0737/2.233, allocations: 39.91 MB / 1.115 GB, free: 52.43 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.202e-05/2.233, allocations: 184.4 kB / 1.115 GB, free: 52.23 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01555/2.248, allocations: 8.357 MB / 1.123 GB, free: 43.88 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001883/2.25, allocations: 173.7 kB / 1.123 GB, free: 43.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.004905/2.255, allocations: 8.973 MB / 1.132 GB, free: 34.71 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.003342/2.259, allocations: 3.198 MB / 1.135 GB, free: 31.55 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007395/2.266, allocations: 2.217 MB / 1.137 GB, free: 29.33 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.585e-05/2.266, allocations: 301.1 kB / 1.138 GB, free: 29.03 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009154/2.275, allocations: 6.249 MB / 1.144 GB, free: 22.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01086/2.286, allocations: 9.962 MB / 1.154 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02457/2.311, allocations: 17.23 MB / 1.17 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/2.311, allocations: 32 kB / 1.17 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.2933/2.604, allocations: 20.34 MB / 1.19 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 8.486e-05/2.604, allocations: 57 kB / 1.19 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/2.605, allocations: 121.9 kB / 1.19 GB, free: 197.1 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.0027/2.607, allocations: 0.9268 MB / 1.191 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009464/2.617, allocations: 2.416 MB / 1.194 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009287/2.626, allocations: 12.49 MB / 1.206 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009343/2.635, allocations: 0.6147 MB / 1.207 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002181/2.638, allocations: 0.5112 MB / 1.207 GB, free: 189.8 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.0143/2.652, allocations: 7.915 MB / 1.215 GB, free: 186.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002645/2.655, allocations: 0.958 MB / 1.216 GB, free: 186.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0272/2.682, allocations: 17.02 MB / 1.232 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-05/2.682, allocations: 93.5 kB / 1.232 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.551e-05/2.682, allocations: 44 kB / 1.232 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000162/2.682, allocations: 44.16 kB / 1.232 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06505/2.747, allocations: 35.83 MB / 1.267 GB, free: 149.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.105e-05/2.747, allocations: 8 kB / 1.267 GB, free: 149.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006046/2.753, allocations: 1.424 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.00288/2.756, allocations: 0.9766 MB / 1.27 GB, free: 147.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001359/2.758, allocations: 209.2 kB / 1.27 GB, free: 147 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01173/2.769, allocations: 17.17 MB / 1.287 GB, free: 129.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/2.769, allocations: 8.141 kB / 1.287 GB, free: 129.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03417/2.804, allocations: 24.83 MB / 1.311 GB, free: 104.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005728/2.809, allocations: 2.291 MB / 1.313 GB, free: 102.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002875/2.812, allocations: 176 kB / 1.313 GB, free: 101.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006703/2.819, allocations: 491.5 kB / 1.314 GB, free: 101.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002097/2.821, allocations: 0.7952 MB / 1.315 GB, free: 100.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007765/2.822, allocations: 260 kB / 1.315 GB, free: 100.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.009063/2.831, allocations: 5.685 MB / 1.32 GB, free: 94.71 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8.32e-07/2.831, allocations: 0 / 1.32 GB, free: 94.71 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01445/2.845, allocations: 3.474 MB / 1.324 GB, free: 91.24 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.03609/2.882, allocations: 25.77 MB / 1.349 GB, free: 65.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02423/2.906, 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.271e-05/2.906, allocations: 7.938 kB / 1.365 GB, free: 49.04 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01266/2.919, allocations: 8.762 MB / 1.373 GB, free: 40.17 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01287/2.931, allocations: 2.555 MB / 1.376 GB, free: 37.67 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4672/3.399, allocations: 128.5 MB / 1.501 GB, free: 155.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02178/3.421, allocations: 13.12 MB / 1.514 GB, free: 142.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01084/3.431, allocations: 3.994 MB / 1.518 GB, free: 138.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01182/3.443, allocations: 7.814 MB / 1.526 GB, free: 130.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.032e-06/3.443, allocations: 0 / 1.526 GB, free: 130.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5844/4.028, allocations: 280.9 MB / 1.8 GB, free: 67.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.46/36.49, allocations: 4.922 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 & /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)