Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.Coupling.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.001389/0.001389, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.538/1.538, allocations: 230.6 MB / 252.6 MB, free: 8.312 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.001828/0.001828, allocations: 227.6 kB / 309.2 MB, free: 3.191 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.04328/0.04328, allocations: 8.913 MB / 374.6 MB, free: 1.953 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.Magnetic.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_Coupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_Coupling",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.004279/0.004279, allocations: 92.16 kB / 0.4892 GB, free: 7.375 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3182, allocations: 55.6 MB / 0.5435 GB, free: 26.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.003569/0.3218, allocations: 2.585 MB / 0.546 GB, free: 24.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009683/0.3228, allocations: 0.6341 MB / 0.5466 GB, free: 24.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.3229, allocations: 3.25 kB / 0.5466 GB, free: 24.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.323, allocations: 40.5 kB / 0.5467 GB, free: 24.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.3231, allocations: 56.28 kB / 0.5467 GB, free: 24.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/0.3234, allocations: 70.56 kB / 0.5468 GB, free: 24.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002358/0.3236, allocations: 266 kB / 0.5471 GB, free: 24.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.3238, allocations: 76.02 kB / 0.5471 GB, free: 24.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.673e-05/0.3239, allocations: 95.98 kB / 0.5472 GB, free: 24.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.324, allocations: 115 kB / 0.5473 GB, free: 24.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.329e-05/0.3241, allocations: 22.34 kB / 0.5473 GB, free: 24.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.346e-05/0.3241, allocations: 25.16 kB / 0.5474 GB, free: 24.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.659e-05/0.3241, allocations: 55.84 kB / 0.5474 GB, free: 24.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.54e-05/0.3242, allocations: 120.5 kB / 0.5475 GB, free: 24.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.3245, allocations: 268.2 kB / 0.5478 GB, free: 23.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3245, allocations: 3.938 kB / 0.5478 GB, free: 23.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3245, allocations: 4 kB / 0.5478 GB, free: 23.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.493e-06/0.3245, allocations: 0 / 0.5478 GB, free: 23.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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.000678/0.3252, allocations: 457.9 kB / 0.5482 GB, free: 23.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.3252, allocations: 9.188 kB / 0.5483 GB, free: 23.54 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.038e-05/0.3253, allocations: 59.59 kB / 0.5483 GB, free: 23.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.823e-05/0.3253, allocations: 25.52 kB / 0.5483 GB, free: 23.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.3256, allocations: 187.5 kB / 0.5485 GB, free: 23.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.3256, allocations: 18.53 kB / 0.5485 GB, free: 23.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/0.3256, allocations: 25.03 kB / 0.5486 GB, free: 23.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003793/0.326, allocations: 233 kB / 0.5488 GB, free: 23.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.326, allocations: 0 / 0.5488 GB, free: 23.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.3261, allocations: 15.09 kB / 0.5488 GB, free: 23.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.3261, allocations: 6.5 kB / 0.5488 GB, free: 23.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.3264, allocations: 161.4 kB / 0.5489 GB, free: 23.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.3274, allocations: 0.8204 MB / 0.5497 GB, free: 22.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.3277, allocations: 122.7 kB / 0.5499 GB, free: 22.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3278, allocations: 49.8 kB / 0.5499 GB, free: 22.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.3278, allocations: 3.125 kB / 0.5499 GB, free: 22.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.3278, allocations: 30.56 kB / 0.5499 GB, free: 22.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.3278, allocations: 4 kB / 0.55 GB, free: 22.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001079/0.3289, allocations: 451.6 kB / 0.5504 GB, free: 22.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.3289, allocations: 54.47 kB / 0.5504 GB, free: 22.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.329, allocations: 191 kB / 0.5506 GB, free: 21.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.3291, allocations: 28.8 kB / 0.5506 GB, free: 21.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/0.3291, allocations: 163 kB / 0.5508 GB, free: 21.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.3291, allocations: 53.19 kB / 0.5508 GB, free: 21.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.293e-05/0.3292, allocations: 41.05 kB / 0.5509 GB, free: 21.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.141e-05/0.3292, allocations: 325.4 kB / 0.5512 GB, free: 21.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3294, allocations: 46.11 kB / 0.5512 GB, free: 21.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.3295, allocations: 101.8 kB / 0.5513 GB, free: 21.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.3297, allocations: 144.6 kB / 0.5515 GB, free: 21.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3297, allocations: 3.938 kB / 0.5515 GB, free: 21.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000306/0.33, allocations: 190.8 kB / 0.5517 GB, free: 21.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.33, allocations: 6.25 kB / 0.5517 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.33, allocations: 192 / 0.5517 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3301, allocations: 7.25 kB / 0.5517 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.3303, allocations: 52.03 kB / 0.5517 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3303, allocations: 3.031 kB / 0.5517 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.3304, allocations: 10.88 kB / 0.5517 GB, free: 20.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.3304, allocations: 10.28 kB / 0.5517 GB, free: 20.99 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 8.648e-05/0.3305, allocations: 134.9 kB / 0.5519 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-05/0.3305, allocations: 13.81 kB / 0.5519 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.211e-05/0.3306, allocations: 26.72 kB / 0.5519 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3306, allocations: 0 / 0.5519 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.3306, allocations: 0 / 0.5519 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3306, allocations: 6.469 kB / 0.5519 GB, free: 20.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.3308, allocations: 238 kB / 0.5521 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3308, allocations: 3.062 kB / 0.5522 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.3309, allocations: 37.75 kB / 0.5522 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3309, allocations: 0 / 0.5522 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.331, allocations: 0 / 0.5522 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.331, allocations: 3.094 kB / 0.5522 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.331, allocations: 4 kB / 0.5522 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/0.3314, allocations: 302.8 kB / 0.5525 GB, free: 20.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.3314, allocations: 21.73 kB / 0.5525 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.3314, allocations: 4 kB / 0.5525 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.3316, allocations: 6.25 kB / 0.5525 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.286e-05/0.3316, allocations: 20.31 kB / 0.5525 GB, free: 20.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.3316, allocations: 7.094 kB / 0.5525 GB, free: 20.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.436e-05/0.3317, allocations: 130.6 kB / 0.5527 GB, free: 20.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3317, allocations: 0 / 0.5527 GB, free: 20.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.332, allocations: 39.09 kB / 0.5527 GB, free: 20.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (converter.i) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0005585/0.3326, allocations: 0.8283 MB / 0.5535 GB, free: 19.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.3329, allocations: 118.7 kB / 0.5536 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3329, allocations: 0 / 0.5536 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.333, allocations: 54.19 kB / 0.5537 GB, free: 19.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.3333, allocations: 28.3 kB / 0.5537 GB, free: 19.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.3355, allocations: 2.158 MB / 0.5558 GB, free: 17.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.3357, allocations: 0.7388 MB / 0.5565 GB, free: 17.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.942e-05/0.3358, allocations: 17.86 kB / 0.5565 GB, free: 17.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.722e-05/0.3359, allocations: 63.42 kB / 0.5566 GB, free: 17.08 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3359, allocations: 0 / 0.5566 GB, free: 17.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03484/0.3707, allocations: 3.621 MB / 0.5601 GB, free: 16.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.39, allocations: 4 kB / 0.5601 GB, free: 16.5 MB / 382.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.Magnetic.Coupling.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.Coupling.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.Coupling.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.Coupling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Magnetic_Coupling_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_Coupling.fmu > HanserModelica_HanserModelica.Magnetic.Coupling.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.2239010699559] Failed to read output from testmodel.py, exit status != 0: 11.499875965062529 11.510929293 11.183625308 Calling exit ...