Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 175.1 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05101/0.05101, allocations: 8.7 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 221.4 MB / 246 MB, free: 3.535 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008364/0.0008364, allocations: 88.33 kB / 299.1 MB, free: 2.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.371e-05/4.383e-05, allocations: 4 kB / 359.6 MB, free: 6.395 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.285, allocations: 52.53 MB / 412.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.432/0.7171, allocations: 110.2 MB / 0.5101 GB, free: 94.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.7173, allocations: 76.11 kB / 0.5102 GB, free: 94.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1759/0.8933, allocations: 80.94 MB / 0.5892 GB, free: 16.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.8933, allocations: 0 / 0.5892 GB, free: 16.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000382/0.8937, allocations: 83.88 kB / 0.5893 GB, free: 16.15 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.01093/0.9047, allocations: 3.239 MB / 0.5924 GB, free: 12.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.551e-05/0.9047, allocations: 8.031 kB / 0.5924 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002437/0.9072, allocations: 467.8 kB / 0.5929 GB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004955/0.9122, allocations: 0.7295 MB / 0.5936 GB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009351/0.9216, allocations: 3.328 MB / 0.5969 GB, free: 8.246 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002753/0.9219, allocations: 250.5 kB / 0.5971 GB, free: 8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001388/0.9233, allocations: 335.8 kB / 0.5974 GB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/0.935, allocations: 4.162 MB / 0.6015 GB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001806/0.9352, allocations: 4 kB / 0.6015 GB, free: 3.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009531/0.9361, allocations: 147.9 kB / 0.6016 GB, free: 3.242 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.9363, allocations: 138.5 kB / 0.6018 GB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007679/0.944, allocations: 3.302 MB / 0.605 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03002/0.9741, allocations: 13.88 MB / 0.6185 GB, free: 1.543 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007426/0.9816, allocations: 6.553 MB / 0.6249 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002594/0.9842, allocations: 1.348 MB / 0.6263 GB, free: 8.812 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007844/0.9921, allocations: 3.647 MB / 0.6298 GB, free: 5.074 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001553/0.9937, allocations: 0.9078 MB / 0.6307 GB, free: 4.133 MB / 410.7 MB Notification: Performance of pre-optimization done (n=141): time 6.241e-06/0.9937, allocations: 0 / 0.6307 GB, free: 4.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=144): time 0.008757/1.002, allocations: 4.247 MB / 0.6348 GB, free: 15.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000168/1.003, allocations: 222.9 kB / 0.6351 GB, free: 15.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003948/1.007, allocations: 1.533 MB / 0.6366 GB, free: 13.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003085/1.007, allocations: 57.69 kB / 0.6366 GB, free: 13.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001689/1.009, allocations: 1.458 MB / 0.638 GB, free: 12.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000535/1.009, allocations: 0.4891 MB / 0.6385 GB, free: 11.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/1.009, allocations: 36 kB / 0.6385 GB, free: 11.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001767/1.01, allocations: 385.8 kB / 0.6389 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/1.011, allocations: 0.6522 MB / 0.6396 GB, free: 10.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/1.012, allocations: 1.286 MB / 0.6408 GB, free: 9.316 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/1.013, allocations: 0.9027 MB / 0.6417 GB, free: 8.414 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/1.013, allocations: 4 kB / 0.6417 GB, free: 8.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004463/1.018, allocations: 2.539 MB / 0.6442 GB, free: 5.828 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/1.018, allocations: 17.72 kB / 0.6442 GB, free: 5.812 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/1.018, allocations: 19.95 kB / 0.6442 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/1.019, allocations: 368.3 kB / 0.6446 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/1.02, allocations: 383.4 kB / 0.6449 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007464/1.028, allocations: 7.678 MB / 0.6524 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/1.03, allocations: 108 kB / 0.6525 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/1.03, allocations: 80 kB / 0.6526 GB, free: 12.64 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 201 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004098/1.031, allocations: 228.4 kB / 0.6528 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003001/1.031, allocations: 189.7 kB / 0.653 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/1.035, allocations: 2.274 MB / 0.6552 GB, free: 9.879 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/1.035, allocations: 12 kB / 0.6552 GB, free: 9.867 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/1.035, allocations: 8 kB / 0.6552 GB, free: 9.859 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/1.035, allocations: 7.969 kB / 0.6552 GB, free: 9.852 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008519/1.044, allocations: 5.029 MB / 0.6602 GB, free: 4.688 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.044, allocations: 4 kB / 0.6602 GB, free: 4.684 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007584/1.044, allocations: 171.7 kB / 0.6603 GB, free: 4.516 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/1.046, allocations: 0.5127 MB / 0.6608 GB, free: 3.984 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/1.046, allocations: 55.91 kB / 0.6609 GB, free: 3.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3728/1.419, allocations: 12.04 MB / 0.6726 GB, free: 79.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/1.419, allocations: 8.484 kB / 0.6727 GB, free: 79.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00518/1.424, allocations: 3.271 MB / 0.6758 GB, free: 79.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/1.425, allocations: 424.7 kB / 0.6762 GB, free: 79.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/1.425, allocations: 45.66 kB / 0.6763 GB, free: 79.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008577/1.426, allocations: 64.05 kB / 0.6764 GB, free: 79.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003302/1.427, allocations: 120.1 kB / 0.6765 GB, free: 79.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.953e-05/1.427, allocations: 41.41 kB / 0.6765 GB, free: 79.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001838/1.429, allocations: 1.166 MB / 0.6776 GB, free: 78.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.429, allocations: 0 / 0.6776 GB, free: 78.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002624/1.431, allocations: 0.6323 MB / 0.6783 GB, free: 78.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,booleanStep.y,greaterThreshold.y,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00609/1.437, allocations: 4.526 MB / 0.6827 GB, free: 77.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004429/1.442, allocations: 2.326 MB / 0.685 GB, free: 76.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/1.442, allocations: 0 / 0.685 GB, free: 76.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003144/1.445, allocations: 1.707 MB / 0.6866 GB, free: 76.18 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004692/1.45, allocations: 0.5092 MB / 0.6871 GB, free: 76.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.466, allocations: 5.668 MB / 0.6927 GB, free: 74.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003551/1.47, allocations: 2.388 MB / 0.695 GB, free: 74.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0022/1.472, allocations: 412.3 kB / 0.6954 GB, free: 74.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002063/1.474, allocations: 1.151 MB / 0.6965 GB, free: 74.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.883e-06/1.474, allocations: 0 / 0.6965 GB, free: 74.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/1.577, allocations: 54.64 MB / 0.7499 GB, free: 56.48 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/1.577, allocations: 172.7 kB / 0.75 GB, free: 56.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.701/5.278, allocations: 4.062 kB / 0.75 GB, free: 56.25 MB / 442.7 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)