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.0007783/0.0007783, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.8825/0.8825, allocations: 177.1 MB / 199.4 MB, free: 5.938 MB / 186.7 MB " [Timeout remaining time 179] 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.001067/0.001067, allocations: 156.6 kB / 256 MB, free: 13.35 MB / 250.7 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.02225/0.02225, allocations: 6.667 MB / 319 MB, free: 26.76 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.331e-05/1.482e-05, allocations: 6.281 kB / 445.4 MB, free: 37.63 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.002321/0.002336, allocations: 2.416 MB / 447.8 MB, free: 35.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007021/0.003038, allocations: 0.5998 MB / 448.4 MB, free: 34.59 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.928e-05/0.003137, allocations: 7.938 kB / 448.4 MB, free: 34.59 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.003251, allocations: 35.64 kB / 448.5 MB, free: 34.55 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 9.304e-05/0.003344, allocations: 67.36 kB / 448.5 MB, free: 34.48 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002122/0.003556, allocations: 67.89 kB / 448.6 MB, free: 34.42 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001857/0.003742, allocations: 270.7 kB / 448.8 MB, free: 34.15 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.00391, allocations: 71.28 kB / 448.9 MB, free: 34.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.004031, allocations: 147.8 kB / 449.1 MB, free: 33.94 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.004152, allocations: 79.7 kB / 449.1 MB, free: 33.86 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.107e-05/0.004193, allocations: 24 kB / 449.2 MB, free: 33.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.347e-05/0.004217, allocations: 24 kB / 449.2 MB, free: 33.82 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.342e-05/0.00425, allocations: 55.81 kB / 449.2 MB, free: 33.76 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.81e-05/0.004308, allocations: 91.75 kB / 449.3 MB, free: 33.67 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002543/0.004563, allocations: 271.1 kB / 449.6 MB, free: 33.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.004567, allocations: 4 kB / 449.6 MB, free: 33.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.004568, allocations: 0 / 449.6 MB, free: 33.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.004577, allocations: 3.938 kB / 449.6 MB, free: 33.4 MB / 330.7 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.0006805/0.005257, allocations: 453.7 kB / 450 MB, free: 32.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.005305, allocations: 16.03 kB / 450.1 MB, free: 32.91 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.213e-05/0.005348, allocations: 58.73 kB / 450.1 MB, free: 32.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.005387, allocations: 24.8 kB / 450.1 MB, free: 32.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.005593, allocations: 174.5 kB / 450.3 MB, free: 32.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.005612, allocations: 20.88 kB / 450.3 MB, free: 32.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.631e-05/0.005638, allocations: 20.38 kB / 450.4 MB, free: 32.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.005911, allocations: 264.8 kB / 450.6 MB, free: 32.31 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.00592, allocations: 0 / 450.6 MB, free: 32.31 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.005936, allocations: 12 kB / 450.6 MB, free: 32.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.005942, allocations: 8 kB / 450.6 MB, free: 32.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.006131, allocations: 165.8 kB / 450.8 MB, free: 32.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007228/0.006854, allocations: 0.7738 MB / 451.6 MB, free: 31.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.007041, allocations: 122.5 kB / 451.7 MB, free: 31.16 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.232e-05/0.007113, allocations: 44.83 kB / 451.7 MB, free: 31.12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.007129, allocations: 4 kB / 451.7 MB, free: 31.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.007148, allocations: 34.56 kB / 451.8 MB, free: 31.07 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.402e-06/0.007149, allocations: 0 / 451.8 MB, free: 31.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007464/0.007895, allocations: 463.1 kB / 452.2 MB, free: 30.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.007916, allocations: 51.41 kB / 452.3 MB, free: 30.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.583e-05/0.008012, allocations: 183.3 kB / 452.4 MB, free: 30.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.008021, allocations: 29.7 kB / 452.5 MB, free: 30.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.657e-05/0.008067, allocations: 164.1 kB / 452.6 MB, free: 30.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.008088, allocations: 55.53 kB / 452.7 MB, free: 30.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.008127, allocations: 37.7 kB / 452.7 MB, free: 30.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.83e-05/0.008166, allocations: 326.8 kB / 453 MB, free: 29.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.05e-05/0.008236, allocations: 47.97 kB / 453.1 MB, free: 29.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-05/0.008315, allocations: 100.3 kB / 453.2 MB, free: 29.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.008457, allocations: 148.5 kB / 453.3 MB, free: 29.38 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.00846, allocations: 8 kB / 453.3 MB, free: 29.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002042/0.008664, allocations: 185.4 kB / 453.5 MB, free: 29.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.00868, allocations: 8 kB / 453.5 MB, free: 29.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.008686, allocations: 0 / 453.5 MB, free: 29.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.008702, allocations: 4 kB / 453.5 MB, free: 29.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.008835, allocations: 51.91 kB / 453.6 MB, free: 29.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.008841, allocations: 7.984 kB / 453.6 MB, free: 29.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.267e-05/0.008894, allocations: 7.984 kB / 453.6 MB, free: 29.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.008902, allocations: 12.19 kB / 453.6 MB, free: 29.1 MB / 330.7 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 6.656e-05/0.008969, allocations: 137.7 kB / 453.8 MB, free: 28.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.008989, allocations: 19.86 kB / 453.8 MB, free: 28.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.009021, allocations: 17.47 kB / 453.8 MB, free: 28.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.009022, allocations: 7.938 kB / 453.8 MB, free: 28.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.009027, allocations: 3.984 kB / 453.8 MB, free: 28.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.00903, allocations: 0 / 453.8 MB, free: 28.9 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.009175, allocations: 228.5 kB / 454 MB, free: 28.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.009176, allocations: 0 / 454 MB, free: 28.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.558e-05/0.009261, allocations: 35.97 kB / 454.1 MB, free: 28.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.009264, allocations: 8 kB / 454.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.009271, allocations: 0 / 454.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.009272, allocations: 0 / 454.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.009273, allocations: 0 / 454.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.009543, allocations: 295.2 kB / 454.4 MB, free: 28.29 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.009589, allocations: 23.91 kB / 454.4 MB, free: 28.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.009608, allocations: 11.98 kB / 454.4 MB, free: 28.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.153e-05/0.00967, allocations: 4 kB / 454.4 MB, free: 28.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.5e-05/0.009705, allocations: 16.05 kB / 454.4 MB, free: 28.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.00971, allocations: 0 / 454.4 MB, free: 28.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.659e-05/0.009767, allocations: 143.2 kB / 454.5 MB, free: 28.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009767, allocations: 0 / 454.5 MB, free: 28.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001776/0.009944, allocations: 40 kB / 454.6 MB, free: 28.05 MB / 330.7 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.0003157/0.01026, allocations: 0.8249 MB / 455.4 MB, free: 27.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001693/0.01043, allocations: 122 kB / 455.5 MB, free: 27.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01043, allocations: 0 / 455.5 MB, free: 27.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.228e-05/0.01049, allocations: 51.92 kB / 455.6 MB, free: 27.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.0107, allocations: 19.98 kB / 455.6 MB, free: 27.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.012, allocations: 2.121 MB / 457.7 MB, free: 24.78 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.097e-05/0.01205, allocations: 121.2 kB / 457.8 MB, free: 24.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.202e-05/0.01211, allocations: 25.45 kB / 457.9 MB, free: 24.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.168e-05/0.01217, allocations: 64.48 kB / 457.9 MB, free: 24.55 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01217, allocations: 0 / 457.9 MB, free: 24.55 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01816/0.03033, allocations: 4.109 MB / 462 MB, free: 20.58 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.722/6.752, allocations: 15.61 kB / 462.1 MB, free: 20.57 MB / 330.7 MB " [Timeout remaining time 653] (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: 8.62461342383176] Failed to read output from testmodel.py, exit status != 0: 6.83321990352124 6.840540754 6.834644058 Calling exit ...