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.0008161/0.0008162, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.322/1.322, allocations: 223.3 MB / 239.4 MB, free: 5.508 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.0008827/0.0008827, allocations: 184.4 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03301/0.03301, allocations: 8.797 MB / 350.5 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.0004195, allocations: 11.22 kB / 417.3 MB, free: 40.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.0914, allocations: 52.56 MB / 469.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.04636/0.1378, allocations: 46.74 MB / 0.5045 GB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02681/0.1646, allocations: 12.66 MB / 0.5169 GB, free: 13.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01013/0.1748, allocations: 354.8 kB / 0.5172 GB, free: 13.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01011/0.1849, allocations: 3.207 MB / 0.5204 GB, free: 10.39 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01834/0.2033, allocations: 4.946 MB / 0.5252 GB, free: 5.434 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009266/0.2126, allocations: 2.908 MB / 0.528 GB, free: 2.551 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2227/0.4353, allocations: 24.68 MB / 0.5521 GB, free: 8.715 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07744/0.5128, allocations: 44.44 MB / 0.5955 GB, free: 4.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02172/0.5345, allocations: 9.093 MB / 0.6044 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01902/0.5536, allocations: 10.7 MB / 0.6149 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005735/0.5594, allocations: 1.41 MB / 0.6163 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01013/0.5695, allocations: 1.904 MB / 0.6181 GB, free: 252 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008342/0.5779, allocations: 4.633 MB / 0.6226 GB, free: 11.78 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02145/0.5993, allocations: 10.88 MB / 0.6333 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04943/0.6488, allocations: 45.71 MB / 0.6779 GB, free: 3.977 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.6488, allocations: 0 / 0.6779 GB, free: 3.977 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.6489, allocations: 0 / 0.6779 GB, free: 3.977 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001244/0.6501, allocations: 4 kB / 0.6779 GB, free: 3.973 MB / 462.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.06811/0.7182, allocations: 22.89 MB / 0.7003 GB, free: 13.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.7183, allocations: 8.031 kB / 0.7003 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01066/0.729, allocations: 2.982 MB / 0.7032 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4836/1.213, allocations: 13.96 MB / 0.7168 GB, free: 131.4 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03357/1.246, allocations: 14.57 MB / 0.731 GB, free: 128.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00194/1.248, allocations: 1.578 MB / 0.7326 GB, free: 127.6 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008656/1.257, allocations: 2.074 MB / 0.7346 GB, free: 126.9 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07967/1.337, allocations: 34.74 MB / 0.7685 GB, free: 110 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00103/1.338, allocations: 35.36 kB / 0.7686 GB, free: 110 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006503/1.344, allocations: 0.8575 MB / 0.7694 GB, free: 109.4 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/1.345, allocations: 1.152 MB / 0.7705 GB, free: 109.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06377/1.409, allocations: 32.35 MB / 0.8021 GB, free: 77.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1812/1.59, allocations: 108 MB / 0.9076 GB, free: 0.7734 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4597/2.05, allocations: 50.83 MB / 0.9572 GB, free: 107.2 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01434/2.064, allocations: 9.792 MB / 0.9668 GB, free: 103.5 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04315/2.108, allocations: 22.66 MB / 0.9889 GB, free: 93.65 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.469e-05/2.108, allocations: 135 kB / 0.9891 GB, free: 93.54 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=894): time 9.688e-06/2.108, allocations: 0 / 0.9891 GB, free: 93.54 MB / 0.5139 GB Notification: Performance of matching and sorting (n=906): time 0.07166/2.179, allocations: 39.59 MB / 1.028 GB, free: 71.44 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.518e-05/2.179, allocations: 172.4 kB / 1.028 GB, free: 71.26 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01391/2.193, allocations: 8.354 MB / 1.036 GB, free: 63.97 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.00164/2.195, allocations: 173.7 kB / 1.036 GB, free: 63.8 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.003916/2.199, allocations: 8.68 MB / 1.045 GB, free: 55.07 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.003193/2.202, allocations: 3.055 MB / 1.048 GB, free: 52.04 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/2.204, allocations: 0.9142 MB / 1.049 GB, free: 51.11 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 4.538e-05/2.204, allocations: 301.1 kB / 1.049 GB, free: 50.82 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0094/2.213, allocations: 6.257 MB / 1.055 GB, free: 44.55 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01202/2.225, allocations: 9.99 MB / 1.065 GB, free: 32.93 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0215/2.247, allocations: 17.27 MB / 1.082 GB, free: 13.97 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/2.247, allocations: 32 kB / 1.082 GB, free: 13.94 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.0383/2.285, allocations: 20.34 MB / 1.101 GB, free: 9.473 MB / 0.5295 GB Notification: Performance of prepare postOptimizeDAE: time 9.573e-05/2.285, allocations: 56.94 kB / 1.102 GB, free: 9.418 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001742/2.286, allocations: 116 kB / 1.102 GB, free: 9.305 MB / 0.5295 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.002939/2.289, allocations: 0.9274 MB / 1.103 GB, free: 8.363 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01015/2.299, allocations: 2.418 MB / 1.105 GB, free: 5.941 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2403/2.539, allocations: 11.54 MB / 1.116 GB, free: 139.5 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009209/2.548, allocations: 0.6044 MB / 1.117 GB, free: 139.5 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002417/2.551, allocations: 0.5127 MB / 1.117 GB, free: 139.5 MB / 0.5295 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.01679/2.567, allocations: 7.923 MB / 1.125 GB, free: 139.4 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00223/2.57, allocations: 0.9093 MB / 1.126 GB, free: 139.4 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03098/2.601, allocations: 17.08 MB / 1.143 GB, free: 133.8 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.988e-05/2.601, allocations: 91 kB / 1.143 GB, free: 133.8 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.147e-05/2.601, allocations: 43.12 kB / 1.143 GB, free: 133.8 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001317/2.601, allocations: 49.88 kB / 1.143 GB, free: 133.8 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05699/2.658, allocations: 35.99 MB / 1.178 GB, free: 119.4 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.262e-05/2.658, allocations: 8.781 kB / 1.178 GB, free: 119.4 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00612/2.664, allocations: 1.429 MB / 1.179 GB, free: 119.3 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=. Notification: Performance of postOpt tearingSystem (simulation): time 0.003739/2.668, allocations: 0.9833 MB / 1.18 GB, free: 119 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001778/2.67, allocations: 201.6 kB / 1.18 GB, free: 118.9 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01235/2.682, allocations: 15.77 MB / 1.196 GB, free: 106.4 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/2.682, allocations: 11.72 kB / 1.196 GB, free: 106.4 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03836/2.721, allocations: 24.82 MB / 1.22 GB, free: 90.11 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005709/2.726, allocations: 2.25 MB / 1.222 GB, free: 88.32 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002473/2.729, allocations: 176 kB / 1.222 GB, free: 88.14 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006413/2.735, allocations: 0.5034 MB / 1.223 GB, free: 87.64 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001983/2.737, allocations: 0.795 MB / 1.224 GB, free: 86.85 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000614/2.738, allocations: 260 kB / 1.224 GB, free: 86.59 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.009459/2.747, allocations: 5.685 MB / 1.23 GB, free: 80.92 MB / 0.5295 GB Notification: Performance of sort global known variables: time 5.91e-07/2.747, allocations: 0 / 1.23 GB, free: 80.92 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.01463/2.762, allocations: 3.474 MB / 1.233 GB, free: 77.45 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 (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.04042/2.802, allocations: 25.78 MB / 1.258 GB, free: 51.99 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.0232/2.826, allocations: 16.12 MB / 1.274 GB, free: 35.77 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/2.826, allocations: 7.938 kB / 1.274 GB, free: 35.77 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.01269/2.838, allocations: 8.777 MB / 1.282 GB, free: 26.88 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02154/2.86, allocations: 2.424 MB / 1.285 GB, free: 24.5 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5698/3.43, allocations: 187.7 MB / 1.468 GB, free: 27.62 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01893/3.449, allocations: 13.11 MB / 1.481 GB, free: 14.45 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01283/3.462, allocations: 3.995 MB / 1.485 GB, free: 10.48 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01371/3.475, allocations: 7.806 MB / 1.492 GB, free: 2.676 MB / 0.5295 GB Notification: Performance of SimCode: time 9.52e-07/3.475, allocations: 0 / 1.492 GB, free: 2.676 MB / 0.5295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8024/4.278, allocations: 279.5 MB / 1.765 GB, free: 125.7 MB / 0.5608 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/4.278, allocations: 271.7 kB / 1.766 GB, free: 125.3 MB / 0.5608 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/11.89, allocations: 0.9375 kB / 1.766 GB, free: 125.3 MB / 0.5608 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)