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.001377/0.001377, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.495/1.495, allocations: 230.6 MB / 252.7 MB, free: 14.28 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.0017/0.0017, allocations: 212.9 kB / 309.2 MB, free: 3.145 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.04129/0.04129, allocations: 8.918 MB / 374.6 MB, free: 6.602 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.002558/0.002558, allocations: 83.88 kB / 0.4891 GB, free: 44.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09445, allocations: 55.6 MB / 0.5434 GB, free: 5.098 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.003032/0.09748, allocations: 1.764 MB / 0.5452 GB, free: 3.316 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008609/0.09834, allocations: 470.9 kB / 0.5456 GB, free: 2.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.327e-05/0.09843, allocations: 7.875 kB / 0.5456 GB, free: 2.844 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.09854, allocations: 19.84 kB / 0.5456 GB, free: 2.824 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.001e-05/0.09862, allocations: 35.7 kB / 0.5457 GB, free: 2.789 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.09877, allocations: 23.97 kB / 0.5457 GB, free: 2.766 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.09895, allocations: 119.5 kB / 0.5458 GB, free: 2.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.09907, allocations: 37.45 kB / 0.5458 GB, free: 2.613 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.439e-05/0.09914, allocations: 47.84 kB / 0.5459 GB, free: 2.566 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.301e-05/0.09923, allocations: 43.78 kB / 0.5459 GB, free: 2.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.879e-05/0.09926, allocations: 12 kB / 0.5459 GB, free: 2.512 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.307e-05/0.09928, allocations: 8 kB / 0.5459 GB, free: 2.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.09931, allocations: 19.92 kB / 0.546 GB, free: 2.484 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.979e-05/0.09937, allocations: 51.73 kB / 0.546 GB, free: 2.434 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001795/0.09955, allocations: 119.5 kB / 0.5461 GB, free: 2.316 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09955, allocations: 0 / 0.5461 GB, free: 2.316 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.09955, allocations: 0 / 0.5461 GB, free: 2.316 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.09956, allocations: 0 / 0.5461 GB, free: 2.316 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000524/0.1001, allocations: 341.8 kB / 0.5464 GB, free: 1.953 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.1001, allocations: 19.98 kB / 0.5465 GB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.006e-05/0.1002, allocations: 34.75 kB / 0.5465 GB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.1002, allocations: 16.89 kB / 0.5465 GB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.1005, allocations: 138.3 kB / 0.5466 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.1005, allocations: 8.375 kB / 0.5467 GB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.1005, allocations: 12.38 kB / 0.5467 GB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.1007, allocations: 127.5 kB / 0.5468 GB, free: 1.559 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.1007, allocations: 4 kB / 0.5468 GB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1007, allocations: 3.938 kB / 0.5468 GB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.1007, allocations: 7.938 kB / 0.5468 GB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.1009, allocations: 63.97 kB / 0.5469 GB, free: 1.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007478/0.1016, allocations: 449.4 kB / 0.5473 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.97e-05/0.1017, allocations: 42.56 kB / 0.5473 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.714e-05/0.1017, allocations: 16.86 kB / 0.5474 GB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.1017, allocations: 96 / 0.5474 GB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.1018, allocations: 38.55 kB / 0.5474 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of pre-optimization done (n=4): time 2.554e-06/0.1018, allocations: 11.92 kB / 0.5474 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of matching and sorting (n=4): time 0.000164/0.1019, allocations: 61.64 kB / 0.5475 GB, free: 0.793 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.102, allocations: 55.41 kB / 0.5475 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.1021, allocations: 139.9 kB / 0.5476 GB, free: 0.582 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.1021, allocations: 25.7 kB / 0.5477 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.1022, allocations: 124.1 kB / 0.5478 GB, free: 432 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.1022, allocations: 11.89 kB / 0.5478 GB, free: 420 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-05/0.1023, allocations: 25.67 kB / 0.5478 GB, free: 388 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1024, allocations: 322.8 kB / 0.5481 GB, free: 56 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.847e-05/0.1025, allocations: 12 kB / 0.5481 GB, free: 44 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.256e-05/0.1025, allocations: 34.56 kB / 0.5482 GB, free: 0 / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.256e-05/0.1026, allocations: 58.75 kB / 0.5482 GB, free: 15.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1026, allocations: 0 / 0.5482 GB, free: 15.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001217/0.1027, allocations: 77.58 kB / 0.5483 GB, free: 15.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.1027, allocations: 4 kB / 0.5483 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.1027, allocations: 4 kB / 0.5483 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.1027, allocations: 0 / 0.5483 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.637e-05/0.1028, allocations: 19.92 kB / 0.5483 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1028, allocations: 0 / 0.5483 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.568e-05/0.1029, allocations: 12 kB / 0.5483 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.1029, allocations: 8 kB / 0.5484 GB, free: 15.8 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 9.698e-05/0.103, allocations: 121.7 kB / 0.5485 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.103, allocations: 7.953 kB / 0.5485 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.523e-05/0.103, allocations: 8.344 kB / 0.5485 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.103, allocations: 0 / 0.5485 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1031, allocations: 4 kB / 0.5485 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1031, allocations: 0 / 0.5485 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.1033, allocations: 164.6 kB / 0.5486 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1033, allocations: 3.938 kB / 0.5486 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.298e-05/0.1033, allocations: 12 kB / 0.5487 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1033, allocations: 0 / 0.5487 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-06/0.1033, allocations: 0 / 0.5487 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1033, allocations: 3.984 kB / 0.5487 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1033, allocations: 0 / 0.5487 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001839/0.1035, allocations: 171.4 kB / 0.5488 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.733e-05/0.1035, allocations: 11.89 kB / 0.5488 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.1035, allocations: 4.031 kB / 0.5488 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.1036, allocations: 3.984 kB / 0.5488 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.1036, allocations: 4 kB / 0.5488 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.1037, allocations: 8.125 kB / 0.5489 GB, free: 15.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.078e-05/0.1037, allocations: 109.6 kB / 0.549 GB, free: 15.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1037, allocations: 0 / 0.549 GB, free: 15.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002447/0.104, allocations: 27.89 kB / 0.549 GB, free: 15.08 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.0004437/0.1044, allocations: 0.6928 MB / 0.5497 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000102/0.1045, allocations: 31.98 kB / 0.5497 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1045, allocations: 0 / 0.5497 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.894e-05/0.1046, allocations: 15.94 kB / 0.5497 GB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.1048, allocations: 20.11 kB / 0.5497 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.1064, allocations: 1.571 MB / 0.5513 GB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.869e-05/0.1065, allocations: 92.05 kB / 0.5514 GB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.412e-05/0.1065, allocations: 4.672 kB / 0.5514 GB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.323e-05/0.1066, allocations: 27.42 kB / 0.5514 GB, free: 12.49 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1066, allocations: 4 kB / 0.5514 GB, free: 12.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.1374, allocations: 2.597 MB / 0.5539 GB, free: 10.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.32, allocations: 4.062 kB / 0.5539 GB, free: 10.01 MB / 382.1 MB " [Timeout remaining time 649] (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.288927765097469] Failed to read output from testmodel.py, exit status != 0: 11.42238768003881 11.668180388 11.566032747 Calling exit ...