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.004363/0.004363, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03755/0.03755, allocations: 8.794 MB / 24.65 MB, free: 4.113 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.252/1.252, allocations: 223.2 MB / 250.7 MB, free: 6.574 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.0008364/0.0008364, allocations: 100.9 kB / 304 MB, free: 4 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003305, allocations: 15.98 kB / 367.2 MB, free: 4.844 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2389, allocations: 52.53 MB / 419.7 MB, free: 48.21 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09286/0.3318, allocations: 82.12 MB / 0.49 GB, free: 6.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.332, allocations: 63.97 kB / 0.4901 GB, free: 6.887 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01248/0.3445, allocations: 5.133 MB / 0.4951 GB, free: 1.754 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3445, allocations: 3.938 kB / 0.4951 GB, free: 1.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.3445, allocations: 8 kB / 0.4951 GB, free: 1.742 MB / 362.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.0007114/0.3453, allocations: 0.5457 MB / 0.4957 GB, free: 1.148 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3453, allocations: 8.562 kB / 0.4957 GB, free: 1.141 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.756e-05/0.3454, allocations: 66.53 kB / 0.4957 GB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.064e-05/0.3454, allocations: 35.62 kB / 0.4958 GB, free: 1.031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.3457, allocations: 263.3 kB / 0.496 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.3457, allocations: 20.66 kB / 0.496 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.881e-05/0.3458, allocations: 35.91 kB / 0.4961 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.3463, allocations: 274 kB / 0.4963 GB, free: 412 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3463, allocations: 0 / 0.4963 GB, free: 412 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.3463, allocations: 23.94 kB / 0.4964 GB, free: 388 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.3463, allocations: 8 kB / 0.4964 GB, free: 380 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004168/0.3468, allocations: 218.5 kB / 0.4966 GB, free: 164 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.3483, allocations: 1.09 MB / 0.4976 GB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.3486, allocations: 146.5 kB / 0.4978 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.3487, allocations: 3.984 kB / 0.4978 GB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3487, allocations: 42.5 kB / 0.4978 GB, free: 14.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.3487, allocations: 0 / 0.4978 GB, free: 14.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001268/0.35, allocations: 0.7067 MB / 0.4985 GB, free: 14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.35, allocations: 63.36 kB / 0.4986 GB, free: 13.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.3502, allocations: 170.4 kB / 0.4987 GB, free: 13.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.3502, allocations: 33.7 kB / 0.4988 GB, free: 13.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.287e-05/0.3503, allocations: 188.1 kB / 0.4989 GB, free: 13.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.916e-05/0.3504, allocations: 55.19 kB / 0.499 GB, free: 13.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/0.3504, allocations: 8 kB / 0.499 GB, free: 13.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.045e-05/0.3505, allocations: 326.8 kB / 0.4993 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.3506, allocations: 59.95 kB / 0.4994 GB, free: 13.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.3508, allocations: 105.1 kB / 0.4995 GB, free: 12.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.351, allocations: 87.77 kB / 0.4996 GB, free: 12.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.351, allocations: 0 / 0.4996 GB, free: 12.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004424/0.3514, allocations: 232.8 kB / 0.4998 GB, free: 12.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.3515, allocations: 8.125 kB / 0.4998 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3515, allocations: 4 kB / 0.4998 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001179/0.3516, allocations: 24.8 kB / 0.4998 GB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.3518, allocations: 51.91 kB / 0.4999 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008123/0.3526, allocations: 1.272 MB / 0.5011 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.3528, allocations: 19.86 kB / 0.5011 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.3528, allocations: 8 kB / 0.5011 GB, free: 11.12 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 () * Number of clocked 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.0001389/0.3529, allocations: 149 kB / 0.5013 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.353, allocations: 15.81 kB / 0.5013 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.265e-05/0.353, allocations: 21.86 kB / 0.5013 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.353, allocations: 7.953 kB / 0.5013 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.353, allocations: 0 / 0.5013 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3531, allocations: 0 / 0.5013 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007954/0.3539, allocations: 0.6217 MB / 0.5019 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3539, allocations: 4 kB / 0.5019 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.3541, allocations: 35.98 kB / 0.502 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.071e-05/0.3542, allocations: 24.91 kB / 0.502 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.3542, allocations: 4 kB / 0.502 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007266/0.3549, allocations: 1.284 MB / 0.5032 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3549, allocations: 0 / 0.5032 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.3555, allocations: 405.3 kB / 0.5036 GB, free: 8.316 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.402e-05/0.3556, allocations: 88.92 kB / 0.5037 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.3556, allocations: 8.047 kB / 0.5037 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.3558, allocations: 23.94 kB / 0.5038 GB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.3558, allocations: 15.92 kB / 0.5038 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.3559, allocations: 7.984 kB / 0.5038 GB, free: 8.156 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001064/0.356, allocations: 141.4 kB / 0.5039 GB, free: 8.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.356, allocations: 0 / 0.5039 GB, free: 8.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003093/0.3563, allocations: 56 kB / 0.504 GB, free: 7.965 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 () * Number of clocked 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.000861/0.3572, allocations: 1.08 MB / 0.505 GB, free: 6.844 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005018/0.3577, allocations: 280.3 kB / 0.5053 GB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3577, allocations: 3.938 kB / 0.5053 GB, free: 6.555 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.358, allocations: 199 kB / 0.5055 GB, free: 6.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.3583, allocations: 28.17 kB / 0.5055 GB, free: 6.316 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.3607, allocations: 2.206 MB / 0.5077 GB, free: 4.043 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.3609, allocations: 0.7673 MB / 0.5084 GB, free: 3.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.046e-05/0.361, allocations: 33.45 kB / 0.5084 GB, free: 3.219 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.3611, allocations: 79.41 kB / 0.5085 GB, free: 3.141 MB / 378.7 MB Notification: Performance of SimCode: time 3.046e-06/0.3612, allocations: 0 / 0.5085 GB, free: 3.141 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0155/0.3767, allocations: 4.17 MB / 0.5126 GB, free: 15.13 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.3769, allocations: 186.5 kB / 0.5128 GB, free: 14.89 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/1.991, allocations: 0 / 0.5128 GB, free: 14.89 MB / 394.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)