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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.655/1.655, allocations: 230.6 MB / 250.5 MB, free: 9.211 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 214.2 kB / 306.7 MB, free: 4.273 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04077/0.04077, allocations: 8.911 MB / 371.7 MB, free: 3.406 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002621/0.002621, allocations: 92.3 kB / 496.4 MB, free: 5.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1528, allocations: 55.58 MB / 0.5391 GB, free: 6.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003558/0.1564, allocations: 1.799 MB / 0.5408 GB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1574, allocations: 0.5344 MB / 0.5413 GB, free: 4.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.098e-05/0.1575, allocations: 0 / 0.5413 GB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.478e-05/0.1575, allocations: 11.92 kB / 0.5414 GB, free: 4.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.836e-05/0.1576, allocations: 15.8 kB / 0.5414 GB, free: 4.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.1579, allocations: 31.91 kB / 0.5414 GB, free: 4.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.158, allocations: 83.66 kB / 0.5415 GB, free: 4.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.1581, allocations: 23.97 kB / 0.5415 GB, free: 4.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.52e-05/0.1582, allocations: 43.8 kB / 0.5415 GB, free: 3.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.115e-05/0.1583, allocations: 39.84 kB / 0.5416 GB, free: 3.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.1583, allocations: 8 kB / 0.5416 GB, free: 3.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.126e-05/0.1584, allocations: 15.98 kB / 0.5416 GB, free: 3.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.1584, allocations: 19.98 kB / 0.5416 GB, free: 3.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.015e-05/0.1585, allocations: 35.81 kB / 0.5417 GB, free: 3.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.1586, allocations: 95.61 kB / 0.5418 GB, free: 3.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1587, allocations: 0 / 0.5418 GB, free: 3.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1587, allocations: 0 / 0.5418 GB, free: 3.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.1587, allocations: 3.938 kB / 0.5418 GB, free: 3.781 MB / 350.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.0006141/0.1593, allocations: 395.1 kB / 0.5421 GB, free: 3.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.1593, allocations: 12.03 kB / 0.5421 GB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.448e-05/0.1593, allocations: 192 / 0.5421 GB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.1594, allocations: 38.75 kB / 0.5422 GB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.838e-05/0.1594, allocations: 8.891 kB / 0.5422 GB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.1596, allocations: 184.2 kB / 0.5424 GB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.1596, allocations: 384 / 0.5424 GB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.1597, allocations: 12.38 kB / 0.5424 GB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.1599, allocations: 89.59 kB / 0.5425 GB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1599, allocations: 3.938 kB / 0.5425 GB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1599, allocations: 0 / 0.5425 GB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.1599, allocations: 0 / 0.5425 GB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.1602, allocations: 67.89 kB / 0.5425 GB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006715/0.1608, allocations: 403.5 kB / 0.5429 GB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.161, allocations: 42.55 kB / 0.543 GB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.871e-05/0.1611, allocations: 24.91 kB / 0.543 GB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.1611, allocations: 0 / 0.543 GB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.1611, allocations: 30.56 kB / 0.543 GB, free: 2.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.1611, allocations: 4 kB / 0.543 GB, free: 2.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.000404/0.1616, allocations: 101.5 kB / 0.5431 GB, free: 2.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.1616, allocations: 51.41 kB / 0.5432 GB, free: 2.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.1617, allocations: 121.8 kB / 0.5433 GB, free: 2.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.1617, allocations: 25.7 kB / 0.5433 GB, free: 1.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.751e-05/0.1618, allocations: 104.1 kB / 0.5434 GB, free: 1.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.066e-05/0.1618, allocations: 16.06 kB / 0.5434 GB, free: 1.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-05/0.1619, allocations: 17.72 kB / 0.5434 GB, free: 1.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.162, allocations: 310.8 kB / 0.5437 GB, free: 1.531 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.935e-05/0.1621, allocations: 23.97 kB / 0.5437 GB, free: 1.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1622, allocations: 38.56 kB / 0.5438 GB, free: 1.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000193/0.1624, allocations: 66.47 kB / 0.5439 GB, free: 1.387 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1624, allocations: 4 kB / 0.5439 GB, free: 1.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002388/0.1626, allocations: 89.48 kB / 0.5439 GB, free: 1.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1626, allocations: 12.03 kB / 0.544 GB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1627, allocations: 4 kB / 0.544 GB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.1627, allocations: 0 / 0.544 GB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.8e-05/0.1628, allocations: 11.98 kB / 0.544 GB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.1628, allocations: 3.984 kB / 0.544 GB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.146e-05/0.1628, allocations: 11.94 kB / 0.544 GB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1628, allocations: 3.984 kB / 0.544 GB, free: 1.242 MB / 350.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 9.192e-05/0.1629, allocations: 113.8 kB / 0.5441 GB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.163, allocations: 15.89 kB / 0.5441 GB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.163, allocations: 11.47 kB / 0.5441 GB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.163, allocations: 0 / 0.5441 GB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.163, allocations: 0 / 0.5441 GB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.163, allocations: 0 / 0.5441 GB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.1632, allocations: 181.6 kB / 0.5443 GB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1632, allocations: 0 / 0.5443 GB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.227e-05/0.1633, allocations: 7.984 kB / 0.5443 GB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1633, allocations: 7.938 kB / 0.5443 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.1633, allocations: 0 / 0.5443 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1633, allocations: 4 kB / 0.5443 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1633, allocations: 3.938 kB / 0.5443 GB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.1636, allocations: 163.5 kB / 0.5445 GB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.062e-05/0.1636, allocations: 81.06 kB / 0.5445 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.1637, allocations: 8.016 kB / 0.5446 GB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.851e-05/0.1637, allocations: 4 kB / 0.5446 GB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.1638, allocations: 12.02 kB / 0.5446 GB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.1638, allocations: 4 kB / 0.5446 GB, free: 0.5352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.087e-05/0.1639, allocations: 95.2 kB / 0.5447 GB, free: 452 kB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1639, allocations: 0 / 0.5447 GB, free: 452 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.1641, allocations: 19.94 kB / 0.5447 GB, free: 432 kB / 350.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.0006222/0.1647, allocations: 0.7046 MB / 0.5454 GB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.165, allocations: 51.89 kB / 0.5454 GB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.165, allocations: 3.938 kB / 0.5454 GB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.211e-05/0.1651, allocations: 20.2 kB / 0.5454 GB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.1654, allocations: 11.03 kB / 0.5455 GB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.1672, allocations: 1.425 MB / 0.5468 GB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.1675, allocations: 0.6913 MB / 0.5475 GB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.077e-05/0.1676, allocations: 3.984 kB / 0.5475 GB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.799e-05/0.1676, allocations: 19.44 kB / 0.5475 GB, free: 13.36 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1676, allocations: 0 / 0.5475 GB, free: 13.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.1881, allocations: 1.841 MB / 0.5493 GB, free: 11.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.098/9.286, allocations: 7.766 kB / 0.5494 GB, free: 11.59 MB / 366.1 MB " [Timeout remaining time 651] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.680200690985657] Failed to read output from testmodel.py, exit status != 0: 9.413371709000785 9.43114076 9.268854928 Calling exit ...