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.001245/0.001245, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.312/1.312, allocations: 222.9 MB / 239 MB, free: 4.715 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.001172/0.001172, allocations: 184.4 kB / 289.3 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03425/0.03425, allocations: 8.8 MB / 348.2 MB, free: 4.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 77.97 kB / 414.1 MB, free: 40.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07824/0.07979, allocations: 51.56 MB / 465.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.04356/0.1234, allocations: 48.6 MB / 0.5022 GB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02374/0.1472, allocations: 12.7 MB / 0.5146 GB, free: 13.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008858/0.1561, allocations: 358.8 kB / 0.515 GB, free: 13.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02915/0.1852, allocations: 12.99 MB / 0.5277 GB, free: 272 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1973/0.3826, allocations: 4.91 MB / 0.5325 GB, free: 6.613 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009009/0.3916, allocations: 2.994 MB / 0.5354 GB, free: 6.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02932/0.4209, allocations: 24.26 MB / 0.5591 GB, free: 6.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08153/0.5025, allocations: 53.81 MB / 0.6116 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02334/0.5259, allocations: 12.59 MB / 0.6239 GB, free: 6.359 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02249/0.5484, allocations: 13.96 MB / 0.6375 GB, free: 8.801 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009876/0.5583, allocations: 3.625 MB / 0.6411 GB, free: 5.176 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01389/0.5723, allocations: 4.118 MB / 0.6451 GB, free: 1.082 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01162/0.5839, allocations: 7.297 MB / 0.6522 GB, free: 9.883 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02965/0.6136, allocations: 13.78 MB / 0.6657 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4467/1.06, allocations: 48.39 MB / 0.7129 GB, free: 78.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/1.06, allocations: 0 / 0.7129 GB, free: 78.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.114e-06/1.06, allocations: 0 / 0.7129 GB, free: 78.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001315/1.062, allocations: 0.6562 kB / 0.713 GB, free: 78.66 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.09287/1.155, allocations: 27.66 MB / 0.74 GB, free: 71.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/1.155, allocations: 9.75 kB / 0.74 GB, free: 71.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01337/1.168, allocations: 2.99 MB / 0.7429 GB, free: 71.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07545/1.244, allocations: 13.89 MB / 0.7565 GB, free: 66.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03316/1.277, allocations: 14.54 MB / 0.7706 GB, free: 60.39 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002005/1.279, allocations: 1.575 MB / 0.7722 GB, free: 59.69 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01164/1.29, allocations: 2.075 MB / 0.7742 GB, free: 58.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08853/1.379, allocations: 34.72 MB / 0.8081 GB, free: 23.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001032/1.38, allocations: 34.42 kB / 0.8082 GB, free: 23.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008537/1.389, allocations: 0.8549 MB / 0.809 GB, free: 22.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0011/1.39, allocations: 1.154 MB / 0.8101 GB, free: 21.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06618/1.456, allocations: 32.32 MB / 0.8417 GB, free: 5.445 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.409/1.865, allocations: 107.6 MB / 0.9468 GB, free: 177 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03632/1.901, allocations: 50.86 MB / 0.9964 GB, free: 142.4 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01403/1.915, allocations: 9.766 MB / 1.006 GB, free: 142.3 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04427/1.96, allocations: 22.6 MB / 1.028 GB, free: 135.7 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001154/1.96, allocations: 130.2 kB / 1.028 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=894): time 1.401e-05/1.96, allocations: 0 / 1.028 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=906): time 0.0741/2.034, allocations: 39.47 MB / 1.067 GB, free: 113.7 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/2.034, allocations: 172.4 kB / 1.067 GB, free: 113.6 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01343/2.048, allocations: 8.348 MB / 1.075 GB, free: 105.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001707/2.049, allocations: 177.7 kB / 1.075 GB, free: 105 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004429/2.054, allocations: 8.681 MB / 1.084 GB, free: 96.3 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.003265/2.057, allocations: 3.057 MB / 1.087 GB, free: 93.27 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006235/2.063, allocations: 2.208 MB / 1.089 GB, free: 91.05 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.306e-05/2.063, allocations: 301.1 kB / 1.089 GB, free: 90.75 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008746/2.072, allocations: 6.238 MB / 1.095 GB, free: 84.51 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01067/2.083, allocations: 9.973 MB / 1.105 GB, free: 72.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01903/2.102, allocations: 17.23 MB / 1.122 GB, free: 53.98 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.283e-05/2.102, allocations: 36 kB / 1.122 GB, free: 53.94 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.0324/2.134, allocations: 20.3 MB / 1.142 GB, free: 33.53 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.813e-05/2.135, allocations: 53.72 kB / 1.142 GB, free: 33.48 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/2.135, allocations: 116 kB / 1.142 GB, free: 33.36 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.002809/2.137, allocations: 0.9326 MB / 1.143 GB, free: 32.41 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009124/2.147, allocations: 2.414 MB / 1.145 GB, free: 30 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009282/2.156, allocations: 12.5 MB / 1.157 GB, free: 16.82 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008985/2.165, allocations: 0.6009 MB / 1.158 GB, free: 16.21 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/2.167, allocations: 0.5117 MB / 1.158 GB, free: 15.7 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.01308/2.18, allocations: 7.928 MB / 1.166 GB, free: 7.758 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002485/2.183, allocations: 0.9107 MB / 1.167 GB, free: 6.836 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2389/2.422, allocations: 17.03 MB / 1.184 GB, free: 201.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/2.422, allocations: 91.94 kB / 1.184 GB, free: 201.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001551/2.422, allocations: 42.69 kB / 1.184 GB, free: 201.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002018/2.422, allocations: 48 kB / 1.184 GB, free: 201.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06296/2.485, allocations: 35.95 MB / 1.219 GB, free: 188.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.449e-05/2.485, allocations: 3.938 kB / 1.219 GB, free: 188.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006443/2.492, allocations: 1.433 MB / 1.22 GB, free: 188.2 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.003115/2.495, allocations: 0.9758 MB / 1.221 GB, free: 188 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001513/2.496, allocations: 206.7 kB / 1.221 GB, free: 187.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/2.509, allocations: 17.17 MB / 1.238 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/2.509, allocations: 10.69 kB / 1.238 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.034/2.543, allocations: 24.76 MB / 1.262 GB, free: 161.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004995/2.548, allocations: 2.243 MB / 1.265 GB, free: 160.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001866/2.55, allocations: 176.6 kB / 1.265 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005065/2.555, allocations: 497.5 kB / 1.265 GB, free: 159.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001531/2.557, allocations: 0.7923 MB / 1.266 GB, free: 159.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005781/2.557, allocations: 263.6 kB / 1.266 GB, free: 159.1 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007623/2.565, allocations: 5.684 MB / 1.272 GB, free: 154.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.7e-07/2.565, allocations: 0 / 1.272 GB, free: 154.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01149/2.577, allocations: 3.473 MB / 1.275 GB, free: 150.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.03503/2.612, allocations: 25.71 MB / 1.3 GB, free: 125.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0749/2.686, allocations: 36.15 MB / 1.336 GB, free: 89.13 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/2.687, allocations: 4 kB / 1.336 GB, free: 89.13 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0128/2.699, allocations: 8.754 MB / 1.344 GB, free: 80.29 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01625/2.716, allocations: 2.555 MB / 1.347 GB, free: 77.85 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5208/3.236, allocations: 187.4 MB / 1.53 GB, free: 113 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01924/3.256, allocations: 13.12 MB / 1.542 GB, free: 103.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01212/3.268, allocations: 3.99 MB / 1.546 GB, free: 99.18 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01104/3.279, allocations: 7.814 MB / 1.554 GB, free: 91.36 MB / 0.5763 GB Notification: Performance of SimCode: time 7.42e-07/3.279, allocations: 0 / 1.554 GB, free: 91.36 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7754/4.054, allocations: 288 MB / 1.835 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001522/4.055, allocations: 262.6 kB / 1.835 GB, free: 116.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.748/11.8, allocations: 3.391 kB / 1.835 GB, free: 116.3 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 & /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)