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.001389/0.001389, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.538/1.538, allocations: 230.6 MB / 252.6 MB, free: 8.301 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.002743/0.002743, allocations: 228.7 kB / 309.2 MB, free: 3.152 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.04411/0.04411, allocations: 8.916 MB / 374.6 MB, free: 1.906 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="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: 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.002746/0.002746, allocations: 87.88 kB / 0.4892 GB, free: 7.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.304, allocations: 55.6 MB / 0.5435 GB, free: 26.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.002805/0.3068, allocations: 1.812 MB / 0.5453 GB, free: 25.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007652/0.3076, allocations: 0.5271 MB / 0.5458 GB, free: 25.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.491e-05/0.3076, allocations: 0 / 0.5458 GB, free: 25.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.385e-05/0.3077, allocations: 14.56 kB / 0.5458 GB, free: 25.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.41e-05/0.3078, allocations: 15.33 kB / 0.5458 GB, free: 25.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002104/0.308, allocations: 37.27 kB / 0.5459 GB, free: 25.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.3081, allocations: 87.41 kB / 0.5459 GB, free: 25.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.3082, allocations: 32.47 kB / 0.546 GB, free: 25.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.788e-05/0.3083, allocations: 35.73 kB / 0.546 GB, free: 25.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.357e-05/0.3084, allocations: 36.45 kB / 0.546 GB, free: 25.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.3084, allocations: 9.812 kB / 0.546 GB, free: 25.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.039e-05/0.3085, allocations: 17.09 kB / 0.5461 GB, free: 25.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.026e-05/0.3085, allocations: 18.69 kB / 0.5461 GB, free: 25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.3085, allocations: 32.73 kB / 0.5461 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.3087, allocations: 109 kB / 0.5462 GB, free: 24.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3087, allocations: 0 / 0.5462 GB, free: 24.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3087, allocations: 4 kB / 0.5462 GB, free: 24.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.3087, allocations: 0 / 0.5462 GB, free: 24.93 MB / 382.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.0004669/0.3092, allocations: 320.2 kB / 0.5465 GB, free: 24.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.3092, allocations: 9.656 kB / 0.5465 GB, free: 24.63 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.714e-05/0.3092, allocations: 38.17 kB / 0.5466 GB, free: 24.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.3092, allocations: 11.27 kB / 0.5466 GB, free: 24.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.3094, allocations: 116.7 kB / 0.5467 GB, free: 24.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.3094, allocations: 4.375 kB / 0.5467 GB, free: 24.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.3094, allocations: 18.61 kB / 0.5467 GB, free: 24.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.3096, allocations: 92.17 kB / 0.5468 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3096, allocations: 0 / 0.5468 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.3096, allocations: 4 kB / 0.5468 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.3096, allocations: 3.188 kB / 0.5468 GB, free: 24.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.3098, allocations: 60.7 kB / 0.5469 GB, free: 24.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.3103, allocations: 371.4 kB / 0.5472 GB, free: 24.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/0.3104, allocations: 37.97 kB / 0.5473 GB, free: 24.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.312e-05/0.3105, allocations: 29.05 kB / 0.5473 GB, free: 23.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.3105, allocations: 0 / 0.5473 GB, free: 23.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.385e-05/0.3106, allocations: 34.56 kB / 0.5473 GB, free: 23.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.3106, allocations: 0 / 0.5473 GB, free: 23.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003417/0.3109, allocations: 102.3 kB / 0.5474 GB, free: 23.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.238e-05/0.3109, allocations: 51.41 kB / 0.5475 GB, free: 23.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.149e-05/0.311, allocations: 121.1 kB / 0.5476 GB, free: 23.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.284e-06/0.311, allocations: 28.98 kB / 0.5476 GB, free: 23.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.3111, allocations: 110.9 kB / 0.5477 GB, free: 23.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.416e-06/0.3111, allocations: 3.953 kB / 0.5477 GB, free: 23.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.3111, allocations: 13 kB / 0.5477 GB, free: 23.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.523e-05/0.3112, allocations: 321.5 kB / 0.548 GB, free: 23.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.597e-05/0.3112, allocations: 21.08 kB / 0.5481 GB, free: 23.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.266e-05/0.3113, allocations: 38.34 kB / 0.5481 GB, free: 23.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.3115, allocations: 66.22 kB / 0.5482 GB, free: 23.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3115, allocations: 0 / 0.5482 GB, free: 23.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001918/0.3117, allocations: 92.03 kB / 0.5482 GB, free: 23.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.3117, allocations: 6.719 kB / 0.5482 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3117, allocations: 3.938 kB / 0.5483 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3117, allocations: 0 / 0.5483 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.449e-05/0.3118, allocations: 13.31 kB / 0.5483 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3118, allocations: 0 / 0.5483 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.688e-05/0.3119, allocations: 9.578 kB / 0.5483 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.3119, allocations: 0 / 0.5483 GB, free: 23.12 MB / 382.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 6.035e-05/0.3119, allocations: 124.3 kB / 0.5484 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.312, allocations: 7.328 kB / 0.5484 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.745e-05/0.312, allocations: 10.94 kB / 0.5484 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.312, allocations: 0 / 0.5484 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.312, allocations: 0 / 0.5484 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.312, allocations: 0 / 0.5484 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.3121, allocations: 158.6 kB / 0.5486 GB, free: 22.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3121, allocations: 0 / 0.5486 GB, free: 22.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.3122, allocations: 10.72 kB / 0.5486 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.3122, allocations: 3.281 kB / 0.5486 GB, free: 22.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3122, allocations: 15.88 kB / 0.5486 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3122, allocations: 0 / 0.5486 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3122, allocations: 0 / 0.5486 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.3124, allocations: 161.7 kB / 0.5487 GB, free: 22.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.3124, allocations: 11.27 kB / 0.5488 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.3124, allocations: 7.062 kB / 0.5488 GB, free: 22.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.764e-05/0.3125, allocations: 7.094 kB / 0.5488 GB, free: 22.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.3125, allocations: 3.188 kB / 0.5488 GB, free: 22.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.3125, allocations: 0 / 0.5488 GB, free: 22.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.501e-05/0.3126, allocations: 99.2 kB / 0.5489 GB, free: 22.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3126, allocations: 0 / 0.5489 GB, free: 22.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002375/0.3128, allocations: 16.5 kB / 0.5489 GB, free: 22.56 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.0003377/0.3131, allocations: 0.7119 MB / 0.5496 GB, free: 21.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002006/0.3133, allocations: 47.06 kB / 0.5496 GB, free: 21.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3133, allocations: 0 / 0.5496 GB, free: 21.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.536e-05/0.3134, allocations: 20.3 kB / 0.5496 GB, free: 21.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.3137, allocations: 11.28 kB / 0.5497 GB, free: 21.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.3149, allocations: 1.422 MB / 0.551 GB, free: 20.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.315, allocations: 0.6902 MB / 0.5517 GB, free: 19.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.915e-05/0.315, allocations: 6.984 kB / 0.5517 GB, free: 19.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.026e-05/0.3151, allocations: 25.7 kB / 0.5517 GB, free: 19.85 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3151, allocations: 0 / 0.5517 GB, free: 19.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.3429, allocations: 1.934 MB / 0.5536 GB, free: 19.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.41, allocations: 13.34 kB / 0.5536 GB, free: 19.41 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.310295975068584] Failed to read output from testmodel.py, exit status != 0: 11.512907797005028 11.534709046 11.221834374 Calling exit ...