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.001383/0.001383, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.451/1.451, allocations: 230.6 MB / 253.5 MB, free: 14.48 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.002765/0.002765, allocations: 216 kB / 310 MB, free: 3.004 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.05866/0.05866, allocations: 8.916 MB / 375.4 MB, free: 6.609 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.002607/0.002607, allocations: 83.88 kB / 0.4899 GB, free: 44.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08724/0.08985, allocations: 55.62 MB / 0.5442 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TestBrush): time 0.003322/0.09317, allocations: 1.754 MB / 0.5459 GB, free: 3.289 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.09418, allocations: 0.491 MB / 0.5464 GB, free: 2.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.927e-05/0.09426, allocations: 0 / 0.5464 GB, free: 2.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 6.02e-05/0.09432, allocations: 11.92 kB / 0.5464 GB, free: 2.781 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.09442, allocations: 15.8 kB / 0.5464 GB, free: 2.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002154/0.09463, allocations: 35.91 kB / 0.5464 GB, free: 2.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.09476, allocations: 83.66 kB / 0.5465 GB, free: 2.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.09489, allocations: 23.97 kB / 0.5466 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.09499, allocations: 39.8 kB / 0.5466 GB, free: 2.586 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.018e-05/0.09506, allocations: 39.84 kB / 0.5466 GB, free: 2.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.09508, allocations: 8 kB / 0.5466 GB, free: 2.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.875e-05/0.09515, allocations: 19.98 kB / 0.5467 GB, free: 2.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.09517, allocations: 12 kB / 0.5467 GB, free: 2.508 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.445e-05/0.09523, allocations: 35.8 kB / 0.5467 GB, free: 2.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.09542, allocations: 99.61 kB / 0.5468 GB, free: 2.375 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.09543, allocations: 4 kB / 0.5468 GB, free: 2.371 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09543, allocations: 4 kB / 0.5468 GB, free: 2.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.09543, allocations: 0 / 0.5468 GB, free: 2.367 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.0005674/0.096, allocations: 314 kB / 0.5471 GB, free: 2.031 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.09604, allocations: 11.98 kB / 0.5471 GB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.704e-05/0.09606, allocations: 4.188 kB / 0.5471 GB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.802e-05/0.09609, allocations: 38.69 kB / 0.5472 GB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.09613, allocations: 8.891 kB / 0.5472 GB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.09628, allocations: 122.4 kB / 0.5473 GB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.09629, allocations: 8.359 kB / 0.5473 GB, free: 1.809 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.09631, allocations: 12.38 kB / 0.5473 GB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.09655, allocations: 89.59 kB / 0.5474 GB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.09656, allocations: 0 / 0.5474 GB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.09657, allocations: 4 kB / 0.5474 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.09658, allocations: 0 / 0.5474 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.09681, allocations: 75.81 kB / 0.5475 GB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/0.0974, allocations: 342.8 kB / 0.5478 GB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.09754, allocations: 46.48 kB / 0.5478 GB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.554e-05/0.09762, allocations: 20.91 kB / 0.5479 GB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.09764, allocations: 4 kB / 0.5479 GB, free: 1.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.09767, allocations: 30.56 kB / 0.5479 GB, free: 1.121 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.09767, allocations: 0 / 0.5479 GB, free: 1.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003542/0.09802, allocations: 105.5 kB / 0.548 GB, free: 1.012 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.09807, allocations: 51.41 kB / 0.548 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.09817, allocations: 129.7 kB / 0.5482 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.09819, allocations: 25.7 kB / 0.5482 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.125e-05/0.09826, allocations: 104.1 kB / 0.5483 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.296e-05/0.09827, allocations: 15.89 kB / 0.5483 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.09831, allocations: 13.72 kB / 0.5483 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.09844, allocations: 318.8 kB / 0.5486 GB, free: 328 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.005e-05/0.09853, allocations: 19.98 kB / 0.5486 GB, free: 308 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.09863, allocations: 38.69 kB / 0.5487 GB, free: 260 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.09881, allocations: 62.47 kB / 0.5487 GB, free: 188 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.09881, allocations: 0 / 0.5487 GB, free: 188 kB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002293/0.09904, allocations: 89.55 kB / 0.5488 GB, free: 92 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.09905, allocations: 11.94 kB / 0.5488 GB, free: 80 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.09906, allocations: 0 / 0.5488 GB, free: 80 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.09907, allocations: 0 / 0.5488 GB, free: 80 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.257e-05/0.09916, allocations: 15.98 kB / 0.5488 GB, free: 64 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.09917, allocations: 4 kB / 0.5488 GB, free: 60 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.918e-05/0.09923, allocations: 7.984 kB / 0.5489 GB, free: 52 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-06/0.09923, allocations: 0 / 0.5489 GB, free: 52 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.0001099/0.09934, allocations: 113.8 kB / 0.549 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.09938, allocations: 15.98 kB / 0.549 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.74e-05/0.0994, allocations: 7.562 kB / 0.549 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.09941, allocations: 4 kB / 0.549 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.09941, allocations: 0 / 0.549 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.09941, allocations: 0 / 0.549 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.0996, allocations: 148.7 kB / 0.5491 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.0996, allocations: 3.984 kB / 0.5491 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.58e-05/0.09968, allocations: 8 kB / 0.5491 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.09969, allocations: 3.938 kB / 0.5491 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.09969, allocations: 0 / 0.5491 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.09969, allocations: 0 / 0.5491 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.09969, allocations: 4 kB / 0.5491 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.09994, allocations: 163.5 kB / 0.5493 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.744e-05/0.09996, allocations: 11.94 kB / 0.5493 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.09998, allocations: 11.94 kB / 0.5493 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.85e-05/0.1001, allocations: 4 kB / 0.5493 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.1001, allocations: 3.984 kB / 0.5493 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.1001, allocations: 7.938 kB / 0.5493 GB, free: 15.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.167e-05/0.1002, allocations: 91.27 kB / 0.5494 GB, free: 15.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1002, allocations: 4.031 kB / 0.5494 GB, free: 15.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1004, allocations: 23.94 kB / 0.5495 GB, free: 15.36 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.0005667/0.101, allocations: 0.7006 MB / 0.5501 GB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.1012, allocations: 47.89 kB / 0.5502 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1012, allocations: 4.219 kB / 0.5502 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.428e-05/0.1013, allocations: 19.98 kB / 0.5502 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.1016, allocations: 19.69 kB / 0.5502 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.1033, allocations: 1.414 MB / 0.5516 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.661e-05/0.1033, allocations: 75.27 kB / 0.5517 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.033e-05/0.1034, allocations: 4 kB / 0.5517 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.1034, allocations: 27.42 kB / 0.5517 GB, free: 12.92 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1034, allocations: 0 / 0.5517 GB, free: 12.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.1251, allocations: 2.016 MB / 0.5537 GB, free: 11.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/10.95, allocations: 6.391 kB / 0.5537 GB, free: 11.02 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.883041642024182] Failed to read output from testmodel.py, exit status != 0: 11.110088219982572 11.283336215 11.185236915 Calling exit ...