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.001271/0.001271, allocations: 109.2 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.502/1.502, allocations: 230.6 MB / 252.6 MB, free: 8.293 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.001611/0.001611, allocations: 221.6 kB / 309.2 MB, free: 3.125 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.04147/0.04147, allocations: 8.924 MB / 374.6 MB, free: 1.879 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.002535/0.002535, allocations: 87.88 kB / 0.4892 GB, free: 7.359 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2847, allocations: 55.6 MB / 0.5435 GB, free: 26.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.002393/0.2871, allocations: 1.815 MB / 0.5453 GB, free: 25.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006677/0.2878, allocations: 0.5346 MB / 0.5458 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.279e-05/0.2878, allocations: 3.156 kB / 0.5458 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.513e-05/0.2879, allocations: 7.266 kB / 0.5458 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.784e-05/0.288, allocations: 22.38 kB / 0.5458 GB, free: 25.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.2881, allocations: 33.02 kB / 0.5459 GB, free: 25.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.214e-05/0.2882, allocations: 85.47 kB / 0.5459 GB, free: 25.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2884, allocations: 17.5 kB / 0.546 GB, free: 25.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.236e-05/0.2884, allocations: 43.81 kB / 0.546 GB, free: 25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.758e-05/0.2885, allocations: 47.34 kB / 0.546 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.2885, allocations: 6.375 kB / 0.546 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.995e-05/0.2886, allocations: 19.91 kB / 0.5461 GB, free: 24.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.513e-05/0.2886, allocations: 15.41 kB / 0.5461 GB, free: 24.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.442e-05/0.2886, allocations: 36.09 kB / 0.5461 GB, free: 24.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.2887, allocations: 105.5 kB / 0.5462 GB, free: 24.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2887, allocations: 0 / 0.5462 GB, free: 24.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2887, allocations: 0 / 0.5462 GB, free: 24.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.2888, allocations: 0 / 0.5462 GB, free: 24.9 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.000411/0.2892, allocations: 319.7 kB / 0.5465 GB, free: 24.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.2892, allocations: 9.156 kB / 0.5465 GB, free: 24.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.827e-05/0.2892, allocations: 37.72 kB / 0.5466 GB, free: 24.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.2893, allocations: 11.14 kB / 0.5466 GB, free: 24.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.813e-05/0.2893, allocations: 121 kB / 0.5467 GB, free: 24.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.2894, allocations: 7.562 kB / 0.5467 GB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.2894, allocations: 3.594 kB / 0.5467 GB, free: 24.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.2896, allocations: 85.52 kB / 0.5468 GB, free: 24.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.2896, allocations: 0 / 0.5468 GB, free: 24.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2896, allocations: 11.28 kB / 0.5468 GB, free: 24.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.2896, allocations: 0 / 0.5468 GB, free: 24.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.2898, allocations: 65.36 kB / 0.5469 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005009/0.2903, allocations: 366.7 kB / 0.5472 GB, free: 24.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.2904, allocations: 42.64 kB / 0.5472 GB, free: 23.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.982e-05/0.2905, allocations: 28.45 kB / 0.5473 GB, free: 23.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.2905, allocations: 2.906 kB / 0.5473 GB, free: 23.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.093e-05/0.2905, allocations: 30.56 kB / 0.5473 GB, free: 23.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2905, allocations: 0 / 0.5473 GB, free: 23.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003311/0.2909, allocations: 101.6 kB / 0.5474 GB, free: 23.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.938e-05/0.2909, allocations: 51.41 kB / 0.5475 GB, free: 23.81 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.853e-05/0.2909, allocations: 124.7 kB / 0.5476 GB, free: 23.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.264e-06/0.2909, allocations: 25.7 kB / 0.5476 GB, free: 23.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.291, allocations: 109.9 kB / 0.5477 GB, free: 23.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-06/0.291, allocations: 3.953 kB / 0.5477 GB, free: 23.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.291, allocations: 12.88 kB / 0.5477 GB, free: 23.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.08e-05/0.2911, allocations: 325.3 kB / 0.548 GB, free: 23.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.29e-05/0.2911, allocations: 20.92 kB / 0.548 GB, free: 23.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.168e-05/0.2912, allocations: 38 kB / 0.5481 GB, free: 23.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.2914, allocations: 66.05 kB / 0.5481 GB, free: 23.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2914, allocations: 3.938 kB / 0.5482 GB, free: 23.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001928/0.2916, allocations: 90.48 kB / 0.5482 GB, free: 23.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.2916, allocations: 6.25 kB / 0.5482 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2916, allocations: 3.938 kB / 0.5482 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2916, allocations: 0 / 0.5482 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.721e-05/0.2917, allocations: 16.77 kB / 0.5483 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2917, allocations: 3.125 kB / 0.5483 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.738e-05/0.2918, allocations: 6.25 kB / 0.5483 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.2918, allocations: 3.219 kB / 0.5483 GB, free: 23.09 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 4.561e-05/0.2918, allocations: 113.1 kB / 0.5484 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.2918, allocations: 7.172 kB / 0.5484 GB, free: 22.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.339e-05/0.2919, allocations: 14.8 kB / 0.5484 GB, free: 22.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2919, allocations: 0 / 0.5484 GB, free: 22.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2919, allocations: 7.312 kB / 0.5484 GB, free: 22.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2919, allocations: 0 / 0.5484 GB, free: 22.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.292, allocations: 154.2 kB / 0.5486 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.292, allocations: 96 / 0.5486 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.927e-05/0.2921, allocations: 9.75 kB / 0.5486 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2921, allocations: 10.41 kB / 0.5486 GB, free: 22.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.2921, allocations: 7.875 kB / 0.5486 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-06/0.2921, allocations: 0 / 0.5486 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2921, allocations: 0 / 0.5486 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.2923, allocations: 165.5 kB / 0.5487 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.056e-05/0.2923, allocations: 3.953 kB / 0.5487 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.2923, allocations: 10.39 kB / 0.5488 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.911e-05/0.2924, allocations: 2.938 kB / 0.5488 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.958e-05/0.2924, allocations: 3.516 kB / 0.5488 GB, free: 22.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.2924, allocations: 0 / 0.5488 GB, free: 22.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.578e-05/0.2924, allocations: 102.3 kB / 0.5489 GB, free: 22.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2924, allocations: 0 / 0.5489 GB, free: 22.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.2927, allocations: 18.72 kB / 0.5489 GB, free: 22.54 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.0003505/0.293, allocations: 0.7117 MB / 0.5496 GB, free: 21.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002117/0.2932, allocations: 44.2 kB / 0.5496 GB, free: 21.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2932, allocations: 0 / 0.5496 GB, free: 21.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.646e-05/0.2933, allocations: 23.64 kB / 0.5496 GB, free: 21.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.2936, allocations: 15.42 kB / 0.5497 GB, free: 21.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.2948, allocations: 1.418 MB / 0.551 GB, free: 20.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.517e-05/0.2949, allocations: 0.6924 MB / 0.5517 GB, free: 19.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.932e-05/0.2949, allocations: 6.672 kB / 0.5517 GB, free: 19.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.295, allocations: 22.84 kB / 0.5517 GB, free: 19.82 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.295, allocations: 0 / 0.5517 GB, free: 19.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.3223, allocations: 1.941 MB / 0.5536 GB, free: 19.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.29, allocations: 10.97 kB / 0.5536 GB, free: 19.38 MB / 382.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.TestBrush_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.217063667005277] Failed to read output from testmodel.py, exit status != 0: 11.394906882000214 11.40612936 11.114900236 Calling exit ...