Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.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) Running command: "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",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.006626/0.006626, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.379/1.379, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001424/0.001424, allocations: 192.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0355/0.0355, allocations: 8.79 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 83.86 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.0967, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.2127/0.3094, allocations: 27.01 MB / 0.5293 GB, free: 4.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.3242, allocations: 8.042 MB / 0.5372 GB, free: 4.301 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005205/0.3295, allocations: 201.7 kB / 0.5373 GB, free: 4.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0188/0.3484, allocations: 9.318 MB / 0.5464 GB, free: 3.125 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01171/0.3601, allocations: 3.317 MB / 0.5497 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004887/0.365, allocations: 1.803 MB / 0.5514 GB, free: 2.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01588/0.3809, allocations: 12.18 MB / 0.5633 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03627/0.4172, allocations: 24.39 MB / 0.5872 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01165/0.4289, allocations: 6.452 MB / 0.5935 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01253/0.4415, allocations: 7.169 MB / 0.6005 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005474/0.447, allocations: 1.84 MB / 0.6023 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008218/0.4552, allocations: 2.198 MB / 0.6044 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006627/0.4619, allocations: 3.607 MB / 0.6079 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01328/0.4752, allocations: 6.92 MB / 0.6147 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03366/0.5089, allocations: 24.79 MB / 0.6389 GB, free: 5.641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.5089, allocations: 0 / 0.6389 GB, free: 5.641 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.509, allocations: 0 / 0.6389 GB, free: 5.641 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007088/0.5097, allocations: 0 / 0.6389 GB, free: 5.641 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04804/0.5577, allocations: 14.74 MB / 0.6533 GB, free: 6.891 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.5578, allocations: 12.03 kB / 0.6533 GB, free: 6.879 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007166/0.565, allocations: 1.781 MB / 0.655 GB, free: 5.098 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04779/0.6128, allocations: 8.543 MB / 0.6634 GB, free: 12.64 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01765/0.6305, allocations: 7.671 MB / 0.6709 GB, free: 4.941 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009215/0.6315, allocations: 0.8005 MB / 0.6717 GB, free: 4.152 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004285/0.6358, allocations: 1.053 MB / 0.6727 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04846/0.6842, allocations: 18.3 MB / 0.6906 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005548/0.6849, allocations: 15.91 kB / 0.6906 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004127/0.689, allocations: 449.6 kB / 0.691 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009107/0.6899, allocations: 0.6639 MB / 0.6917 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04047/0.7304, allocations: 17.54 MB / 0.7088 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4728/1.203, allocations: 58.22 MB / 0.7656 GB, free: 118.1 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02419/1.228, allocations: 37.46 MB / 0.8022 GB, free: 82.42 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005498/1.233, allocations: 4.111 MB / 0.8062 GB, free: 80.26 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004331/1.234, allocations: 193.2 kB / 0.8064 GB, free: 80.13 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/1.234, allocations: 86.19 kB / 0.8065 GB, free: 80.05 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 7.013e-06/1.234, allocations: 4 kB / 0.8065 GB, free: 80.05 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.04559/1.279, allocations: 21.58 MB / 0.8276 GB, free: 66.25 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/1.279, allocations: 107.5 kB / 0.8277 GB, free: 66.13 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00683/1.286, allocations: 4.182 MB / 0.8318 GB, free: 61.97 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007853/1.287, allocations: 109.7 kB / 0.8319 GB, free: 61.86 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002286/1.289, allocations: 4.677 MB / 0.8364 GB, free: 57.77 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001645/1.291, allocations: 1.865 MB / 0.8383 GB, free: 55.93 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00313/1.294, allocations: 1.359 MB / 0.8396 GB, free: 54.56 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.197e-05/1.294, allocations: 305.1 kB / 0.8399 GB, free: 54.26 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004758/1.299, allocations: 3.449 MB / 0.8432 GB, free: 50.81 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005758/1.305, allocations: 5.879 MB / 0.849 GB, free: 43.84 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.316, allocations: 10.01 MB / 0.8588 GB, free: 32.66 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.904e-05/1.316, allocations: 28 kB / 0.8588 GB, free: 32.63 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01798/1.334, allocations: 10.96 MB / 0.8695 GB, free: 21.58 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.281e-05/1.334, allocations: 36 kB / 0.8695 GB, free: 21.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/1.334, allocations: 80 kB / 0.8696 GB, free: 21.47 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003617/1.337, allocations: 1.426 MB / 0.871 GB, free: 20.04 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00557/1.343, allocations: 1.618 MB / 0.8726 GB, free: 18.42 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01456/1.358, allocations: 11.48 MB / 0.8838 GB, free: 6.793 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004987/1.363, allocations: 415.5 kB / 0.8842 GB, free: 6.387 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/1.364, allocations: 335.9 kB / 0.8845 GB, free: 6.059 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006533/1.37, allocations: 4.161 MB / 0.8886 GB, free: 1.883 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/1.372, allocations: 496.8 kB / 0.889 GB, free: 1.395 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01709/1.389, allocations: 8.479 MB / 0.8973 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01448/1.404, allocations: 7.08 MB / 0.9042 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.824e-05/1.404, allocations: 12 kB / 0.9042 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000114/1.404, allocations: 23.91 kB / 0.9043 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04128/1.445, allocations: 18.78 MB / 0.9226 GB, free: 14.74 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.345e-05/1.445, allocations: 4 kB / 0.9226 GB, free: 14.73 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004271/1.449, allocations: 0.9403 MB / 0.9235 GB, free: 13.79 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004067/1.453, allocations: 1.277 MB / 0.9248 GB, free: 12.51 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009627/1.454, allocations: 112 kB / 0.9249 GB, free: 12.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01671/1.471, allocations: 10.18 MB / 0.9348 GB, free: 2.09 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/1.471, allocations: 4 kB / 0.9348 GB, free: 2.086 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2326/1.704, allocations: 12.29 MB / 0.9468 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003078/1.707, allocations: 1.185 MB / 0.948 GB, free: 179 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001224/1.708, allocations: 94.39 kB / 0.9481 GB, free: 179 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003062/1.711, allocations: 276 kB / 0.9484 GB, free: 179 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009988/1.712, allocations: 343.9 kB / 0.9487 GB, free: 179 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003811/1.713, allocations: 149.1 kB / 0.9488 GB, free: 179 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005872/1.719, allocations: 2.818 MB / 0.9516 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.012e-06/1.719, allocations: 0 / 0.9516 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.0095/1.728, allocations: 1.934 MB / 0.9535 GB, free: 178.8 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (ims.rotor.stray.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (499): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02086/1.749, allocations: 13.06 MB / 0.9662 GB, free: 173.8 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01264/1.762, allocations: 8.733 MB / 0.9747 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/1.762, allocations: 0 / 0.9747 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006698/1.768, allocations: 4.185 MB / 0.9788 GB, free: 168.8 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005808/1.774, allocations: 1.12 MB / 0.9799 GB, free: 168.4 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09888/1.873, allocations: 64.15 MB / 1.043 GB, free: 108.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01073/1.884, allocations: 7.009 MB / 1.049 GB, free: 101.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006979/1.891, allocations: 2.313 MB / 1.052 GB, free: 99.4 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007322/1.898, allocations: 3.842 MB / 1.055 GB, free: 95.56 MB / 0.5607 GB Notification: Performance of SimCode: time 1.583e-06/1.898, allocations: 0 / 1.055 GB, free: 95.56 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4083/2.307, allocations: 148.9 MB / 1.201 GB, free: 147.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.44/22.75, allocations: 4.062 kB / 1.201 GB, free: 147.5 MB / 0.5607 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1.fmu > HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe 2>&1)