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.001438/0.001438, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.66/1.66, allocations: 230.6 MB / 253.4 MB, free: 14.43 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.001695/0.001695, allocations: 220.6 kB / 310 MB, free: 3.121 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.04159/0.04159, allocations: 8.917 MB / 375.4 MB, free: 6.734 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_Coupling",fmuType="cs",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.002526/0.002526, allocations: 80.3 kB / 0.49 GB, free: 44.92 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1296, allocations: 55.62 MB / 0.5443 GB, free: 5.199 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.004808/0.1344, allocations: 2.57 MB / 0.5468 GB, free: 2.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.1361, allocations: 0.6272 MB / 0.5474 GB, free: 1.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.1363, allocations: 4 kB / 0.5474 GB, free: 1.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.1365, allocations: 43.58 kB / 0.5474 GB, free: 1.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.1367, allocations: 63.42 kB / 0.5475 GB, free: 1.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.137, allocations: 63.91 kB / 0.5476 GB, free: 1.809 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004028/0.1374, allocations: 258.9 kB / 0.5478 GB, free: 1.555 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.1376, allocations: 79.22 kB / 0.5479 GB, free: 1.477 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.1378, allocations: 99.66 kB / 0.548 GB, free: 1.379 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.138, allocations: 119.4 kB / 0.5481 GB, free: 1.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.121e-05/0.1381, allocations: 24 kB / 0.5481 GB, free: 1.238 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.233e-05/0.1381, allocations: 31.94 kB / 0.5481 GB, free: 1.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.502e-05/0.1382, allocations: 43.84 kB / 0.5482 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.1383, allocations: 131.4 kB / 0.5483 GB, free: 1.035 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004153/0.1387, allocations: 262.9 kB / 0.5486 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1387, allocations: 0 / 0.5486 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1387, allocations: 0 / 0.5486 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.1387, allocations: 0 / 0.5486 GB, free: 0.7773 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.001038/0.1398, allocations: 465.7 kB / 0.549 GB, free: 300 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.1398, allocations: 11.98 kB / 0.549 GB, free: 288 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.456e-05/0.1398, allocations: 8.688 kB / 0.549 GB, free: 280 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.553e-05/0.1399, allocations: 62.72 kB / 0.5491 GB, free: 208 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.811e-05/0.14, allocations: 24.8 kB / 0.5491 GB, free: 184 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005246/0.1405, allocations: 175.2 kB / 0.5493 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/0.1406, allocations: 24.62 kB / 0.5493 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.705e-05/0.1406, allocations: 19.98 kB / 0.5493 GB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005707/0.1412, allocations: 246.7 kB / 0.5496 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.1412, allocations: 0 / 0.5496 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.1412, allocations: 12 kB / 0.5496 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.1413, allocations: 4 kB / 0.5496 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003972/0.1416, allocations: 157.9 kB / 0.5497 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.1434, allocations: 0.824 MB / 0.5505 GB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.1438, allocations: 122.5 kB / 0.5506 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.1439, allocations: 48.84 kB / 0.5507 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.892e-05/0.144, allocations: 4 kB / 0.5507 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.325e-05/0.144, allocations: 34.56 kB / 0.5507 GB, free: 14.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.532e-06/0.144, allocations: 0 / 0.5507 GB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001679/0.1457, allocations: 460.4 kB / 0.5512 GB, free: 13.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.1458, allocations: 55.41 kB / 0.5512 GB, free: 13.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002591/0.146, allocations: 187.2 kB / 0.5514 GB, free: 13.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.1461, allocations: 29.7 kB / 0.5514 GB, free: 13.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.1462, allocations: 168.2 kB / 0.5516 GB, free: 13.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/0.1463, allocations: 51.59 kB / 0.5516 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.062e-05/0.1463, allocations: 45.7 kB / 0.5517 GB, free: 13.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002322/0.1466, allocations: 322.8 kB / 0.552 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.1467, allocations: 39.98 kB / 0.552 GB, free: 12.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.1469, allocations: 102 kB / 0.5521 GB, free: 12.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.1472, allocations: 146.8 kB / 0.5523 GB, free: 12.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1472, allocations: 4 kB / 0.5523 GB, free: 12.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004156/0.1476, allocations: 192 kB / 0.5525 GB, free: 12.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.1476, allocations: 4 kB / 0.5525 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1477, allocations: 4 kB / 0.5525 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.1477, allocations: 0 / 0.5525 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.1479, allocations: 55.84 kB / 0.5525 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.1479, allocations: 4.125 kB / 0.5525 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.148, allocations: 12 kB / 0.5525 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.148, allocations: 8 kB / 0.5525 GB, free: 12.43 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.0001608/0.1482, allocations: 133.7 kB / 0.5527 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/0.1483, allocations: 19.84 kB / 0.5527 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.277e-05/0.1483, allocations: 25.45 kB / 0.5527 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1483, allocations: 0 / 0.5527 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.1483, allocations: 3.938 kB / 0.5527 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1483, allocations: 4 kB / 0.5527 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003385/0.1487, allocations: 244.6 kB / 0.5529 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1487, allocations: 0 / 0.5529 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.1489, allocations: 31.98 kB / 0.553 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1489, allocations: 0 / 0.553 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.1489, allocations: 4 kB / 0.553 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.785e-05/0.1489, allocations: 7.922 kB / 0.553 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1489, allocations: 7.938 kB / 0.553 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005783/0.1495, allocations: 289.3 kB / 0.5533 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.953e-05/0.1496, allocations: 19.92 kB / 0.5533 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.1496, allocations: 4 kB / 0.5533 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.1497, allocations: 15.98 kB / 0.5533 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.1498, allocations: 11.92 kB / 0.5533 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.1498, allocations: 8 kB / 0.5533 GB, free: 11.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001668/0.15, allocations: 131.2 kB / 0.5535 GB, free: 11.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.15, allocations: 0 / 0.5535 GB, free: 11.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000314/0.1503, allocations: 44.06 kB / 0.5535 GB, free: 11.38 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.0009965/0.1513, allocations: 0.8195 MB / 0.5543 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000435/0.1517, allocations: 122.3 kB / 0.5544 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1517, allocations: 0 / 0.5544 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.1518, allocations: 51.92 kB / 0.5545 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.1523, allocations: 27.92 kB / 0.5545 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/0.1556, allocations: 2.146 MB / 0.5566 GB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.156, allocations: 0.7359 MB / 0.5573 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.511e-05/0.1561, allocations: 25.45 kB / 0.5573 GB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.1562, allocations: 63.42 kB / 0.5574 GB, free: 7.227 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1562, allocations: 0 / 0.5574 GB, free: 7.227 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.1843, allocations: 3.646 MB / 0.5609 GB, free: 3.707 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.39, allocations: 8.047 kB / 0.561 GB, free: 3.699 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.950912046944723] Failed to read output from testmodel.py, exit status != 0: 12.557844357914291 12.854027801 12.712129025 Calling exit ...