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.001726/0.001726, 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.06828/0.06828, 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.532/1.532, allocations: 221.5 MB / 240.8 MB, free: 13.15 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.001082/0.001082, allocations: 98.72 kB / 293.9 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.027e-05/2.008e-05, allocations: 4 kB / 352.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1146, allocations: 52.55 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3445/0.4592, allocations: 78.18 MB / 483.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.4595, allocations: 66.53 kB / 483.5 MB, free: 8.816 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004663/0.4641, allocations: 1.916 MB / 485.4 MB, free: 7.219 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4642, allocations: 4 kB / 485.4 MB, free: 7.215 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.4642, allocations: 3.938 kB / 485.4 MB, free: 7.211 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003786/0.4646, allocations: 376.9 kB / 485.8 MB, free: 6.809 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.4646, allocations: 11.98 kB / 485.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.721e-05/0.4647, allocations: 10.72 kB / 485.8 MB, free: 6.793 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.4648, allocations: 179.8 kB / 486 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.4648, allocations: 0 / 486 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.4648, allocations: 4 kB / 486 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.9e-05/0.465, allocations: 34.94 kB / 486.1 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.4651, allocations: 67.56 kB / 486.1 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.4651, allocations: 3.953 kB / 486.1 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.4651, allocations: 0 / 486.1 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.4651, allocations: 8 kB / 486.1 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.4657, allocations: 377 kB / 486.5 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.462e-05/0.4657, allocations: 27.55 kB / 486.5 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.448e-05/0.4658, allocations: 12.67 kB / 486.5 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.4658, allocations: 0 / 486.5 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.264e-05/0.4658, allocations: 30.56 kB / 486.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.4658, allocations: 0 / 486.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001898/0.466, allocations: 60.91 kB / 486.6 MB, free: 5.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.987e-05/0.466, allocations: 55.44 kB / 486.7 MB, free: 5.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.541e-05/0.4661, allocations: 113.4 kB / 486.8 MB, free: 5.793 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.316e-06/0.4661, allocations: 25.7 kB / 486.8 MB, free: 5.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.4662, allocations: 107.2 kB / 486.9 MB, free: 5.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.487e-06/0.4662, allocations: 11.84 kB / 486.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.4662, allocations: 0 / 486.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.492e-05/0.4663, allocations: 318.2 kB / 487.2 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.807e-05/0.4663, allocations: 8.719 kB / 487.3 MB, free: 5.328 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.948e-05/0.4663, allocations: 34 kB / 487.3 MB, free: 5.289 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.207e-05/0.4664, allocations: 11.69 kB / 487.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4664, allocations: 0 / 487.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001025/0.4665, allocations: 64.8 kB / 487.4 MB, free: 5.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.4665, allocations: 4 kB / 487.4 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.4665, allocations: 0 / 487.4 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.4665, allocations: 8.094 kB / 487.4 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.4666, allocations: 15.98 kB / 487.4 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4667, allocations: 0 / 487.4 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.005e-05/0.4667, allocations: 11.91 kB / 487.4 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.4667, allocations: 0.5625 kB / 487.4 MB, free: 5.18 MB / 346.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 5.105e-05/0.4668, allocations: 112.9 kB / 487.5 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.747e-05/0.4669, allocations: 55.95 kB / 487.6 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.4669, allocations: 11.89 kB / 487.6 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.467, allocations: 3.969 kB / 487.6 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.467, allocations: 0.5625 kB / 487.6 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.467, allocations: 0.5625 kB / 487.6 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.467, allocations: 4 kB / 487.6 MB, free: 4.992 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.4671, allocations: 157 kB / 487.7 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4671, allocations: 0 / 487.7 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.19e-05/0.4672, allocations: 8 kB / 487.7 MB, free: 4.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4672, allocations: 7.984 kB / 487.8 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.136e-06/0.4672, allocations: 8.906 kB / 487.8 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4672, allocations: 3.938 kB / 487.8 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4672, allocations: 0 / 487.8 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001158/0.4673, allocations: 150.5 kB / 487.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.22e-05/0.4674, allocations: 81.02 kB / 488 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.4674, allocations: 0 / 488 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.475e-05/0.4675, allocations: 16.02 kB / 488 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.4675, allocations: 0 / 488 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.4675, allocations: 3.625 kB / 488 MB, free: 4.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.122e-05/0.4676, allocations: 95.81 kB / 488.1 MB, free: 4.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4676, allocations: 0 / 488.1 MB, free: 4.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.4678, allocations: 15.94 kB / 488.1 MB, free: 4.414 MB / 346.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.0003413/0.4682, allocations: 0.6841 MB / 488.8 MB, free: 3.715 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.773e-05/0.4683, allocations: 30.73 kB / 488.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4683, allocations: 0 / 488.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.129e-05/0.4683, allocations: 7.562 kB / 488.8 MB, free: 3.688 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.4685, allocations: 4.75 kB / 488.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003588/0.4689, allocations: 117.5 kB / 489 MB, free: 3.535 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.469, allocations: 0.7002 MB / 489.7 MB, free: 2.809 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.278e-05/0.4691, allocations: 4 kB / 489.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.982e-05/0.4691, allocations: 21.81 kB / 489.7 MB, free: 2.793 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4691, allocations: 0 / 489.7 MB, free: 2.793 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01893/0.4881, allocations: 1.152 MB / 490.8 MB, free: 1.691 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.4883, allocations: 125.7 kB / 491 MB, free: 1.496 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.469/1.958, allocations: 0 / 491 MB, free: 1.496 MB / 346.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)