Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.001215/0.001215, allocations: 174.7 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.03959/0.03959, allocations: 8.7 MB / 21.96 MB, free: 3.367 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.422/1.422, allocations: 221.4 MB / 246 MB, free: 3.559 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.0009245/0.0009244, allocations: 92.36 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.75e-05/3.769e-05, allocations: 4 kB / 359.6 MB, free: 6.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3076, allocations: 52.54 MB / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1137/0.4213, allocations: 82.05 MB / 494.2 MB, free: 4.391 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.4216, allocations: 71.94 kB / 494.3 MB, free: 4.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01359/0.4352, allocations: 5.12 MB / 499.4 MB, free: 15.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4352, allocations: 4 kB / 499.4 MB, free: 15.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.4352, allocations: 8 kB / 499.4 MB, free: 15.18 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007556/0.436, allocations: 0.5218 MB / 499.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.436, allocations: 8.031 kB / 499.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.632e-05/0.4361, allocations: 70.53 kB / 500 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.4362, allocations: 31.62 kB / 0.4883 GB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.4365, allocations: 262.8 kB / 0.4886 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.4366, allocations: 24.78 kB / 0.4886 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.976e-05/0.4366, allocations: 28 kB / 0.4886 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000454/0.4371, allocations: 251.8 kB / 0.4888 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.4371, allocations: 3.906 kB / 0.4889 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.4372, allocations: 15.95 kB / 0.4889 GB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.4372, allocations: 8 kB / 0.4889 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.4375, allocations: 187 kB / 0.4891 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.4392, allocations: 1.095 MB / 0.4901 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.4395, allocations: 145.8 kB / 0.4903 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.4397, allocations: 64.86 kB / 0.4903 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.4397, allocations: 0 / 0.4903 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.4397, allocations: 30.56 kB / 0.4904 GB, free: 12.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.4397, allocations: 0 / 0.4904 GB, free: 12.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009219/0.4407, allocations: 0.4904 MB / 0.4908 GB, free: 11.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.4407, allocations: 59.39 kB / 0.4909 GB, free: 11.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.4409, allocations: 181.8 kB / 0.4911 GB, free: 11.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.4409, allocations: 25.7 kB / 0.4911 GB, free: 11.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.4411, allocations: 184 kB / 0.4913 GB, free: 11.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.708e-05/0.4411, allocations: 59.09 kB / 0.4913 GB, free: 11.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.125e-06/0.4411, allocations: 4 kB / 0.4913 GB, free: 11.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4413, allocations: 330.8 kB / 0.4916 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.754e-05/0.4414, allocations: 44 kB / 0.4917 GB, free: 10.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.4415, allocations: 84.3 kB / 0.4918 GB, free: 10.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.4416, allocations: 61.53 kB / 0.4918 GB, free: 10.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4416, allocations: 0 / 0.4918 GB, free: 10.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003254/0.4419, allocations: 195.9 kB / 0.492 GB, free: 10.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.442, allocations: 12.02 kB / 0.492 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.442, allocations: 4 kB / 0.492 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001307/0.4421, allocations: 24.75 kB / 0.492 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.4423, allocations: 43.97 kB / 0.4921 GB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001093/0.4434, allocations: 1.272 MB / 0.4933 GB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.4436, allocations: 19.98 kB / 0.4933 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.4436, allocations: 4 kB / 0.4934 GB, free: 8.918 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.4437, allocations: 121.1 kB / 0.4935 GB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.4438, allocations: 15.81 kB / 0.4935 GB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.131e-05/0.4438, allocations: 21.61 kB / 0.4935 GB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4438, allocations: 4 kB / 0.4935 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4438, allocations: 7.984 kB / 0.4935 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4438, allocations: 0 / 0.4935 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000754/0.4446, allocations: 0.5808 MB / 0.4941 GB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4446, allocations: 3.938 kB / 0.4941 GB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002045/0.4448, allocations: 39.91 kB / 0.4941 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.533e-05/0.4449, allocations: 24.84 kB / 0.4941 GB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.4449, allocations: 7.984 kB / 0.4942 GB, free: 8.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008893/0.4458, allocations: 1.276 MB / 0.4954 GB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4459, allocations: 0 / 0.4954 GB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004339/0.4463, allocations: 360.3 kB / 0.4957 GB, free: 6.227 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.749e-05/0.4464, allocations: 96.92 kB / 0.4958 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.4464, allocations: 3.953 kB / 0.4958 GB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.4466, allocations: 24.03 kB / 0.4959 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.4466, allocations: 11.92 kB / 0.4959 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.4466, allocations: 4 kB / 0.4959 GB, free: 6.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.4468, allocations: 148.5 kB / 0.496 GB, free: 5.926 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4468, allocations: 0 / 0.496 GB, free: 5.926 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000316/0.4471, allocations: 52 kB / 0.4961 GB, free: 5.875 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,load.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007502/0.4479, allocations: 1.02 MB / 0.4971 GB, free: 4.809 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.4483, allocations: 250.5 kB / 0.4973 GB, free: 4.551 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4483, allocations: 0 / 0.4973 GB, free: 4.551 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.4485, allocations: 174.6 kB / 0.4975 GB, free: 4.367 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.4489, allocations: 28.17 kB / 0.4975 GB, free: 4.336 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.45, allocations: 0.5509 MB / 0.498 GB, free: 3.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.4503, allocations: 0.7636 MB / 0.4988 GB, free: 2.953 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.721e-05/0.4504, allocations: 21.53 kB / 0.4988 GB, free: 2.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.4505, allocations: 79.41 kB / 0.4989 GB, free: 2.852 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4505, allocations: 0 / 0.4989 GB, free: 2.852 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.244/0.6945, allocations: 4.145 MB / 0.5029 GB, free: 92.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000143/0.6947, allocations: 163.3 kB / 0.5031 GB, free: 92.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/2.361, allocations: 0.7812 kB / 0.5031 GB, free: 92.23 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)