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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008214/0.0008215, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.353/1.353, allocations: 223.3 MB / 239 MB, free: 5.52 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.00114/0.00114, allocations: 176.5 kB / 290.3 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03303/0.03303, allocations: 8.79 MB / 350.2 MB, free: 4.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005584/0.0005586, allocations: 10.22 kB / 416.6 MB, free: 41.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1105, allocations: 52.56 MB / 469.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.04137/0.1519, allocations: 43.29 MB / 0.5005 GB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02591/0.1779, allocations: 11.99 MB / 0.5122 GB, free: 2.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01023/0.1881, allocations: 342.9 kB / 0.5125 GB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009516/0.1977, allocations: 2.438 MB / 0.5149 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01732/0.215, allocations: 4.537 MB / 0.5193 GB, free: 11.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01037/0.2254, allocations: 2.205 MB / 0.5215 GB, free: 9.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2972/0.5227, allocations: 26.27 MB / 0.5471 GB, free: 10.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07316/0.5959, allocations: 36.54 MB / 0.5828 GB, free: 3.566 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02031/0.6162, allocations: 8.931 MB / 0.5915 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02345/0.6397, allocations: 10.26 MB / 0.6015 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01066/0.6504, allocations: 1.406 MB / 0.6029 GB, free: 5.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01372/0.6642, allocations: 1.836 MB / 0.6047 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009416/0.6736, allocations: 4.563 MB / 0.6092 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01188/0.6855, allocations: 4.605 MB / 0.6136 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05333/0.7389, allocations: 41.16 MB / 0.6538 GB, free: 6.668 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.7389, allocations: 0 / 0.6538 GB, free: 6.668 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.739, allocations: 0 / 0.6538 GB, free: 6.668 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001559/0.7405, allocations: 0 / 0.6538 GB, free: 6.668 MB / 430.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.07085/0.8114, allocations: 23.11 MB / 0.6764 GB, free: 15.74 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.8115, allocations: 8.562 kB / 0.6764 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01472/0.8262, allocations: 2.993 MB / 0.6793 GB, free: 12.75 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07335/0.8996, allocations: 13.96 MB / 0.693 GB, free: 14.91 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03637/0.936, allocations: 14.36 MB / 0.707 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.4808/1.417, allocations: 1.576 MB / 0.7085 GB, free: 111.3 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009253/1.426, allocations: 2.073 MB / 0.7106 GB, free: 111.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09788/1.524, allocations: 34.57 MB / 0.7443 GB, free: 102.5 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001034/1.525, allocations: 33.48 kB / 0.7443 GB, free: 102.5 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007937/1.533, allocations: 0.8613 MB / 0.7452 GB, free: 101.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001113/1.534, allocations: 1.148 MB / 0.7463 GB, free: 101.7 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06843/1.603, allocations: 32.18 MB / 0.7777 GB, free: 80.52 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1718/1.774, allocations: 107.9 MB / 0.8831 GB, free: 3.855 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.516/2.291, allocations: 50.77 MB / 0.9327 GB, free: 106.8 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02002/2.311, allocations: 9.801 MB / 0.9423 GB, free: 106.6 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04727/2.358, allocations: 22.65 MB / 0.9644 GB, free: 98.88 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000133/2.358, allocations: 137.1 kB / 0.9645 GB, free: 98.78 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=894): time 1.247e-05/2.358, allocations: 0 / 0.9645 GB, free: 98.78 MB / 0.5139 GB Notification: Performance of matching and sorting (n=906): time 0.06914/2.427, allocations: 39.49 MB / 1.003 GB, free: 80.17 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/2.427, allocations: 173.4 kB / 1.003 GB, free: 80.07 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01284/2.44, allocations: 8.285 MB / 1.011 GB, free: 77.04 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.001757/2.442, allocations: 173.1 kB / 1.012 GB, free: 76.89 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.004771/2.447, allocations: 8.682 MB / 1.02 GB, free: 70.4 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.003711/2.451, allocations: 3.056 MB / 1.023 GB, free: 68.04 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009924/2.452, allocations: 231.9 kB / 1.023 GB, free: 67.86 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 0.0005531/2.452, allocations: 0.7743 MB / 1.024 GB, free: 67.35 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008434/2.461, allocations: 6.216 MB / 1.03 GB, free: 64.19 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01054/2.471, allocations: 9.936 MB / 1.04 GB, free: 52.61 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/2.483, allocations: 8.279 MB / 1.048 GB, free: 44.3 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001257/2.483, allocations: 36 kB / 1.048 GB, free: 44.27 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03657/2.519, allocations: 20.23 MB / 1.068 GB, free: 23.93 MB / 0.5139 GB Notification: Performance of prepare postOptimizeDAE: time 9.317e-05/2.52, allocations: 56 kB / 1.068 GB, free: 23.87 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001789/2.52, allocations: 116 kB / 1.068 GB, free: 23.76 MB / 0.5139 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= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.002508/2.522, allocations: 0.9464 MB / 1.069 GB, free: 22.8 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008937/2.531, allocations: 2.406 MB / 1.071 GB, free: 20.39 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008837/2.54, allocations: 11.54 MB / 1.082 GB, free: 8.203 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01079/2.551, allocations: 0.6048 MB / 1.083 GB, free: 7.598 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003016/2.554, allocations: 0.5117 MB / 1.083 GB, free: 7.086 MB / 0.5139 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 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].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 (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,77.8%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01566/2.57, allocations: 7.923 MB / 1.091 GB, free: 15.14 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002424/2.572, allocations: 0.9069 MB / 1.092 GB, free: 14.23 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2948/2.867, allocations: 17.02 MB / 1.109 GB, free: 139 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.84e-05/2.867, allocations: 93.31 kB / 1.109 GB, free: 139 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001091/2.867, allocations: 44.83 kB / 1.109 GB, free: 139 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000231/2.867, allocations: 46.25 kB / 1.109 GB, free: 139 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0683/2.936, allocations: 35.91 MB / 1.144 GB, free: 130.8 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001134/2.936, allocations: 7.938 kB / 1.144 GB, free: 130.8 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006191/2.942, allocations: 1.419 MB / 1.145 GB, free: 130.7 MB / 0.5295 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= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.002892/2.945, allocations: 0.9818 MB / 1.146 GB, free: 130.5 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001344/2.946, allocations: 203.2 kB / 1.146 GB, free: 130.4 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/2.959, allocations: 15.74 MB / 1.162 GB, free: 117.9 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/2.959, allocations: 11.81 kB / 1.162 GB, free: 117.9 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04019/2.999, allocations: 24.72 MB / 1.186 GB, free: 107.7 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006013/3.005, allocations: 2.246 MB / 1.188 GB, free: 107 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002682/3.008, allocations: 174.4 kB / 1.188 GB, free: 106.8 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006623/3.014, allocations: 0.5065 MB / 1.189 GB, free: 106.7 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002525/3.017, allocations: 0.7901 MB / 1.19 GB, free: 106.6 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001202/3.018, allocations: 256 kB / 1.19 GB, free: 106.6 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.01019/3.028, allocations: 5.626 MB / 1.195 GB, free: 104.5 MB / 0.5295 GB Notification: Performance of sort global known variables: time 5.81e-07/3.028, allocations: 3.938 kB / 1.195 GB, free: 104.5 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.01639/3.045, allocations: 3.468 MB / 1.199 GB, free: 104.2 MB / 0.5295 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 (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04027/3.085, allocations: 25.64 MB / 1.224 GB, free: 82.52 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.02241/3.107, allocations: 16.05 MB / 1.239 GB, free: 66.38 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/3.107, allocations: 0 / 1.239 GB, free: 66.38 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.01152/3.119, allocations: 8.756 MB / 1.248 GB, free: 57.55 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01191/3.131, allocations: 2.463 MB / 1.25 GB, free: 55.15 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4535/3.584, allocations: 125.1 MB / 1.373 GB, free: 125.2 MB / 0.5452 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01692/3.601, allocations: 13.12 MB / 1.385 GB, free: 120.4 MB / 0.5452 GB Notification: Performance of simCode: alias equations: time 0.01084/3.612, allocations: 3.986 MB / 1.389 GB, free: 118.8 MB / 0.5452 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0115/3.624, allocations: 7.807 MB / 1.397 GB, free: 111.6 MB / 0.5452 GB Notification: Performance of SimCode: time 1.152e-06/3.624, allocations: 3.875 kB / 1.397 GB, free: 111.6 MB / 0.5452 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5499/4.174, allocations: 275.8 MB / 1.666 GB, free: 31.12 MB / 0.5452 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/4.174, allocations: 249 kB / 1.667 GB, free: 30.81 MB / 0.5452 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.452/11.63, allocations: 3.938 kB / 1.667 GB, free: 30.81 MB / 0.5452 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/linux/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) Environment - environmentSimulation: