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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 239 MB, free: 4.758 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 188.5 kB / 289.3 MB, free: 2.492 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03485/0.03485, allocations: 8.796 MB / 348.2 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 77.12 kB / 410.7 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0761/0.07759, allocations: 51.57 MB / 462.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003067/0.08068, allocations: 1.829 MB / 464.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007465/0.08146, allocations: 494.8 kB / 464.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.061e-05/0.08153, allocations: 0 / 464.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.759e-05/0.08159, allocations: 11.92 kB / 464.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.086e-05/0.0817, allocations: 15.86 kB / 464.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001738/0.08188, allocations: 27.91 kB / 464.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.434e-05/0.08199, allocations: 83.67 kB / 464.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.08211, allocations: 31.97 kB / 464.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.583e-05/0.08218, allocations: 27.92 kB / 464.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.886e-05/0.08224, allocations: 39.84 kB / 464.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.08227, allocations: 8 kB / 464.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.575e-05/0.08234, allocations: 23.98 kB / 464.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.981e-05/0.08237, allocations: 27.86 kB / 464.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.28e-05/0.08241, allocations: 35.81 kB / 464.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.08256, allocations: 95.95 kB / 465 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.08258, allocations: 0 / 465 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.08258, allocations: 0 / 465 MB, free: 11.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.0826, allocations: 0 / 465 MB, free: 11.95 MB / 302.1 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.0004819/0.08308, allocations: 399.1 kB / 465.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.08313, allocations: 8.031 kB / 465.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.08317, allocations: 38.75 kB / 465.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.96e-05/0.0832, allocations: 12.84 kB / 465.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.08333, allocations: 168.4 kB / 465.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.08335, allocations: 12.25 kB / 465.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.08337, allocations: 8.375 kB / 465.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.0836, allocations: 85.78 kB / 465.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.08362, allocations: 3.938 kB / 465.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.08364, allocations: 4 kB / 465.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.08365, allocations: 4 kB / 465.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.08386, allocations: 59.95 kB / 465.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000558/0.08443, allocations: 407.4 kB / 466.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.08457, allocations: 46.55 kB / 466.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.782e-05/0.08466, allocations: 24.84 kB / 466.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.08469, allocations: 0 / 466.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.08473, allocations: 38.5 kB / 466.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.08473, allocations: 0 / 466.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000356/0.08509, allocations: 97.48 kB / 466.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.08513, allocations: 51.41 kB / 466.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.692e-05/0.08523, allocations: 125.8 kB / 466.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.08525, allocations: 25.7 kB / 466.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.08531, allocations: 100 kB / 466.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.117e-05/0.08533, allocations: 11.89 kB / 466.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.763e-05/0.08537, allocations: 17.72 kB / 466.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.62e-05/0.08548, allocations: 319 kB / 467 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.101e-05/0.08557, allocations: 23.97 kB / 467 MB, free: 9.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.27e-05/0.08567, allocations: 38.5 kB / 467.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.08585, allocations: 62.53 kB / 467.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.08586, allocations: 0 / 467.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002174/0.08609, allocations: 81.59 kB / 467.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.08611, allocations: 4 kB / 467.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.08612, allocations: 3.938 kB / 467.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.08614, allocations: 4.094 kB / 467.2 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.544e-05/0.08624, allocations: 19.92 kB / 467.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.08625, allocations: 0 / 467.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.063e-05/0.08632, allocations: 7.906 kB / 467.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.08634, allocations: 11.98 kB / 467.3 MB, free: 9.414 MB / 302.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.669e-05/0.08642, allocations: 118.4 kB / 467.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.612e-05/0.08645, allocations: 4 kB / 467.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.884e-05/0.08648, allocations: 7.469 kB / 467.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.08649, allocations: 3.938 kB / 467.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.0865, allocations: 8 kB / 467.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.08651, allocations: 0 / 467.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.08668, allocations: 181.6 kB / 467.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.08669, allocations: 0 / 467.6 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.217e-05/0.08676, allocations: 7.984 kB / 467.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.08676, allocations: 0 / 467.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.08678, allocations: 7.938 kB / 467.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.08679, allocations: 0 / 467.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.08679, allocations: 0 / 467.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002401/0.08703, allocations: 175.4 kB / 467.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.421e-05/0.08708, allocations: 77.11 kB / 467.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.0871, allocations: 11.92 kB / 467.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.621e-05/0.0872, allocations: 4 kB / 467.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.08723, allocations: 0 / 467.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-06/0.08725, allocations: 7.938 kB / 467.9 MB, free: 8.719 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.166e-05/0.0873, allocations: 99.67 kB / 468 MB, free: 8.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08731, allocations: 0 / 468 MB, free: 8.621 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.08757, allocations: 27.84 kB / 468 MB, free: 8.594 MB / 302.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004963/0.08807, allocations: 0.7085 MB / 468.7 MB, free: 7.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002164/0.0883, allocations: 43.95 kB / 468.7 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.08831, allocations: 0 / 468.7 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.544e-05/0.0884, allocations: 19.98 kB / 468.8 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.08873, allocations: 8 kB / 468.8 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.09025, allocations: 1.448 MB / 470.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.0905, allocations: 0.6885 MB / 470.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.572e-05/0.09054, allocations: 4 kB / 470.9 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.155e-05/0.09059, allocations: 23.36 kB / 470.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09059, allocations: 0 / 470.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01087/0.1015, allocations: 1.64 MB / 472.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.1017, allocations: 184.2 kB / 472.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.634/1.736, allocations: 3.938 kB / 472.8 MB, free: 3.699 MB / 302.1 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/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)