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.001324/0.001324, 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.471/1.471, allocations: 230.6 MB / 252.7 MB, free: 14.26 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.001525/0.001525, allocations: 211.6 kB / 309.2 MB, free: 3.141 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.041/0.041, allocations: 8.921 MB / 374.6 MB, free: 6.57 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.002464/0.002464, allocations: 83.88 kB / 0.4891 GB, free: 44.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07851/0.08097, allocations: 55.6 MB / 0.5434 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.004049/0.08502, allocations: 2.416 MB / 0.5458 GB, free: 2.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.08624, allocations: 0.5921 MB / 0.5464 GB, free: 2.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.08635, allocations: 8 kB / 0.5464 GB, free: 2.012 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.0865, allocations: 39.64 kB / 0.5464 GB, free: 1.973 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.08665, allocations: 59.42 kB / 0.5465 GB, free: 1.914 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.08693, allocations: 67.84 kB / 0.5465 GB, free: 1.848 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.08724, allocations: 259 kB / 0.5468 GB, free: 1.594 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.08741, allocations: 71.23 kB / 0.5469 GB, free: 1.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.08753, allocations: 103.6 kB / 0.547 GB, free: 1.422 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.08768, allocations: 95.55 kB / 0.547 GB, free: 1.328 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.145e-05/0.08772, allocations: 24 kB / 0.5471 GB, free: 1.305 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.127e-05/0.08776, allocations: 24 kB / 0.5471 GB, free: 1.281 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.764e-05/0.08782, allocations: 59.75 kB / 0.5471 GB, free: 1.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.894e-05/0.08792, allocations: 99.59 kB / 0.5472 GB, free: 1.125 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.08823, allocations: 278.8 kB / 0.5475 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.08823, allocations: 0 / 0.5475 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08823, allocations: 0 / 0.5475 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.08824, allocations: 0 / 0.5475 GB, free: 0.8516 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.00079/0.08903, allocations: 467.6 kB / 0.548 GB, free: 376 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.08907, allocations: 11.98 kB / 0.548 GB, free: 364 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.211e-05/0.08914, allocations: 54.73 kB / 0.548 GB, free: 300 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.319e-05/0.08919, allocations: 24.8 kB / 0.548 GB, free: 276 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.08953, allocations: 179.2 kB / 0.5482 GB, free: 72 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.08955, allocations: 16.88 kB / 0.5482 GB, free: 56 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.0896, allocations: 27.94 kB / 0.5483 GB, free: 28 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.0901, allocations: 268.4 kB / 0.5485 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.09011, allocations: 0 / 0.5485 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.09013, allocations: 8 kB / 0.5485 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.09014, allocations: 8 kB / 0.5485 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003548/0.0905, allocations: 157.9 kB / 0.5487 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001297/0.09179, allocations: 0.7811 MB / 0.5494 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.0921, allocations: 118.5 kB / 0.5496 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.09223, allocations: 52.83 kB / 0.5496 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.09225, allocations: 3.938 kB / 0.5496 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.09228, allocations: 38.56 kB / 0.5496 GB, free: 14.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.884e-06/0.09228, allocations: 0 / 0.5496 GB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001251/0.09354, allocations: 452.8 kB / 0.5501 GB, free: 14.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.09359, allocations: 59.34 kB / 0.5501 GB, free: 13.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.0938, allocations: 183.2 kB / 0.5503 GB, free: 13.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.09383, allocations: 29.7 kB / 0.5503 GB, free: 13.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.09395, allocations: 160.2 kB / 0.5505 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.356e-05/0.09402, allocations: 59.52 kB / 0.5505 GB, free: 13.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.09409, allocations: 37.72 kB / 0.5506 GB, free: 13.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.09426, allocations: 330.8 kB / 0.5509 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.0944, allocations: 39.98 kB / 0.5509 GB, free: 13.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.09456, allocations: 101.2 kB / 0.551 GB, free: 12.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.09488, allocations: 151.8 kB / 0.5512 GB, free: 12.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.09488, allocations: 0 / 0.5512 GB, free: 12.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003967/0.09528, allocations: 191.6 kB / 0.5514 GB, free: 12.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.0953, allocations: 8 kB / 0.5514 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.09531, allocations: 0 / 0.5514 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/0.09534, allocations: 4 kB / 0.5514 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.09556, allocations: 40.17 kB / 0.5514 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.09558, allocations: 19.91 kB / 0.5514 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.09569, allocations: 11.94 kB / 0.5514 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.0957, allocations: 8 kB / 0.5514 GB, free: 12.53 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 0.0001381/0.09584, allocations: 125.8 kB / 0.5516 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.089e-05/0.09588, allocations: 19.86 kB / 0.5516 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.792e-05/0.09594, allocations: 25.45 kB / 0.5516 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.09594, allocations: 0 / 0.5516 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.09595, allocations: 4 kB / 0.5516 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.09595, allocations: 3.938 kB / 0.5516 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.09624, allocations: 228.7 kB / 0.5518 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.09625, allocations: 3.984 kB / 0.5518 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.09642, allocations: 35.92 kB / 0.5519 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.09642, allocations: 0 / 0.5519 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.09643, allocations: 4 kB / 0.5519 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.09644, allocations: 0 / 0.5519 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.09644, allocations: 3.938 kB / 0.5519 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/0.09692, allocations: 297.5 kB / 0.5522 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.301e-05/0.09698, allocations: 23.92 kB / 0.5522 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.09701, allocations: 8 kB / 0.5522 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.09713, allocations: 11.94 kB / 0.5522 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.09718, allocations: 19.89 kB / 0.5522 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.09719, allocations: 8 kB / 0.5522 GB, free: 11.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001066/0.0973, allocations: 127.2 kB / 0.5524 GB, free: 11.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.0973, allocations: 0 / 0.5524 GB, free: 11.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.09757, allocations: 40 kB / 0.5524 GB, free: 11.49 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.0007704/0.09834, allocations: 0.8234 MB / 0.5532 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.09866, allocations: 107.9 kB / 0.5533 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.09866, allocations: 0 / 0.5533 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.0988, allocations: 59.91 kB / 0.5534 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.09911, allocations: 23.88 kB / 0.5534 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.1019, allocations: 2.15 MB / 0.5555 GB, free: 8.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.102, allocations: 125.2 kB / 0.5556 GB, free: 8.051 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.465e-05/0.1021, allocations: 17.47 kB / 0.5556 GB, free: 8.035 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.1022, allocations: 67.41 kB / 0.5557 GB, free: 7.969 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1022, allocations: 4 kB / 0.5557 GB, free: 7.965 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03166/0.1339, allocations: 3.981 MB / 0.5596 GB, free: 4.094 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.02, allocations: 6.906 kB / 0.5596 GB, free: 4.09 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: 13.83088174695149] Failed to read output from testmodel.py, exit status != 0: 11.12426997628063 11.320668169 11.229476603 Calling exit ...