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.001096/0.001096, allocations: 173.9 kB / 7.648 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.05328/0.05328, allocations: 8.712 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.655/1.655, allocations: 221.5 MB / 240.8 MB, free: 13.14 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.0009927/0.0009929, allocations: 101.9 kB / 293.9 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.037e-05/2.04e-05, allocations: 4 kB / 352.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1194, allocations: 52.54 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.495/0.6144, allocations: 131.4 MB / 0.5241 GB, free: 4.328 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.6148, allocations: 79.47 kB / 0.5241 GB, free: 4.293 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.285/1.9, allocations: 350.6 MB / 0.8666 GB, free: 24.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.9, allocations: 4 kB / 0.8666 GB, free: 24.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006497/1.901, allocations: 224.6 kB / 0.8668 GB, free: 24.92 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03308/1.934, allocations: 9.446 MB / 0.876 GB, free: 16.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/1.934, allocations: 11.98 kB / 0.876 GB, free: 16.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02471/1.958, allocations: 4.276 MB / 0.8802 GB, free: 12.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02057/1.979, allocations: 8.422 MB / 0.8884 GB, free: 3.707 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005365/1.98, allocations: 304 kB / 0.8887 GB, free: 3.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003618/1.983, allocations: 0.535 MB / 0.8892 GB, free: 2.875 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02824/2.011, allocations: 12.53 MB / 0.9015 GB, free: 6.336 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3724/2.384, allocations: 14.29 MB / 0.9154 GB, free: 35.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005098/2.384, allocations: 13.5 kB / 0.9154 GB, free: 35.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003991/2.388, allocations: 6.031 kB / 0.9154 GB, free: 35.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009639/2.389, allocations: 0.751 MB / 0.9162 GB, free: 35.21 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09679/2.486, allocations: 51.45 MB / 0.9664 GB, free: 27.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02608/2.512, allocations: 20.32 MB / 0.9862 GB, free: 29.62 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006555/2.519, allocations: 3.51 MB / 0.9897 GB, free: 28.47 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000686/2.52, allocations: 179.9 kB / 0.9898 GB, free: 28.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.169e-05/2.52, allocations: 84.41 kB / 0.9899 GB, free: 28.29 MB / 474.7 MB Notification: Performance of pre-optimization done (n=453): time 6.091e-06/2.52, allocations: 0 / 0.9899 GB, free: 28.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=458): time 0.03897/2.559, allocations: 16.48 MB / 1.006 GB, free: 21.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/2.559, allocations: 101.8 kB / 1.006 GB, free: 21.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005528/2.564, allocations: 3.571 MB / 1.01 GB, free: 20.36 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001032/2.566, allocations: 29.7 kB / 1.01 GB, free: 20.32 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002785/2.568, allocations: 4.197 MB / 1.014 GB, free: 17.15 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002193/2.571, allocations: 1.489 MB / 1.015 GB, free: 15.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004046/2.571, allocations: 0 / 1.015 GB, free: 15.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000389/2.571, allocations: 0.5617 MB / 1.016 GB, free: 15.56 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003961/2.575, allocations: 3.056 MB / 1.019 GB, free: 14.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005779/2.581, allocations: 5.14 MB / 1.024 GB, free: 10.35 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/2.592, allocations: 5.15 MB / 1.029 GB, free: 8.457 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/2.592, allocations: 20.31 kB / 1.029 GB, free: 8.457 MB / 474.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02124/2.613, allocations: 10.26 MB / 1.039 GB, free: 5.086 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.737e-05/2.613, allocations: 37.5 kB / 1.039 GB, free: 5.082 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001225/2.614, allocations: 70.67 kB / 1.039 GB, free: 5.078 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00354/2.617, allocations: 1.381 MB / 1.04 GB, free: 4.812 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005533/2.623, allocations: 1.424 MB / 1.042 GB, free: 4.766 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01595/2.639, allocations: 11.23 MB / 1.053 GB, free: 14.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006242/2.645, allocations: 286.9 kB / 1.053 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002027/2.647, allocations: 296.6 kB / 1.053 GB, free: 14.16 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001656/2.649, allocations: 292 kB / 1.053 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01349/2.662, allocations: 7.486 MB / 1.061 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/2.663, allocations: 447.9 kB / 1.061 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01707/2.681, allocations: 9.252 MB / 1.07 GB, free: 4.723 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01763/2.698, allocations: 7.147 MB / 1.077 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.333e-05/2.698, allocations: 14.52 kB / 1.077 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001686/2.698, allocations: 23.77 kB / 1.077 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04067/2.739, allocations: 17.28 MB / 1.094 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-05/2.739, allocations: 4 kB / 1.094 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004202/2.743, allocations: 0.844 MB / 1.095 GB, free: 0.5039 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3482/3.092, allocations: 1.293 MB / 1.096 GB, free: 82.17 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00119/3.093, allocations: 43.73 kB / 1.096 GB, free: 82.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/3.106, allocations: 10.22 MB / 1.106 GB, free: 79.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/3.106, allocations: 10.03 kB / 1.106 GB, free: 79.65 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02009/3.127, allocations: 12.93 MB / 1.119 GB, free: 78.19 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004044/3.131, allocations: 1.162 MB / 1.12 GB, free: 78.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001483/3.132, allocations: 8.969 kB / 1.12 GB, free: 78.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003527/3.136, allocations: 216.4 kB / 1.12 GB, free: 78.09 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009015/3.137, allocations: 321.5 kB / 1.121 GB, free: 78.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003319/3.137, allocations: 134.7 kB / 1.121 GB, free: 78.08 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00478/3.142, allocations: 2.671 MB / 1.123 GB, free: 77.93 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.22e-07/3.142, allocations: 0 / 1.123 GB, free: 77.93 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008867/3.151, allocations: 1.577 MB / 1.125 GB, free: 77.93 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (418): * Single equations (assignments): 412 * 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,41.8%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02388/3.175, allocations: 15.61 MB / 1.14 GB, free: 74.33 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01709/3.192, allocations: 7.854 MB / 1.148 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/3.192, allocations: 0 / 1.148 GB, free: 73.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007336/3.199, allocations: 3.96 MB / 1.152 GB, free: 73.66 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00588/3.205, allocations: 0.7519 MB / 1.152 GB, free: 73.64 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04508/3.25, allocations: 18.56 MB / 1.17 GB, free: 70.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009751/3.26, allocations: 6.658 MB / 1.177 GB, free: 69.62 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007727/3.268, allocations: 2.143 MB / 1.179 GB, free: 69.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00666/3.274, allocations: 3.503 MB / 1.182 GB, free: 69.44 MB / 0.4948 GB Notification: Performance of SimCode: time 6.51e-07/3.274, allocations: 0 / 1.182 GB, free: 69.44 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5316/3.806, allocations: 131.1 MB / 1.311 GB, free: 75.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/3.806, allocations: 168.9 kB / 1.311 GB, free: 74.83 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.471/9.277, allocations: 0 / 1.311 GB, free: 74.83 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)