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.0009842/0.0009842, allocations: 180.9 kB / 7.65 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.04125/0.04125, allocations: 8.708 MB / 16.78 MB, free: 3.387 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.456/1.456, allocations: 221.5 MB / 240.9 MB, free: 13.19 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.001037/0.001037, allocations: 95.92 kB / 293.9 MB, free: 7.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.733e-05/1.737e-05, allocations: 0 / 352.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1174, allocations: 52.55 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4301/0.5475, allocations: 81.38 MB / 486.7 MB, free: 5.711 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.5478, allocations: 64.53 kB / 486.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01172/0.5595, allocations: 5.068 MB / 491.8 MB, free: 1.434 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5595, allocations: 4 kB / 491.8 MB, free: 1.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.5595, allocations: 4 kB / 491.8 MB, free: 1.426 MB / 346.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.0006499/0.5602, allocations: 0.529 MB / 492.3 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.5603, allocations: 15.98 kB / 492.3 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.579e-05/0.5603, allocations: 31.62 kB / 492.4 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.5606, allocations: 254.7 kB / 492.6 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.5607, allocations: 12 kB / 492.6 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.703e-05/0.5607, allocations: 20 kB / 492.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002768/0.561, allocations: 165.5 kB / 492.8 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.5613, allocations: 212.2 kB / 493 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.5614, allocations: 9.125 kB / 493 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.5614, allocations: 0 / 493 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5614, allocations: 4 kB / 493 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.5631, allocations: 1.044 MB / 494.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002724/0.5634, allocations: 127.5 kB / 494.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.983e-05/0.5635, allocations: 52.86 kB / 494.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.5635, allocations: 3.938 kB / 494.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.5636, allocations: 38.84 kB / 494.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.5636, allocations: 0 / 494.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009164/0.5645, allocations: 470 kB / 494.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.5646, allocations: 67.3 kB / 494.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.5647, allocations: 152.6 kB / 495 MB, free: 14.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.5648, allocations: 25.7 kB / 495 MB, free: 13.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.5649, allocations: 183.9 kB / 495.2 MB, free: 13.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.565, allocations: 59.11 kB / 495.2 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.565, allocations: 0 / 495.2 MB, free: 13.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.5651, allocations: 330.8 kB / 495.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.918e-05/0.5652, allocations: 40 kB / 495.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.5653, allocations: 80.28 kB / 495.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.282e-05/0.5654, allocations: 54.11 kB / 495.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.5654, allocations: 4 kB / 495.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002982/0.5657, allocations: 182.2 kB / 495.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.5658, allocations: 5.406 kB / 495.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.5658, allocations: 5.25 kB / 495.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001379/0.5659, allocations: 20.84 kB / 495.9 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002022/0.5661, allocations: 55.98 kB / 496 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.5672, allocations: 1.219 MB / 497.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.5673, allocations: 12.09 kB / 497.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.5673, allocations: 8 kB / 497.2 MB, free: 11.61 MB / 362.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 9.652e-05/0.5675, allocations: 105 kB / 497.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002518/0.5677, allocations: 152 kB / 497.5 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.5678, allocations: 19.77 kB / 497.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.876e-05/0.5678, allocations: 17.97 kB / 497.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5678, allocations: 4 kB / 497.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.5678, allocations: 0 / 497.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.5678, allocations: 7.984 kB / 497.5 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006437/0.5685, allocations: 0.5131 MB / 498 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5685, allocations: 2.188 kB / 498 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.5687, allocations: 51.97 kB / 498.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.912e-05/0.5688, allocations: 12.86 kB / 498.1 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.5688, allocations: 8 kB / 498.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008048/0.5696, allocations: 1.219 MB / 499.3 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5697, allocations: 0 / 499.3 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003943/0.5701, allocations: 346.9 kB / 499.7 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.045e-05/0.5701, allocations: 92.95 kB / 499.8 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.5702, allocations: 7.953 kB / 499.8 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.5703, allocations: 15.98 kB / 499.8 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.245e-05/0.5704, allocations: 8.641 kB / 499.8 MB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.5704, allocations: 5.188 kB / 499.8 MB, free: 8.805 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001149/0.5705, allocations: 140.3 kB / 499.9 MB, free: 8.668 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5705, allocations: 0 / 499.9 MB, free: 8.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003165/0.5709, allocations: 48 kB / 500 MB, free: 8.621 MB / 362.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.0007362/0.5716, allocations: 1.005 MB / 0.4892 GB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004051/0.572, allocations: 224.3 kB / 0.4895 GB, free: 7.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.572, allocations: 5.125 kB / 0.4895 GB, free: 7.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.5723, allocations: 170.1 kB / 0.4896 GB, free: 7.168 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.5726, allocations: 30.52 kB / 0.4897 GB, free: 7.137 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.5737, allocations: 0.5311 MB / 0.4902 GB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.574, allocations: 0.7672 MB / 0.4909 GB, free: 5.773 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.624e-05/0.5741, allocations: 25.84 kB / 0.4909 GB, free: 5.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.5743, allocations: 79.41 kB / 0.491 GB, free: 5.672 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5743, allocations: 0 / 0.491 GB, free: 5.672 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.5989, allocations: 3.511 MB / 0.4944 GB, free: 2.254 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002691/0.5992, allocations: 125.6 kB / 0.4946 GB, free: 2.066 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.223, allocations: 7.094 kB / 0.4946 GB, free: 2.062 MB / 362.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)