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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 105.4 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 244.8 MB, free: 14.14 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 191.6 kB / 299.8 MB, free: 9.809 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04111/0.04111, allocations: 8.926 MB / 363.6 MB, free: 10.15 MB / 302.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002354/0.002354, allocations: 81.39 kB / 486 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1165, allocations: 54.42 MB / 0.5278 GB, free: 1.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003645/0.1201, allocations: 1.776 MB / 0.5295 GB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.1212, allocations: 0.4996 MB / 0.53 GB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.992e-05/0.1213, allocations: 4 kB / 0.53 GB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.494e-05/0.1214, allocations: 11.86 kB / 0.53 GB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.1216, allocations: 27.78 kB / 0.5301 GB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.1218, allocations: 31.91 kB / 0.5301 GB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.122, allocations: 79.66 kB / 0.5302 GB, free: 14.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.1221, allocations: 27.97 kB / 0.5302 GB, free: 14.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.1222, allocations: 31.92 kB / 0.5302 GB, free: 14.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.021e-05/0.1223, allocations: 43.78 kB / 0.5303 GB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.434e-05/0.1224, allocations: 8 kB / 0.5303 GB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.275e-05/0.1224, allocations: 16 kB / 0.5303 GB, free: 14.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.265e-05/0.1225, allocations: 19.92 kB / 0.5303 GB, free: 14.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.368e-05/0.1225, allocations: 39.8 kB / 0.5303 GB, free: 14.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.1228, allocations: 100.3 kB / 0.5304 GB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1228, allocations: 0 / 0.5304 GB, free: 14.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.908e-06/0.1228, allocations: 0 / 0.5304 GB, free: 14.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1228, allocations: 0 / 0.5304 GB, free: 14.61 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.0007765/0.1236, allocations: 399.1 kB / 0.5308 GB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.405e-05/0.1236, allocations: 12.03 kB / 0.5308 GB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.25e-05/0.1237, allocations: 34.75 kB / 0.5309 GB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.1237, allocations: 8.891 kB / 0.5309 GB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002351/0.124, allocations: 184.1 kB / 0.531 GB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.124, allocations: 4.375 kB / 0.531 GB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.124, allocations: 8.375 kB / 0.5311 GB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002857/0.1243, allocations: 85.78 kB / 0.5311 GB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.1243, allocations: 4 kB / 0.5311 GB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1243, allocations: 4 kB / 0.5311 GB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1243, allocations: 4 kB / 0.5311 GB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.1246, allocations: 55.95 kB / 0.5312 GB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00081/0.1254, allocations: 399.5 kB / 0.5316 GB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.1255, allocations: 46.56 kB / 0.5316 GB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.234e-05/0.1256, allocations: 32.81 kB / 0.5317 GB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.79e-05/0.1257, allocations: 4 kB / 0.5317 GB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.1257, allocations: 30.56 kB / 0.5317 GB, free: 13.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.1257, allocations: 0 / 0.5317 GB, free: 13.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003963/0.1261, allocations: 89.58 kB / 0.5318 GB, free: 13.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.1261, allocations: 55.41 kB / 0.5318 GB, free: 12.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.1264, allocations: 121.8 kB / 0.5319 GB, free: 12.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1264, allocations: 29.64 kB / 0.532 GB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.1265, allocations: 108.1 kB / 0.5321 GB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.089e-05/0.1266, allocations: 3.953 kB / 0.5321 GB, free: 12.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.1266, allocations: 25.83 kB / 0.5321 GB, free: 12.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002919/0.1269, allocations: 318.8 kB / 0.5324 GB, free: 12.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.73e-05/0.127, allocations: 19.92 kB / 0.5324 GB, free: 12.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.1271, allocations: 42.55 kB / 0.5325 GB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.1273, allocations: 54.55 kB / 0.5325 GB, free: 12.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1273, allocations: 0 / 0.5325 GB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002586/0.1276, allocations: 85.59 kB / 0.5326 GB, free: 12.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.1276, allocations: 7.984 kB / 0.5326 GB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1276, allocations: 4.031 kB / 0.5326 GB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.1276, allocations: 4 kB / 0.5326 GB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1277, allocations: 15.94 kB / 0.5326 GB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.1277, allocations: 3.984 kB / 0.5326 GB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.412e-05/0.1278, allocations: 11.89 kB / 0.5326 GB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1278, allocations: 11.94 kB / 0.5327 GB, free: 12.07 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 0.0001301/0.1279, allocations: 113.8 kB / 0.5328 GB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.128, allocations: 4 kB / 0.5328 GB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.128, allocations: 19.45 kB / 0.5328 GB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.128, allocations: 0 / 0.5328 GB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.128, allocations: 0 / 0.5328 GB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1281, allocations: 0 / 0.5328 GB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.1283, allocations: 177.6 kB / 0.533 GB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1283, allocations: 0 / 0.533 GB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.86e-05/0.1284, allocations: 11.98 kB / 0.533 GB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1284, allocations: 0 / 0.533 GB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.1284, allocations: 3.938 kB / 0.533 GB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.1284, allocations: 0 / 0.533 GB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1284, allocations: 4 kB / 0.533 GB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.1287, allocations: 171.4 kB / 0.5331 GB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.363e-05/0.1288, allocations: 89.06 kB / 0.5332 GB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.1288, allocations: 3.938 kB / 0.5332 GB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.19e-05/0.1289, allocations: 7.984 kB / 0.5332 GB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.1289, allocations: 0 / 0.5332 GB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.1289, allocations: 4.031 kB / 0.5332 GB, free: 11.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.193e-05/0.129, allocations: 95.27 kB / 0.5333 GB, free: 11.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.129, allocations: 0 / 0.5333 GB, free: 11.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002836/0.1293, allocations: 19.94 kB / 0.5334 GB, free: 11.27 MB / 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.0008112/0.1301, allocations: 0.7084 MB / 0.534 GB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.1304, allocations: 47.91 kB / 0.5341 GB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1304, allocations: 0 / 0.5341 GB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.231e-05/0.1305, allocations: 27.91 kB / 0.5341 GB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.1308, allocations: 11.83 kB / 0.5341 GB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.133, allocations: 1.41 MB / 0.5355 GB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.1334, allocations: 0.7 MB / 0.5362 GB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.322e-05/0.1334, allocations: 4 kB / 0.5362 GB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.558e-05/0.1335, allocations: 27.42 kB / 0.5362 GB, free: 8.191 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1335, allocations: 0 / 0.5362 GB, free: 8.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.1577, allocations: 1.808 MB / 0.538 GB, free: 6.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.841/7.998, allocations: 0.8438 kB / 0.538 GB, free: 6.449 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.701237766072154] Failed to read output from testmodel.py, exit status != 0: 8.25992783298716 8.086184767 7.96039109 Calling exit ...