Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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.001412/0.001412, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.47/1.47, allocations: 230.6 MB / 252.6 MB, free: 8.297 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.001628/0.001628, allocations: 213.8 kB / 309.2 MB, free: 3.195 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.07378/0.07378, allocations: 8.921 MB / 374.6 MB, free: 1.949 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.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",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.002757/0.002757, allocations: 91.86 kB / 0.4892 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.285, allocations: 55.59 MB / 0.5435 GB, free: 26.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.002822/0.2879, allocations: 1.848 MB / 0.5453 GB, free: 25.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009221/0.2888, allocations: 0.4946 MB / 0.5458 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2889, allocations: 3.188 kB / 0.5458 GB, free: 25.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.2891, allocations: 26.08 kB / 0.5458 GB, free: 25.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.2892, allocations: 26.2 kB / 0.5458 GB, free: 25.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001467/0.2893, allocations: 25.22 kB / 0.5459 GB, free: 25.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001956/0.2895, allocations: 125.1 kB / 0.546 GB, free: 25.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.2897, allocations: 38.66 kB / 0.546 GB, free: 25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.945e-05/0.2897, allocations: 42.47 kB / 0.5461 GB, free: 24.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.2898, allocations: 53.58 kB / 0.5461 GB, free: 24.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.2899, allocations: 13.22 kB / 0.5461 GB, free: 24.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.26e-05/0.2899, allocations: 9.094 kB / 0.5461 GB, free: 24.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.576e-05/0.2899, allocations: 22.66 kB / 0.5462 GB, free: 24.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.179e-05/0.29, allocations: 62.55 kB / 0.5462 GB, free: 24.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.2901, allocations: 120.8 kB / 0.5463 GB, free: 24.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2901, allocations: 0 / 0.5463 GB, free: 24.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2901, allocations: 3.938 kB / 0.5463 GB, free: 24.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2902, allocations: 0 / 0.5463 GB, free: 24.84 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0004868/0.2906, allocations: 339.3 kB / 0.5467 GB, free: 24.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.2907, allocations: 9.562 kB / 0.5467 GB, free: 24.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.171e-05/0.2907, allocations: 41.52 kB / 0.5467 GB, free: 24.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.235e-05/0.2908, allocations: 15.23 kB / 0.5467 GB, free: 24.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/0.291, allocations: 142.2 kB / 0.5469 GB, free: 24.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.291, allocations: 7.469 kB / 0.5469 GB, free: 24.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.291, allocations: 10.84 kB / 0.5469 GB, free: 24.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.2912, allocations: 108.8 kB / 0.547 GB, free: 24.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.2912, allocations: 3.938 kB / 0.547 GB, free: 24.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2913, allocations: 0 / 0.547 GB, free: 24.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2913, allocations: 7.375 kB / 0.547 GB, free: 24.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.2914, allocations: 58.33 kB / 0.547 GB, free: 24.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.292, allocations: 469 kB / 0.5475 GB, free: 23.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.007e-05/0.2921, allocations: 53.81 kB / 0.5475 GB, free: 23.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.796e-05/0.2921, allocations: 18.52 kB / 0.5476 GB, free: 23.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-06/0.2921, allocations: 0 / 0.5476 GB, free: 23.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.2921, allocations: 30.56 kB / 0.5476 GB, free: 23.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.2921, allocations: 0 / 0.5476 GB, free: 23.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001709/0.2923, allocations: 66.72 kB / 0.5476 GB, free: 23.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.2923, allocations: 55.34 kB / 0.5477 GB, free: 23.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.807e-05/0.2924, allocations: 140.4 kB / 0.5478 GB, free: 23.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.647e-06/0.2924, allocations: 29.7 kB / 0.5479 GB, free: 23.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.757e-05/0.2925, allocations: 117.5 kB / 0.548 GB, free: 23.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.135e-05/0.2925, allocations: 18.91 kB / 0.548 GB, free: 23.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.2925, allocations: 20.22 kB / 0.548 GB, free: 23.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.339e-05/0.2926, allocations: 322 kB / 0.5483 GB, free: 23.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.511e-05/0.2926, allocations: 13.94 kB / 0.5483 GB, free: 23.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.071e-05/0.2926, allocations: 31.47 kB / 0.5484 GB, free: 23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.508e-05/0.2927, allocations: 54.73 kB / 0.5484 GB, free: 22.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2927, allocations: 0 / 0.5484 GB, free: 22.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.797e-05/0.2928, allocations: 82.06 kB / 0.5485 GB, free: 22.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.2928, allocations: 6.406 kB / 0.5485 GB, free: 22.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2928, allocations: 0 / 0.5485 GB, free: 22.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.2928, allocations: 3.219 kB / 0.5485 GB, free: 22.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.2929, allocations: 24.28 kB / 0.5485 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.2929, allocations: 0 / 0.5485 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.405e-05/0.293, allocations: 11.14 kB / 0.5485 GB, free: 22.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.293, allocations: 3.281 kB / 0.5485 GB, free: 22.89 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 (8): * Single equations (assignments): 8 * 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 5.13e-05/0.293, allocations: 117.2 kB / 0.5487 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.2931, allocations: 7.016 kB / 0.5487 GB, free: 22.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.213e-05/0.2931, allocations: 14.69 kB / 0.5487 GB, free: 22.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2931, allocations: 3.938 kB / 0.5487 GB, free: 22.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2931, allocations: 0 / 0.5487 GB, free: 22.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2931, allocations: 4 kB / 0.5487 GB, free: 22.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.2932, allocations: 168.7 kB / 0.5488 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2932, allocations: 0 / 0.5488 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.377e-05/0.2933, allocations: 9.922 kB / 0.5489 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2933, allocations: 7.047 kB / 0.5489 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.2933, allocations: 0 / 0.5489 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2933, allocations: 0 / 0.5489 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2933, allocations: 3.984 kB / 0.5489 GB, free: 22.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.2934, allocations: 168.8 kB / 0.549 GB, free: 22.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.589e-05/0.2934, allocations: 15.45 kB / 0.549 GB, free: 22.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.2935, allocations: 7.156 kB / 0.549 GB, free: 22.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.428e-05/0.2935, allocations: 3.25 kB / 0.549 GB, free: 22.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.258e-05/0.2935, allocations: 3.516 kB / 0.5491 GB, free: 22.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.2936, allocations: 3.938 kB / 0.5491 GB, free: 22.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.034e-05/0.2936, allocations: 108.1 kB / 0.5492 GB, free: 22.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2936, allocations: 0 / 0.5492 GB, free: 22.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.2938, allocations: 23.95 kB / 0.5492 GB, free: 22.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * 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 (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 Backend phase and start with SimCode phase: time 0.0002416/0.2941, allocations: 0.6976 MB / 0.5499 GB, free: 21.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001083/0.2942, allocations: 34.36 kB / 0.5499 GB, free: 21.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2942, allocations: 0 / 0.5499 GB, free: 21.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.846e-05/0.2942, allocations: 15.83 kB / 0.5499 GB, free: 21.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.2945, allocations: 11.41 kB / 0.5499 GB, free: 21.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.2956, allocations: 1.577 MB / 0.5515 GB, free: 20.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.2958, allocations: 0.7067 MB / 0.5522 GB, free: 19.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.411e-05/0.2958, allocations: 6.047 kB / 0.5522 GB, free: 19.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.288e-05/0.2958, allocations: 33.08 kB / 0.5522 GB, free: 19.48 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2958, allocations: 3.938 kB / 0.5522 GB, free: 19.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02932/0.3252, allocations: 2.167 MB / 0.5543 GB, free: 19.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.44, allocations: 7.656 kB / 0.5543 GB, free: 19.03 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical4_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.136848633177578] Failed to read output from testmodel.py, exit status != 0: 11.538437399081886 11.549650941 11.256693046 Calling exit ...