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.001425/0.001425, allocations: 109.5 kB / 19.73 MB, free: 2.238 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.665/1.665, allocations: 230.6 MB / 253.4 MB, free: 14.49 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.002111/0.002111, allocations: 198.2 kB / 310 MB, free: 3.129 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.04224/0.04224, allocations: 8.912 MB / 375.4 MB, free: 6.773 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.00247/0.00247, allocations: 83.88 kB / 0.49 GB, free: 44.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1462, allocations: 55.61 MB / 0.5443 GB, free: 5.223 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.005178/0.1513, allocations: 1.816 MB / 0.546 GB, free: 3.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1526, allocations: 0.5376 MB / 0.5466 GB, free: 2.848 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.787e-05/0.1527, allocations: 0 / 0.5466 GB, free: 2.848 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.436e-05/0.1527, allocations: 15.86 kB / 0.5466 GB, free: 2.832 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.1528, allocations: 19.8 kB / 0.5466 GB, free: 2.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.1531, allocations: 35.89 kB / 0.5466 GB, free: 2.777 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001916/0.1533, allocations: 83.66 kB / 0.5467 GB, free: 2.695 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1535, allocations: 19.98 kB / 0.5467 GB, free: 2.676 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.1536, allocations: 27.94 kB / 0.5468 GB, free: 2.648 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.47e-05/0.1537, allocations: 39.83 kB / 0.5468 GB, free: 2.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.1537, allocations: 12 kB / 0.5468 GB, free: 2.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.934e-05/0.1538, allocations: 23.92 kB / 0.5468 GB, free: 2.574 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.505e-05/0.1538, allocations: 23.92 kB / 0.5469 GB, free: 2.551 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.932e-05/0.1539, allocations: 35.81 kB / 0.5469 GB, free: 2.516 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.1541, allocations: 95.61 kB / 0.547 GB, free: 2.422 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1541, allocations: 0 / 0.547 GB, free: 2.422 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1541, allocations: 0 / 0.547 GB, free: 2.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1542, allocations: 0 / 0.547 GB, free: 2.422 MB / 366.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.0006357/0.1548, allocations: 314 kB / 0.5473 GB, free: 2.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.524e-05/0.1549, allocations: 19.98 kB / 0.5473 GB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.615e-05/0.1549, allocations: 4.188 kB / 0.5473 GB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.253e-05/0.1549, allocations: 38.75 kB / 0.5473 GB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.332e-05/0.155, allocations: 12.89 kB / 0.5474 GB, free: 2.004 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.1551, allocations: 122.4 kB / 0.5475 GB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.1552, allocations: 8.359 kB / 0.5475 GB, free: 1.852 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.1552, allocations: 12.31 kB / 0.5475 GB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.1555, allocations: 89.53 kB / 0.5476 GB, free: 1.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.1555, allocations: 4 kB / 0.5476 GB, free: 1.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.1555, allocations: 4 kB / 0.5476 GB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.1555, allocations: 4 kB / 0.5476 GB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.1557, allocations: 59.95 kB / 0.5476 GB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008577/0.1566, allocations: 362.6 kB / 0.548 GB, free: 1.273 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.1568, allocations: 46.48 kB / 0.548 GB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.1569, allocations: 24.91 kB / 0.5481 GB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.1569, allocations: 3.984 kB / 0.5481 GB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.1569, allocations: 30.56 kB / 0.5481 GB, free: 1.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 2.595e-06/0.1569, allocations: 4 kB / 0.5481 GB, free: 1.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004766/0.1574, allocations: 93.53 kB / 0.5482 GB, free: 1.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.1575, allocations: 51.41 kB / 0.5482 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.1576, allocations: 129.8 kB / 0.5484 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.1577, allocations: 25.7 kB / 0.5484 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1578, allocations: 104.1 kB / 0.5485 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.1578, allocations: 11.89 kB / 0.5485 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-05/0.1578, allocations: 17.78 kB / 0.5485 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.158, allocations: 318.8 kB / 0.5488 GB, free: 364 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.965e-05/0.1581, allocations: 23.97 kB / 0.5488 GB, free: 340 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.1583, allocations: 34.56 kB / 0.5489 GB, free: 296 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.1584, allocations: 62.53 kB / 0.5489 GB, free: 224 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1584, allocations: 0 / 0.5489 GB, free: 224 kB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002416/0.1587, allocations: 85.55 kB / 0.549 GB, free: 132 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.1587, allocations: 15.88 kB / 0.549 GB, free: 116 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1587, allocations: 0 / 0.549 GB, free: 116 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.1587, allocations: 4.094 kB / 0.549 GB, free: 112 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.1588, allocations: 11.98 kB / 0.549 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1588, allocations: 4 kB / 0.549 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.577e-05/0.1589, allocations: 11.98 kB / 0.5491 GB, free: 84 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.1589, allocations: 0 / 0.5491 GB, free: 84 kB / 366.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 0.0001509/0.1591, allocations: 113.9 kB / 0.5492 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.1591, allocations: 15.83 kB / 0.5492 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.1591, allocations: 7.578 kB / 0.5492 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.1591, allocations: 4 kB / 0.5492 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.1592, allocations: 4 kB / 0.5492 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1592, allocations: 0 / 0.5492 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.1594, allocations: 148.7 kB / 0.5493 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1594, allocations: 0 / 0.5493 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-05/0.1594, allocations: 11.98 kB / 0.5493 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1594, allocations: 3.938 kB / 0.5493 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.1595, allocations: 0 / 0.5493 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1595, allocations: 7.938 kB / 0.5494 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1595, allocations: 0 / 0.5494 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.1598, allocations: 175.5 kB / 0.5495 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.1598, allocations: 7.953 kB / 0.5495 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.1598, allocations: 7.922 kB / 0.5495 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.043e-05/0.1599, allocations: 4 kB / 0.5495 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.16, allocations: 3.984 kB / 0.5495 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.16, allocations: 0 / 0.5495 GB, free: 15.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.419e-05/0.16, allocations: 103.7 kB / 0.5496 GB, free: 15.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.16, allocations: 0 / 0.5496 GB, free: 15.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.1603, allocations: 19.92 kB / 0.5497 GB, free: 15.39 MB / 382.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.000701/0.161, allocations: 0.7045 MB / 0.5504 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002431/0.1613, allocations: 43.95 kB / 0.5504 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1613, allocations: 0 / 0.5504 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.362e-05/0.1613, allocations: 23.92 kB / 0.5504 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.1618, allocations: 8.094 kB / 0.5504 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.1638, allocations: 1.418 MB / 0.5518 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004265/0.1643, allocations: 0.6983 MB / 0.5525 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.882e-05/0.1643, allocations: 4 kB / 0.5525 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.231e-05/0.1644, allocations: 23.38 kB / 0.5525 GB, free: 12.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1644, allocations: 0 / 0.5525 GB, free: 12.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02604/0.1904, allocations: 1.968 MB / 0.5544 GB, free: 10.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.55, allocations: 14.81 kB / 0.5545 GB, free: 10.47 MB / 382.1 MB " [Timeout remaining time 647] (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: 16.188753298018128] Failed to read output from testmodel.py, exit status != 0: 12.707804820034653 12.961078034 12.803832582 Calling exit ...