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.001326/0.001327, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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: 222.9 MB / 239 MB, free: 4.758 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.001365/0.001365, allocations: 192.5 kB / 289.3 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03418/0.03418, allocations: 8.796 MB / 348.2 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 76.28 kB / 410.7 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08047/0.08195, allocations: 51.57 MB / 462.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.02524/0.1072, allocations: 26.53 MB / 488.8 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01458/0.1219, allocations: 7.942 MB / 496.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004839/0.1267, allocations: 195.4 kB / 496.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01956/0.1463, allocations: 8.835 MB / 0.4939 GB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01053/0.1569, allocations: 3.021 MB / 0.4969 GB, free: 28 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005451/0.1623, allocations: 1.669 MB / 0.4985 GB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01423/0.1766, allocations: 12.11 MB / 0.5103 GB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2089/0.3856, allocations: 28.08 MB / 0.5377 GB, free: 14.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01012/0.3957, allocations: 6.506 MB / 0.5441 GB, free: 14.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01193/0.4077, allocations: 7.267 MB / 0.5512 GB, free: 13.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00623/0.414, allocations: 1.843 MB / 0.553 GB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008785/0.4228, allocations: 2.21 MB / 0.5551 GB, free: 13.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005947/0.4288, allocations: 3.617 MB / 0.5587 GB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01181/0.4406, allocations: 6.923 MB / 0.5654 GB, free: 11.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02306/0.4637, allocations: 24.61 MB / 0.5895 GB, free: 9.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4637, allocations: 0 / 0.5895 GB, free: 9.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.4638, allocations: 4 kB / 0.5895 GB, free: 9.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006802/0.4644, allocations: 0 / 0.5895 GB, free: 9.988 MB / 382.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.04188/0.5063, allocations: 14.57 MB / 0.6037 GB, free: 11.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.5064, allocations: 8.031 kB / 0.6037 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005996/0.5124, allocations: 1.79 MB / 0.6055 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04632/0.5588, allocations: 8.432 MB / 0.6137 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01584/0.5746, allocations: 7.445 MB / 0.621 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000698/0.5754, allocations: 0.8156 MB / 0.6218 GB, free: 9.297 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00425/0.5796, allocations: 1.055 MB / 0.6228 GB, free: 8.254 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04116/0.6208, allocations: 18.31 MB / 0.6407 GB, free: 5.934 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003428/0.6212, allocations: 15.81 kB / 0.6407 GB, free: 5.918 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002917/0.6241, allocations: 448.6 kB / 0.6411 GB, free: 5.492 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006534/0.6248, allocations: 0.6672 MB / 0.6418 GB, free: 4.824 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03484/0.6596, allocations: 17.54 MB / 0.6589 GB, free: 3.27 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4283/1.088, allocations: 58.71 MB / 0.7162 GB, free: 131.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02529/1.113, allocations: 37.5 MB / 0.7529 GB, free: 100.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005313/1.119, allocations: 4.142 MB / 0.7569 GB, free: 100.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004359/1.119, allocations: 199.4 kB / 0.7571 GB, free: 100.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.732e-05/1.119, allocations: 89.61 kB / 0.7572 GB, free: 100.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=524): time 8.536e-06/1.119, allocations: 0 / 0.7572 GB, free: 100.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=530): time 0.04086/1.16, allocations: 21.85 MB / 0.7785 GB, free: 98.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/1.16, allocations: 104.5 kB / 0.7786 GB, free: 98.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004879/1.165, allocations: 4.182 MB / 0.7827 GB, free: 97.03 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004095/1.165, allocations: 117.2 kB / 0.7828 GB, free: 96.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001805/1.167, allocations: 4.5 MB / 0.7872 GB, free: 93.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.168, allocations: 1.795 MB / 0.789 GB, free: 92.16 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001655/1.17, allocations: 1.36 MB / 0.7903 GB, free: 91.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.226e-05/1.17, allocations: 301.1 kB / 0.7906 GB, free: 91.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004062/1.174, allocations: 3.478 MB / 0.794 GB, free: 89.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005012/1.179, allocations: 5.913 MB / 0.7997 GB, free: 85.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009865/1.189, allocations: 10.08 MB / 0.8096 GB, free: 77.96 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.994e-05/1.189, allocations: 23.56 kB / 0.8096 GB, free: 77.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=916) (initialization): time 0.01443/1.204, allocations: 10.99 MB / 0.8204 GB, free: 69.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.981e-05/1.204, allocations: 40 kB / 0.8204 GB, free: 69.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.651e-05/1.204, allocations: 79.88 kB / 0.8205 GB, free: 69.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003188/1.207, allocations: 1.377 MB / 0.8218 GB, free: 68.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005285/1.212, allocations: 1.618 MB / 0.8234 GB, free: 66.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/1.226, allocations: 11.33 MB / 0.8345 GB, free: 54.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004684/1.23, allocations: 407.2 kB / 0.8349 GB, free: 54.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007483/1.231, allocations: 340 kB / 0.8352 GB, free: 54.18 MB / 494.1 MB 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 (843): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005135/1.236, allocations: 4.171 MB / 0.8392 GB, free: 50 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008787/1.237, allocations: 478.2 kB / 0.8397 GB, free: 49.53 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/1.249, allocations: 8.523 MB / 0.848 GB, free: 40.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009059/1.258, allocations: 7.136 MB / 0.855 GB, free: 33.67 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/1.258, allocations: 15.94 kB / 0.855 GB, free: 33.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-05/1.258, allocations: 27.89 kB / 0.855 GB, free: 33.63 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02649/1.285, allocations: 19.4 MB / 0.874 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/1.285, allocations: 0 / 0.874 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00351/1.288, allocations: 0.9323 MB / 0.8749 GB, free: 13.03 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003014/1.291, allocations: 1.25 MB / 0.8761 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004483/1.292, allocations: 112 kB / 0.8762 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/1.303, allocations: 10.05 MB / 0.886 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.303, allocations: 4 kB / 0.886 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01914/1.322, allocations: 12.36 MB / 0.8981 GB, free: 4.926 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00271/1.325, allocations: 1.166 MB / 0.8992 GB, free: 3.734 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009135/1.326, allocations: 95.98 kB / 0.8993 GB, free: 3.641 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002667/1.329, allocations: 271.8 kB / 0.8996 GB, free: 3.375 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000781/1.329, allocations: 352.4 kB / 0.8999 GB, free: 3.027 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000326/1.33, allocations: 148 kB / 0.9001 GB, free: 2.883 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0042/1.334, allocations: 2.823 MB / 0.9028 GB, free: 48 kB / 0.4982 GB Notification: Performance of sort global known variables: time 2.01e-07/1.334, allocations: 0 / 0.9028 GB, free: 48 kB / 0.4982 GB Notification: Performance of remove unused functions: time 0.1761/1.51, allocations: 1.932 MB / 0.9047 GB, free: 158 MB / 0.4982 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 (502): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.01948/1.529, allocations: 13.12 MB / 0.9175 GB, free: 156.9 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.04525/1.575, allocations: 20.94 MB / 0.938 GB, free: 154.6 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/1.575, allocations: 0 / 0.938 GB, free: 154.6 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.005681/1.581, allocations: 4.203 MB / 0.9421 GB, free: 152.9 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00489/1.585, allocations: 1.123 MB / 0.9432 GB, free: 152.1 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1151/1.7, allocations: 80.57 MB / 1.022 GB, free: 73.66 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00693/1.707, allocations: 7.005 MB / 1.029 GB, free: 66.62 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.005489/1.713, allocations: 2.315 MB / 1.031 GB, free: 64.32 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004314/1.717, allocations: 3.838 MB / 1.035 GB, free: 60.48 MB / 0.4982 GB Notification: Performance of SimCode: time 1.322e-06/1.717, allocations: 0 / 1.035 GB, free: 60.48 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3484/2.066, allocations: 151.3 MB / 1.182 GB, free: 86.6 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/2.066, allocations: 230.8 kB / 1.183 GB, free: 86.35 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.856/6.922, allocations: 3.938 kB / 1.183 GB, free: 86.34 MB / 0.4982 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)