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.00129/0.00129, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.465/1.465, allocations: 230.6 MB / 252.7 MB, free: 14.26 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.001482/0.001482, allocations: 214.1 kB / 309.2 MB, free: 3.102 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.04101/0.04101, allocations: 8.927 MB / 374.6 MB, free: 6.598 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.002554/0.002554, allocations: 79.88 kB / 0.4891 GB, free: 44.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08833/0.09088, allocations: 55.6 MB / 0.5434 GB, free: 5.086 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003101/0.09398, allocations: 1.768 MB / 0.5452 GB, free: 3.305 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009774/0.09496, allocations: 494.8 kB / 0.5456 GB, free: 2.816 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.459e-05/0.09501, allocations: 0 / 0.5456 GB, free: 2.816 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.728e-05/0.09507, allocations: 11.86 kB / 0.5456 GB, free: 2.805 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.06e-05/0.09516, allocations: 27.8 kB / 0.5457 GB, free: 2.777 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.09539, allocations: 31.95 kB / 0.5457 GB, free: 2.746 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.09553, allocations: 87.59 kB / 0.5458 GB, free: 2.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.09566, allocations: 15.98 kB / 0.5458 GB, free: 2.645 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.581e-05/0.09575, allocations: 35.86 kB / 0.5458 GB, free: 2.609 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.991e-05/0.09582, allocations: 35.84 kB / 0.5459 GB, free: 2.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.09584, allocations: 8 kB / 0.5459 GB, free: 2.566 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.282e-05/0.09591, allocations: 15.98 kB / 0.5459 GB, free: 2.551 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.09594, allocations: 19.98 kB / 0.5459 GB, free: 2.531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.956e-05/0.096, allocations: 39.73 kB / 0.5459 GB, free: 2.492 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.09618, allocations: 95.61 kB / 0.546 GB, free: 2.398 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.09618, allocations: 4 kB / 0.546 GB, free: 2.395 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.09618, allocations: 0 / 0.546 GB, free: 2.395 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.09619, allocations: 0 / 0.546 GB, free: 2.395 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.0005857/0.09678, allocations: 314 kB / 0.5463 GB, free: 2.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.09682, allocations: 15.98 kB / 0.5464 GB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.213e-05/0.09688, allocations: 34.75 kB / 0.5464 GB, free: 2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.09691, allocations: 8.891 kB / 0.5464 GB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.09707, allocations: 126.4 kB / 0.5465 GB, free: 1.844 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.09708, allocations: 4.375 kB / 0.5465 GB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.09711, allocations: 16.31 kB / 0.5465 GB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.09735, allocations: 85.78 kB / 0.5466 GB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.09736, allocations: 0 / 0.5466 GB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.09738, allocations: 11.98 kB / 0.5466 GB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.09738, allocations: 0 / 0.5466 GB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.0976, allocations: 63.89 kB / 0.5467 GB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006573/0.09826, allocations: 346.7 kB / 0.547 GB, free: 1.273 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.09841, allocations: 38.55 kB / 0.5471 GB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.245e-05/0.0985, allocations: 24.91 kB / 0.5471 GB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.09852, allocations: 0 / 0.5471 GB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.09855, allocations: 34.5 kB / 0.5471 GB, free: 1.156 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.09855, allocations: 0 / 0.5471 GB, free: 1.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003694/0.09892, allocations: 101.6 kB / 0.5472 GB, free: 1.051 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.09896, allocations: 55.34 kB / 0.5473 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.09908, allocations: 125.9 kB / 0.5474 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.09909, allocations: 25.7 kB / 0.5474 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.382e-05/0.09917, allocations: 112 kB / 0.5475 GB, free: 0.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.959e-06/0.09918, allocations: 7.891 kB / 0.5475 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.555e-05/0.09921, allocations: 17.72 kB / 0.5475 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.09937, allocations: 314.8 kB / 0.5478 GB, free: 368 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.695e-05/0.09946, allocations: 19.98 kB / 0.5479 GB, free: 348 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.938e-05/0.09955, allocations: 50.52 kB / 0.5479 GB, free: 288 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.09973, allocations: 54.55 kB / 0.548 GB, free: 224 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.09973, allocations: 0 / 0.548 GB, free: 224 kB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002283/0.09996, allocations: 93.58 kB / 0.548 GB, free: 124 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.09997, allocations: 4 kB / 0.5481 GB, free: 120 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.09998, allocations: 3.938 kB / 0.5481 GB, free: 116 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.09999, allocations: 4 kB / 0.5481 GB, free: 112 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.602e-05/0.1001, allocations: 15.92 kB / 0.5481 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.912e-06/0.1001, allocations: 0 / 0.5481 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.967e-05/0.1002, allocations: 7.984 kB / 0.5481 GB, free: 88 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.1002, allocations: 4 kB / 0.5481 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.0001142/0.1003, allocations: 113.9 kB / 0.5482 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.1003, allocations: 8.016 kB / 0.5482 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.682e-05/0.1004, allocations: 15.56 kB / 0.5482 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1004, allocations: 0 / 0.5482 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1004, allocations: 0 / 0.5482 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.1004, allocations: 0 / 0.5482 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.1005, allocations: 152.6 kB / 0.5484 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1005, allocations: 0 / 0.5484 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.969e-05/0.1006, allocations: 8 kB / 0.5484 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1006, allocations: 0 / 0.5484 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.1006, allocations: 7.938 kB / 0.5484 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1006, allocations: 0 / 0.5484 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1006, allocations: 7.984 kB / 0.5484 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.1009, allocations: 163.5 kB / 0.5485 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.1009, allocations: 7.938 kB / 0.5485 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.1009, allocations: 3.938 kB / 0.5486 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.101, allocations: 8 kB / 0.5486 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.101, allocations: 7.984 kB / 0.5486 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.101, allocations: 3.938 kB / 0.5486 GB, free: 15.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.689e-05/0.1011, allocations: 99.27 kB / 0.5487 GB, free: 15.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1011, allocations: 4.031 kB / 0.5487 GB, free: 15.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002336/0.1014, allocations: 15.94 kB / 0.5487 GB, free: 15.4 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.0006148/0.102, allocations: 0.7084 MB / 0.5494 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000216/0.1022, allocations: 47.89 kB / 0.5494 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1022, allocations: 224 / 0.5494 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.398e-05/0.1023, allocations: 27.98 kB / 0.5495 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.0002996/0.1026, allocations: 5.859 kB / 0.5495 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.1043, allocations: 1.405 MB / 0.5508 GB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.512e-05/0.1043, allocations: 75.33 kB / 0.5509 GB, free: 13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.199e-05/0.1044, allocations: 4 kB / 0.5509 GB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.14e-05/0.1044, allocations: 27.42 kB / 0.5509 GB, free: 12.96 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1044, allocations: 0 / 0.5509 GB, free: 12.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02927/0.1337, allocations: 2.375 MB / 0.5533 GB, free: 10.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.79, allocations: 11.19 kB / 0.5533 GB, free: 10.7 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 & /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: 13.622507323045284] Failed to read output from testmodel.py, exit status != 0: 10.897729803808033 11.094291179 10.995186544 Calling exit ...