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.0008725/0.0008725, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.311/1.311, allocations: 223.3 MB / 239.4 MB, free: 5.5 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.001015/0.001015, allocations: 188.5 kB / 290.6 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03332/0.03332, allocations: 8.808 MB / 350.5 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003628, allocations: 15.12 kB / 413.9 MB, free: 42.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.08822, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.02444/0.1127, allocations: 25.38 MB / 491.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01679/0.1295, allocations: 7.915 MB / 499.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007558/0.1371, allocations: 187.4 kB / 500 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006692/0.1438, allocations: 1.937 MB / 0.4901 GB, free: 9.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01131/0.1552, allocations: 3.03 MB / 0.4931 GB, free: 6.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005412/0.1606, allocations: 1.589 MB / 0.4946 GB, free: 4.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01687/0.1775, allocations: 12.22 MB / 0.5066 GB, free: 8.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04698/0.2245, allocations: 24.07 MB / 0.5301 GB, free: 408 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2207/0.4453, allocations: 4.578 MB / 0.5345 GB, free: 19.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009178/0.4545, allocations: 5.534 MB / 0.54 GB, free: 18.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003912/0.4584, allocations: 0.7191 MB / 0.5407 GB, free: 18.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006853/0.4653, allocations: 1.078 MB / 0.5417 GB, free: 18.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003902/0.4692, allocations: 2.277 MB / 0.5439 GB, free: 17.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01087/0.4801, allocations: 5.459 MB / 0.5493 GB, free: 16.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0197/0.4998, allocations: 23.26 MB / 0.572 GB, free: 5.551 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4999, allocations: 0 / 0.572 GB, free: 5.551 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4999, allocations: 0 / 0.572 GB, free: 5.551 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00063/0.5005, allocations: 0 / 0.572 GB, free: 5.551 MB / 366.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.03237/0.5329, allocations: 12.14 MB / 0.5838 GB, free: 15.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.5329, allocations: 10.59 kB / 0.5838 GB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008769/0.5417, allocations: 1.791 MB / 0.5856 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04732/0.5891, allocations: 8.47 MB / 0.5939 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01639/0.6055, allocations: 7.477 MB / 0.6012 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009314/0.6065, allocations: 0.808 MB / 0.602 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006912/0.6134, allocations: 1.07 MB / 0.603 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04666/0.66, allocations: 18.31 MB / 0.6209 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003422/0.6604, allocations: 19.84 kB / 0.6209 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003307/0.6637, allocations: 451.4 kB / 0.6213 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007034/0.6645, allocations: 0.6672 MB / 0.622 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03844/0.7029, allocations: 17.55 MB / 0.6391 GB, free: 12.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1028/0.8058, allocations: 58.88 MB / 0.6966 GB, free: 1.34 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2172/1.023, allocations: 37.47 MB / 0.7332 GB, free: 130.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006737/1.03, allocations: 4.158 MB / 0.7373 GB, free: 130.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004654/1.03, allocations: 197.8 kB / 0.7375 GB, free: 130.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.855e-05/1.03, allocations: 87.77 kB / 0.7375 GB, free: 130.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=524): time 7.584e-06/1.03, allocations: 1.156 kB / 0.7375 GB, free: 130.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=530): time 0.0515/1.082, allocations: 21.98 MB / 0.759 GB, free: 127.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/1.082, allocations: 106.6 kB / 0.7591 GB, free: 127.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006311/1.088, allocations: 4.176 MB / 0.7632 GB, free: 125.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001096/1.089, allocations: 109.2 kB / 0.7633 GB, free: 125.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002892/1.092, allocations: 4.512 MB / 0.7677 GB, free: 122.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002378/1.095, allocations: 1.794 MB / 0.7695 GB, free: 120.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009545/1.096, allocations: 0.5569 MB / 0.77 GB, free: 120.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.589e-05/1.096, allocations: 305 kB / 0.7703 GB, free: 120.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005814/1.102, allocations: 3.48 MB / 0.7737 GB, free: 118.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008113/1.11, allocations: 5.933 MB / 0.7795 GB, free: 114.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01312/1.123, allocations: 10.1 MB / 0.7893 GB, free: 107.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.815e-05/1.123, allocations: 22.09 kB / 0.7894 GB, free: 107.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=916) (initialization): time 0.02333/1.146, allocations: 11.02 MB / 0.8001 GB, free: 98.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/1.146, allocations: 36 kB / 0.8002 GB, free: 98.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001689/1.147, allocations: 80 kB / 0.8002 GB, free: 98.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003802/1.15, allocations: 1.38 MB / 0.8016 GB, free: 97.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006452/1.157, allocations: 1.611 MB / 0.8032 GB, free: 96.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0151/1.172, allocations: 10.59 MB / 0.8135 GB, free: 85.99 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005937/1.178, allocations: 411.3 kB / 0.8139 GB, free: 85.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001509/1.18, allocations: 332 kB / 0.8142 GB, free: 85.26 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.008625/1.188, allocations: 4.162 MB / 0.8183 GB, free: 81.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001718/1.19, allocations: 482.2 kB / 0.8187 GB, free: 80.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/1.207, allocations: 8.554 MB / 0.8271 GB, free: 71.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01209/1.219, allocations: 7.155 MB / 0.8341 GB, free: 64.73 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.992e-05/1.219, allocations: 12 kB / 0.8341 GB, free: 64.71 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.534e-05/1.219, allocations: 27.89 kB / 0.8341 GB, free: 64.69 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03841/1.257, allocations: 19.43 MB / 0.8531 GB, free: 44.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.673e-05/1.257, allocations: 3.938 kB / 0.8531 GB, free: 44.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004208/1.262, allocations: 0.9401 MB / 0.854 GB, free: 44.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004105/1.266, allocations: 1.242 MB / 0.8552 GB, free: 42.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001461/1.267, allocations: 116 kB / 0.8553 GB, free: 42.69 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/1.28, allocations: 9.32 MB / 0.8644 GB, free: 33.24 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/1.28, allocations: 3.938 kB / 0.8644 GB, free: 33.24 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02044/1.301, allocations: 12.39 MB / 0.8765 GB, free: 20.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003683/1.304, allocations: 1.174 MB / 0.8777 GB, free: 19.44 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002046/1.307, allocations: 95.98 kB / 0.8778 GB, free: 19.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003969/1.31, allocations: 275.8 kB / 0.878 GB, free: 19.08 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001238/1.312, allocations: 360.4 kB / 0.8784 GB, free: 18.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007194/1.312, allocations: 148 kB / 0.8785 GB, free: 18.58 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005422/1.318, allocations: 2.815 MB / 0.8813 GB, free: 15.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.318, allocations: 0 / 0.8813 GB, free: 15.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008709/1.327, allocations: 1.939 MB / 0.8832 GB, free: 13.82 MB / 494.1 MB 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.02018/1.347, allocations: 13.16 MB / 0.896 GB, free: 472 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2103/1.557, allocations: 8.782 MB / 0.9046 GB, free: 170.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.557, allocations: 1.031 kB / 0.9046 GB, free: 170.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00843/1.566, allocations: 4.215 MB / 0.9087 GB, free: 169.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00854/1.574, allocations: 1.062 MB / 0.9097 GB, free: 169.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1507/1.725, allocations: 80.71 MB / 0.9886 GB, free: 103.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01048/1.736, allocations: 7.009 MB / 0.9954 GB, free: 96.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007583/1.743, allocations: 2.317 MB / 0.9977 GB, free: 93.75 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0072/1.75, allocations: 3.838 MB / 1.001 GB, free: 89.91 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/1.75, allocations: 0 / 1.001 GB, free: 89.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3786/2.129, allocations: 146.2 MB / 1.144 GB, free: 118.9 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/2.129, allocations: 224 kB / 1.144 GB, free: 118.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.785/6.914, allocations: 0 / 1.144 GB, free: 118.6 MB / 494.1 MB (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)