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.009695/0.009695, allocations: 101.2 kB / 15.73 MB, free: 6.031 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.58/1.58, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001969/0.001969, allocations: 192.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03858/0.03858, allocations: 8.794 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002838/0.002838, allocations: 79.88 kB / 466.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1447, allocations: 51.55 MB / 0.5063 GB, free: 6.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.3315/0.4763, allocations: 49.5 MB / 0.5547 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03715/0.5135, allocations: 12.88 MB / 0.5673 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01511/0.5286, allocations: 376.7 kB / 0.5676 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03704/0.5657, allocations: 13.81 MB / 0.5811 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02526/0.591, allocations: 5.429 MB / 0.5864 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01229/0.6033, allocations: 3.238 MB / 0.5896 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03723/0.6405, allocations: 24.22 MB / 0.6132 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09335/0.734, allocations: 46.97 MB / 0.6591 GB, free: 3.141 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02503/0.759, allocations: 12.65 MB / 0.6714 GB, free: 6.488 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03175/0.7908, allocations: 13.82 MB / 0.6849 GB, free: 8.621 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01446/0.8053, allocations: 3.625 MB / 0.6885 GB, free: 4.996 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01959/0.825, allocations: 4.113 MB / 0.6925 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01419/0.8392, allocations: 7.283 MB / 0.6996 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.03418/0.8734, allocations: 13.79 MB / 0.7131 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.6741/1.548, allocations: 48.68 MB / 0.7606 GB, free: 86.82 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 9.809e-06/1.548, allocations: 0 / 0.7606 GB, free: 86.82 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.796e-06/1.548, allocations: 0 / 0.7606 GB, free: 86.82 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.0017/1.549, allocations: 2.781 kB / 0.7606 GB, free: 86.82 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.1106/1.66, allocations: 27.6 MB / 0.7876 GB, free: 72.84 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/1.66, allocations: 7.688 kB / 0.7876 GB, free: 72.84 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02054/1.681, allocations: 2.992 MB / 0.7905 GB, free: 70.74 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07585/1.756, allocations: 13.93 MB / 0.8041 GB, free: 61.55 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04209/1.799, allocations: 14.98 MB / 0.8187 GB, free: 47.23 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001486/1.8, allocations: 1.571 MB / 0.8203 GB, free: 45.68 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01371/1.814, allocations: 2.08 MB / 0.8223 GB, free: 43.62 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1075/1.921, allocations: 34.72 MB / 0.8562 GB, free: 8.836 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009135/1.922, allocations: 23.28 kB / 0.8562 GB, free: 8.816 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01071/1.933, allocations: 0.8565 MB / 0.8571 GB, free: 7.98 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00105/1.934, allocations: 1.157 MB / 0.8582 GB, free: 6.82 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08778/2.022, allocations: 32.33 MB / 0.8898 GB, free: 6.484 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5902/2.612, allocations: 106.2 MB / 0.9935 GB, free: 157.6 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04433/2.657, allocations: 50.87 MB / 1.043 GB, free: 118 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02113/2.678, allocations: 9.8 MB / 1.053 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06118/2.739, allocations: 22.52 MB / 1.075 GB, free: 94.29 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/2.739, allocations: 129.9 kB / 1.075 GB, free: 94.14 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 2.727e-05/2.739, allocations: 0 / 1.075 GB, free: 94.14 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.09282/2.832, allocations: 39.47 MB / 1.113 GB, free: 54.25 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.038e-05/2.832, allocations: 168.5 kB / 1.114 GB, free: 54.07 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01456/2.847, allocations: 8.348 MB / 1.122 GB, free: 45.73 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.002246/2.849, allocations: 177.7 kB / 1.122 GB, free: 45.55 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005139/2.854, allocations: 8.679 MB / 1.13 GB, free: 36.82 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004442/2.859, allocations: 3.056 MB / 1.133 GB, free: 33.79 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005042/2.864, allocations: 2.208 MB / 1.136 GB, free: 31.57 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.66e-05/2.864, allocations: 305 kB / 1.136 GB, free: 31.27 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01011/2.874, allocations: 6.241 MB / 1.142 GB, free: 25.02 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01341/2.887, allocations: 9.966 MB / 1.152 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0237/2.911, allocations: 17.24 MB / 1.168 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001323/2.911, allocations: 36 kB / 1.169 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.3671/3.278, allocations: 20.29 MB / 1.188 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.366e-05/3.278, allocations: 56.83 kB / 1.188 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002193/3.279, allocations: 115.6 kB / 1.188 GB, free: 196.4 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.003053/3.282, allocations: 0.9316 MB / 1.189 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01061/3.292, allocations: 2.413 MB / 1.192 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/3.303, allocations: 12.49 MB / 1.204 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01092/3.314, allocations: 0.6022 MB / 1.205 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003128/3.317, allocations: 0.5123 MB / 1.205 GB, free: 189.2 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.01938/3.336, allocations: 7.917 MB / 1.213 GB, free: 186.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002966/3.339, allocations: 0.9041 MB / 1.214 GB, free: 186.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03197/3.371, allocations: 17.03 MB / 1.23 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.01e-05/3.371, allocations: 101.3 kB / 1.23 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.76e-05/3.371, allocations: 41.34 kB / 1.23 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002096/3.372, allocations: 46.17 kB / 1.23 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08478/3.456, allocations: 35.82 MB / 1.265 GB, free: 151.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.367e-05/3.457, allocations: 7.594 kB / 1.265 GB, free: 151.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006229/3.463, allocations: 1.424 MB / 1.267 GB, free: 150.4 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.003041/3.466, allocations: 0.9772 MB / 1.268 GB, free: 149.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001369/3.467, allocations: 207.9 kB / 1.268 GB, free: 149.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01235/3.48, allocations: 17.16 MB / 1.285 GB, free: 131.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/3.48, allocations: 8 kB / 1.285 GB, free: 131.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04181/3.521, allocations: 24.78 MB / 1.309 GB, free: 106.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007395/3.529, allocations: 2.244 MB / 1.311 GB, free: 104.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003558/3.532, allocations: 180 kB / 1.311 GB, free: 104.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007919/3.54, allocations: 495.5 kB / 1.312 GB, free: 104.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003121/3.544, allocations: 0.7894 MB / 1.313 GB, free: 103.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009332/3.545, allocations: 252 kB / 1.313 GB, free: 103.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01284/3.557, allocations: 5.693 MB / 1.318 GB, free: 97.43 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.91e-07/3.557, allocations: 0 / 1.318 GB, free: 97.43 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01794/3.575, allocations: 3.468 MB / 1.322 GB, free: 93.97 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.04286/3.618, allocations: 25.73 MB / 1.347 GB, free: 68.06 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02869/3.647, allocations: 16.13 MB / 1.363 GB, free: 51.84 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.01e-05/3.647, allocations: 5 kB / 1.363 GB, free: 51.83 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01648/3.664, allocations: 8.748 MB / 1.371 GB, free: 42.97 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01938/3.683, allocations: 2.554 MB / 1.374 GB, free: 40.47 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5744/4.257, allocations: 127.9 MB / 1.499 GB, free: 158.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02657/4.284, allocations: 13.12 MB / 1.511 GB, free: 145.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01311/4.297, allocations: 3.989 MB / 1.515 GB, free: 141.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01681/4.314, allocations: 7.81 MB / 1.523 GB, free: 133.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.483e-06/4.314, allocations: 4 kB / 1.523 GB, free: 133.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.819/5.133, allocations: 281.6 MB / 1.798 GB, free: 71.46 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.06/40.2, allocations: 12.25 kB / 1.798 GB, free: 71.45 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)