Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",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.001128/0.001128, allocations: 174.6 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.03955/0.03955, allocations: 8.704 MB / 21.96 MB, free: 3.734 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.349/1.349, allocations: 221.4 MB / 246 MB, free: 3.602 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.0009975/0.0009974, allocations: 88.55 kB / 299.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.527e-05, allocations: 4 kB / 359.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2793, allocations: 52.53 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.446/0.7254, allocations: 132 MB / 0.5314 GB, free: 40.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.7256, allocations: 78.31 kB / 0.5315 GB, free: 40.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.325/2.051, allocations: 354.4 MB / 0.8776 GB, free: 53.57 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.366e-06/2.051, allocations: 0 / 0.8776 GB, free: 53.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009151/2.052, allocations: 223.8 kB / 0.8778 GB, free: 53.55 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03702/2.089, allocations: 9.458 MB / 0.887 GB, free: 50.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/2.089, allocations: 7.906 kB / 0.887 GB, free: 50.71 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00915/2.098, allocations: 1.604 MB / 0.8886 GB, free: 50.57 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02629/2.124, allocations: 4.284 MB / 0.8928 GB, free: 50.03 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02498/2.149, allocations: 8.424 MB / 0.901 GB, free: 49.03 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00134/2.151, allocations: 0.6874 MB / 0.9017 GB, free: 49.01 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005577/2.156, allocations: 0.9148 MB / 0.9026 GB, free: 49 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05281/2.209, allocations: 15.79 MB / 0.918 GB, free: 47.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006908/2.21, allocations: 10.41 kB / 0.918 GB, free: 47.89 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005062/2.215, allocations: 403.3 kB / 0.9184 GB, free: 47.89 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001121/2.216, allocations: 0.749 MB / 0.9191 GB, free: 47.86 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03762/2.254, allocations: 13.81 MB / 0.9326 GB, free: 46.19 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1102/2.364, allocations: 52.59 MB / 0.984 GB, free: 13.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02352/2.387, allocations: 19.98 MB / 1.003 GB, free: 9.184 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007675/2.395, allocations: 3.581 MB / 1.007 GB, free: 5.945 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007442/2.396, allocations: 176.2 kB / 1.007 GB, free: 5.785 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001194/2.396, allocations: 82.09 kB / 1.007 GB, free: 5.695 MB / 490.7 MB Notification: Performance of pre-optimization done (n=453): time 8.576e-06/2.396, allocations: 0 / 1.007 GB, free: 5.695 MB / 490.7 MB Notification: Performance of matching and sorting (n=458): time 0.03613/2.432, allocations: 13.79 MB / 1.021 GB, free: 9.477 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/2.432, allocations: 98.97 kB / 1.021 GB, free: 9.367 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0106/2.443, allocations: 3.934 MB / 1.025 GB, free: 5.855 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001085/2.444, allocations: 97.7 kB / 1.025 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003943/2.448, allocations: 4.198 MB / 1.029 GB, free: 2.031 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002968/2.451, allocations: 1.555 MB / 1.03 GB, free: 0.6328 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006457/2.452, allocations: 128 kB / 1.03 GB, free: 0.5078 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005335/2.452, allocations: 0.5536 MB / 1.031 GB, free: 20 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4198/2.872, allocations: 2.987 MB / 1.034 GB, free: 83.52 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007893/2.88, allocations: 5.103 MB / 1.039 GB, free: 80.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007371/2.887, allocations: 4.206 MB / 1.043 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.323e-05/2.888, allocations: 16.31 kB / 1.043 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01884/2.906, allocations: 9.68 MB / 1.052 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.149e-05/2.906, allocations: 34.75 kB / 1.053 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001929/2.907, allocations: 71.66 kB / 1.053 GB, free: 80.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003734/2.91, allocations: 1.385 MB / 1.054 GB, free: 80.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005469/2.916, allocations: 1.38 MB / 1.055 GB, free: 80.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01608/2.932, allocations: 11.57 MB / 1.067 GB, free: 78.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005849/2.938, allocations: 358.8 kB / 1.067 GB, free: 78.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001595/2.94, allocations: 298 kB / 1.067 GB, free: 78.04 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00153/2.941, allocations: 496.7 kB / 1.068 GB, free: 77.93 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/2.943, allocations: 457.8 kB / 1.068 GB, free: 77.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01464/2.957, allocations: 8.433 MB / 1.076 GB, free: 77.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009754/2.967, allocations: 6.137 MB / 1.082 GB, free: 77.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.238e-05/2.967, allocations: 11.19 kB / 1.082 GB, free: 77.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-05/2.967, allocations: 27.12 kB / 1.082 GB, free: 77.42 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03711/3.004, allocations: 17.84 MB / 1.1 GB, free: 75.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-05/3.004, allocations: 6.938 kB / 1.1 GB, free: 75.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003356/3.008, allocations: 0.7948 MB / 1.101 GB, free: 75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003575/3.011, allocations: 1.253 MB / 1.102 GB, free: 74.74 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007381/3.012, allocations: 104.8 kB / 1.102 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/3.026, allocations: 10.52 MB / 1.112 GB, free: 68.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/3.026, allocations: 14.84 kB / 1.112 GB, free: 68.39 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02116/3.047, allocations: 11.97 MB / 1.124 GB, free: 62.43 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003674/3.051, allocations: 1.136 MB / 1.125 GB, free: 61.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001232/3.052, allocations: 90.31 kB / 1.125 GB, free: 61.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002961/3.055, allocations: 251.1 kB / 1.125 GB, free: 61.64 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008282/3.056, allocations: 329.7 kB / 1.126 GB, free: 61.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003209/3.056, allocations: 137.2 kB / 1.126 GB, free: 61.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005525/3.062, allocations: 2.998 MB / 1.129 GB, free: 60.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.91e-07/3.062, allocations: 0 / 1.129 GB, free: 60.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01017/3.072, allocations: 1.785 MB / 1.13 GB, free: 60.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02137/3.093, allocations: 15.04 MB / 1.145 GB, free: 51.27 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01345/3.107, allocations: 7.81 MB / 1.153 GB, free: 44.21 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/3.107, allocations: 0 / 1.153 GB, free: 44.21 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006535/3.113, allocations: 3.878 MB / 1.157 GB, free: 40.69 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006284/3.12, allocations: 0.93 MB / 1.157 GB, free: 39.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05562/3.175, allocations: 18.78 MB / 1.176 GB, free: 23.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01331/3.189, allocations: 6.682 MB / 1.182 GB, free: 18.52 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007635/3.196, allocations: 2.137 MB / 1.184 GB, free: 17.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006975/3.203, allocations: 3.527 MB / 1.188 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.492e-06/3.203, allocations: 0 / 1.188 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6067/3.81, allocations: 141 MB / 1.326 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/3.81, allocations: 203 kB / 1.326 GB, free: 42.79 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.991/9.802, allocations: 0 / 1.326 GB, free: 42.79 MB / 0.4948 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)