Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",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.00152/0.00152, allocations: 176.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05663/0.05663, allocations: 8.719 MB / 16.79 MB, free: 3.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 221.5 MB / 240.9 MB, free: 13.21 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.001045/0.001045, allocations: 92.61 kB / 293.9 MB, free: 7.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.184e-05/2.188e-05, allocations: 0 / 352.7 MB, free: 1.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1399, allocations: 52.56 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4292/0.5692, allocations: 108.3 MB / 0.5015 GB, free: 11.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.5695, allocations: 75.78 kB / 0.5016 GB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4552/1.025, allocations: 81.46 MB / 0.5812 GB, free: 74.56 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.025, allocations: 0 / 0.5812 GB, free: 74.56 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002239/1.025, allocations: 85.17 kB / 0.5812 GB, free: 74.55 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.008994/1.034, allocations: 3.279 MB / 0.5844 GB, free: 73.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.034, allocations: 15.7 kB / 0.5844 GB, free: 73.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004554/1.039, allocations: 0.7433 MB / 0.5852 GB, free: 73.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008256/1.047, allocations: 3.515 MB / 0.5886 GB, free: 72.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/1.047, allocations: 108.4 kB / 0.5887 GB, free: 72.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008043/1.048, allocations: 200.9 kB / 0.5889 GB, free: 72.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006621/1.054, allocations: 3.257 MB / 0.5921 GB, free: 72.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006674/1.061, allocations: 3.843 MB / 0.5958 GB, free: 72.33 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.322e-05/1.061, allocations: 3.281 kB / 0.5958 GB, free: 72.33 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002654/1.062, allocations: 4.438 kB / 0.5958 GB, free: 72.33 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/1.062, allocations: 157.7 kB / 0.596 GB, free: 72.32 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02414/1.086, allocations: 13.56 MB / 0.6092 GB, free: 69.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005421/1.091, allocations: 5.988 MB / 0.6151 GB, free: 64.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001942/1.093, allocations: 1.115 MB / 0.6162 GB, free: 64.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005767/1.099, allocations: 3.182 MB / 0.6193 GB, free: 63.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/1.099, allocations: 47.31 kB / 0.6193 GB, free: 63.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=113): time 3.597e-06/1.099, allocations: 3.75 kB / 0.6193 GB, free: 63.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=116): time 0.008005/1.107, allocations: 3.919 MB / 0.6232 GB, free: 62.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/1.107, allocations: 65.09 kB / 0.6232 GB, free: 62.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/1.109, allocations: 1.183 MB / 0.6244 GB, free: 62.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.554e-05/1.109, allocations: 25.7 kB / 0.6244 GB, free: 62.49 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008652/1.11, allocations: 1.499 MB / 0.6259 GB, free: 61.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002981/1.111, allocations: 396.8 kB / 0.6262 GB, free: 61.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.37e-05/1.111, allocations: 0 / 0.6262 GB, free: 61.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/1.111, allocations: 372.5 kB / 0.6266 GB, free: 61.15 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008219/1.112, allocations: 0.5454 MB / 0.6271 GB, free: 61.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/1.113, allocations: 1.034 MB / 0.6281 GB, free: 60.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/1.114, allocations: 0.8841 MB / 0.629 GB, free: 60.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/1.114, allocations: 5.531 kB / 0.629 GB, free: 60.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.003563/1.118, allocations: 2.038 MB / 0.631 GB, free: 59.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/1.118, allocations: 16.34 kB / 0.631 GB, free: 59.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.293e-05/1.118, allocations: 16.28 kB / 0.631 GB, free: 59.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003749/1.118, allocations: 136.3 kB / 0.6312 GB, free: 59.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/1.12, allocations: 393.2 kB / 0.6315 GB, free: 59.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002029/1.122, allocations: 2.957 MB / 0.6344 GB, free: 56.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/1.123, allocations: 54.23 kB / 0.6345 GB, free: 56.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/1.123, allocations: 66.97 kB / 0.6345 GB, free: 56.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 191 * 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: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002594/1.124, allocations: 151.4 kB / 0.6347 GB, free: 56.58 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003043/1.127, allocations: 1.85 MB / 0.6365 GB, free: 55.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002186/1.127, allocations: 156.9 kB / 0.6366 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/1.13, allocations: 1.98 MB / 0.6386 GB, free: 54.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/1.13, allocations: 11.78 kB / 0.6386 GB, free: 54.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.13, allocations: 11.86 kB / 0.6386 GB, free: 54.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/1.13, allocations: 10.98 kB / 0.6386 GB, free: 54.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006955/1.137, allocations: 4.206 MB / 0.6427 GB, free: 52.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/1.137, allocations: 8.125 kB / 0.6427 GB, free: 52.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006961/1.138, allocations: 161.5 kB / 0.6429 GB, free: 52.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/1.139, allocations: 433.2 kB / 0.6433 GB, free: 52.53 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.548e-05/1.139, allocations: 21.2 kB / 0.6433 GB, free: 52.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00756/1.147, allocations: 9.688 MB / 0.6528 GB, free: 44.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.147, allocations: 2.906 kB / 0.6528 GB, free: 44.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004219/1.151, allocations: 2.831 MB / 0.6555 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009087/1.152, allocations: 372.2 kB / 0.6559 GB, free: 42.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/1.152, allocations: 13.34 kB / 0.6559 GB, free: 42.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007579/1.153, allocations: 50.47 kB / 0.656 GB, free: 42.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/1.153, allocations: 94.02 kB / 0.656 GB, free: 42.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.848e-05/1.153, allocations: 40.08 kB / 0.6561 GB, free: 42.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001222/1.154, allocations: 0.8814 MB / 0.6569 GB, free: 42.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.154, allocations: 0 / 0.6569 GB, free: 42.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002352/1.157, allocations: 0.5063 MB / 0.6574 GB, free: 42.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (imc.inertiaRotor.phi,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,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(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.004439/1.161, allocations: 4.002 MB / 0.6613 GB, free: 39.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002903/1.164, allocations: 1.645 MB / 0.6629 GB, free: 38.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/1.164, allocations: 3.219 kB / 0.663 GB, free: 38.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/1.166, allocations: 1.362 MB / 0.6643 GB, free: 38.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/1.168, allocations: 386.4 kB / 0.6647 GB, free: 37.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009942/1.178, allocations: 5.284 MB / 0.6698 GB, free: 35.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001832/1.18, allocations: 2.421 MB / 0.6722 GB, free: 34.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001479/1.182, allocations: 358.4 kB / 0.6725 GB, free: 34.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/1.183, allocations: 1.138 MB / 0.6736 GB, free: 33.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.052e-06/1.183, allocations: 0 / 0.6736 GB, free: 33.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0807/1.264, allocations: 42.22 MB / 0.7149 GB, free: 16.29 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/1.264, allocations: 136.7 kB / 0.715 GB, free: 16.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.153/4.417, allocations: 0 / 0.715 GB, free: 16.09 MB / 442.7 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)