Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TestBrush.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.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",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.001292/0.001292, 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.03789/0.03789, allocations: 8.702 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.404/1.404, allocations: 221.4 MB / 246 MB, free: 3.605 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.001075/0.001075, allocations: 84.67 kB / 299.1 MB, free: 3.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.346e-05/3.356e-05, allocations: 4 kB / 359.6 MB, free: 6.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.257, allocations: 52.53 MB / 412.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3604, allocations: 78.85 MB / 491 MB, free: 7.578 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.3606, allocations: 75.89 kB / 491.1 MB, free: 7.504 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005233/0.3659, allocations: 1.935 MB / 493 MB, free: 5.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3659, allocations: 0 / 493 MB, free: 5.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.3659, allocations: 4 kB / 493 MB, free: 5.566 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004269/0.3664, allocations: 378.3 kB / 493.4 MB, free: 5.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.3664, allocations: 8.031 kB / 493.4 MB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.235e-05/0.3665, allocations: 46.52 kB / 493.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.3665, allocations: 7.906 kB / 493.4 MB, free: 5.082 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.3667, allocations: 179.1 kB / 493.6 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.3667, allocations: 4 kB / 493.6 MB, free: 4.863 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.3667, allocations: 4 kB / 493.6 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/0.3669, allocations: 81 kB / 493.7 MB, free: 4.777 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.3669, allocations: 4 kB / 493.7 MB, free: 4.773 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.3669, allocations: 0 / 493.7 MB, free: 4.773 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3669, allocations: 3.953 kB / 493.7 MB, free: 4.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.174e-05/0.367, allocations: 40 kB / 493.7 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006057/0.3676, allocations: 411.5 kB / 494.2 MB, free: 4.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.498e-05/0.3677, allocations: 30.52 kB / 494.2 MB, free: 4.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.863e-05/0.3678, allocations: 12.92 kB / 494.2 MB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.3678, allocations: 0 / 494.2 MB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.3678, allocations: 34.56 kB / 494.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 2.975e-06/0.3678, allocations: 0 / 494.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001701/0.368, allocations: 57.53 kB / 494.3 MB, free: 4.109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.368, allocations: 55.41 kB / 494.3 MB, free: 4.043 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.895e-05/0.3681, allocations: 113 kB / 494.4 MB, free: 3.926 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.3682, allocations: 33.7 kB / 494.5 MB, free: 3.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.3682, allocations: 103.9 kB / 494.6 MB, free: 3.781 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.997e-06/0.3683, allocations: 7.938 kB / 494.6 MB, free: 3.773 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-06/0.3683, allocations: 0 / 494.6 MB, free: 3.773 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3684, allocations: 318.8 kB / 494.9 MB, free: 3.453 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.42e-05/0.3684, allocations: 12 kB / 494.9 MB, free: 3.441 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.069e-05/0.3685, allocations: 26.56 kB / 494.9 MB, free: 3.406 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.357e-05/0.3685, allocations: 12 kB / 495 MB, free: 3.395 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.3685, allocations: 4 kB / 495 MB, free: 3.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.896e-05/0.3686, allocations: 61.62 kB / 495 MB, free: 3.324 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3687, allocations: 4 kB / 495 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.3687, allocations: 4 kB / 495 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.3687, allocations: 0 / 495 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.3688, allocations: 19.92 kB / 495 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.3688, allocations: 0 / 495 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.166e-05/0.3689, allocations: 16 kB / 495.1 MB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.3689, allocations: 3.938 kB / 495.1 MB, free: 3.277 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.479e-05/0.369, allocations: 108.9 kB / 495.2 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.369, allocations: 3.984 kB / 495.2 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.33e-05/0.3691, allocations: 11.66 kB / 495.2 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3691, allocations: 0 / 495.2 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3691, allocations: 0 / 495.2 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.3691, allocations: 0 / 495.2 MB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.3693, allocations: 181.6 kB / 495.4 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3693, allocations: 4.094 kB / 495.4 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.78e-05/0.3694, allocations: 15.98 kB / 495.4 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3694, allocations: 3.984 kB / 495.4 MB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.3694, allocations: 0 / 495.4 MB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3694, allocations: 0 / 495.4 MB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3694, allocations: 0 / 495.4 MB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001437/0.3696, allocations: 163.3 kB / 495.5 MB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.993e-05/0.3696, allocations: 77.11 kB / 495.6 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.3696, allocations: 0 / 495.6 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.3697, allocations: 15.98 kB / 495.6 MB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.307e-05/0.3698, allocations: 0 / 495.6 MB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.3698, allocations: 0 / 495.6 MB, free: 2.617 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.834e-05/0.3698, allocations: 99.27 kB / 495.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3698, allocations: 0 / 495.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002456/0.3701, allocations: 23.84 kB / 495.8 MB, free: 2.496 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004452/0.3706, allocations: 0.6741 MB / 496.4 MB, free: 1.797 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001076/0.3707, allocations: 27.94 kB / 496.5 MB, free: 1.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3707, allocations: 0 / 496.5 MB, free: 1.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.904e-05/0.3707, allocations: 12.22 kB / 496.5 MB, free: 1.758 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/0.3709, allocations: 14.39 kB / 496.5 MB, free: 1.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003979/0.3713, allocations: 122.6 kB / 496.6 MB, free: 1.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.3716, allocations: 0.6887 MB / 497.3 MB, free: 0.875 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.315e-05/0.3717, allocations: 4 kB / 497.3 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.3717, allocations: 31.36 kB / 497.3 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3717, allocations: 4 kB / 497.3 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01312/0.3848, allocations: 1.467 MB / 498.8 MB, free: 15.46 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.3851, allocations: 139.1 kB / 498.9 MB, free: 15.24 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.584/1.969, allocations: 0 / 498.9 MB, free: 15.24 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TestBrush.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TestBrush.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_TestBrush_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1)