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.001235/0.001235, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.444/1.444, allocations: 230.6 MB / 253.5 MB, free: 14.48 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.001704/0.001704, allocations: 207.3 kB / 310 MB, free: 2.996 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.0408/0.0408, allocations: 8.918 MB / 375.4 MB, free: 6.609 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.003095/0.003095, allocations: 83.88 kB / 0.4899 GB, free: 44.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.11, allocations: 55.62 MB / 0.5442 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.003804/0.1138, allocations: 2.424 MB / 0.5466 GB, free: 2.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.1149, allocations: 0.5921 MB / 0.5471 GB, free: 2.031 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.94e-05/0.115, allocations: 4 kB / 0.5471 GB, free: 2.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.1151, allocations: 39.58 kB / 0.5472 GB, free: 1.988 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.1153, allocations: 55.48 kB / 0.5472 GB, free: 1.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.1155, allocations: 67.86 kB / 0.5473 GB, free: 1.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.1158, allocations: 262.9 kB / 0.5475 GB, free: 1.609 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.116, allocations: 79.25 kB / 0.5476 GB, free: 1.531 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.1161, allocations: 103.6 kB / 0.5477 GB, free: 1.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.1162, allocations: 111.5 kB / 0.5478 GB, free: 1.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.1163, allocations: 24 kB / 0.5478 GB, free: 1.297 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.119e-05/0.1163, allocations: 24 kB / 0.5479 GB, free: 1.273 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.501e-05/0.1164, allocations: 55.77 kB / 0.5479 GB, free: 1.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.1165, allocations: 99.59 kB / 0.548 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.1168, allocations: 278.8 kB / 0.5483 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1168, allocations: 0 / 0.5483 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1168, allocations: 0 / 0.5483 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1168, allocations: 0 / 0.5483 GB, free: 0.8477 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.0007739/0.1176, allocations: 461.7 kB / 0.5487 GB, free: 376 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1177, allocations: 15.97 kB / 0.5487 GB, free: 360 kB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.556e-05/0.1177, allocations: 4.688 kB / 0.5487 GB, free: 356 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.437e-05/0.1177, allocations: 54.73 kB / 0.5488 GB, free: 292 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.374e-05/0.1178, allocations: 28.8 kB / 0.5488 GB, free: 264 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.1181, allocations: 179.2 kB / 0.549 GB, free: 60 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.1181, allocations: 24.62 kB / 0.549 GB, free: 36 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.243e-05/0.1182, allocations: 24 kB / 0.549 GB, free: 12 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004878/0.1187, allocations: 264.6 kB / 0.5493 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1187, allocations: 0 / 0.5493 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.1187, allocations: 8 kB / 0.5493 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.1187, allocations: 4 kB / 0.5493 GB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003522/0.1191, allocations: 161.8 kB / 0.5495 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.1203, allocations: 0.7733 MB / 0.5502 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.1206, allocations: 114.5 kB / 0.5503 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.1208, allocations: 52.83 kB / 0.5504 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.1208, allocations: 7.938 kB / 0.5504 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.1208, allocations: 34.56 kB / 0.5504 GB, free: 14.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.1208, allocations: 4 kB / 0.5504 GB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001223/0.122, allocations: 458.6 kB / 0.5509 GB, free: 14.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.1221, allocations: 55.34 kB / 0.5509 GB, free: 13.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.1223, allocations: 191.2 kB / 0.5511 GB, free: 13.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.1223, allocations: 29.64 kB / 0.5511 GB, free: 13.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.1224, allocations: 168.2 kB / 0.5513 GB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.666e-05/0.1225, allocations: 51.58 kB / 0.5513 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.706e-05/0.1225, allocations: 37.72 kB / 0.5514 GB, free: 13.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1227, allocations: 330.8 kB / 0.5517 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.1228, allocations: 39.98 kB / 0.5517 GB, free: 13.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.123, allocations: 97.03 kB / 0.5518 GB, free: 12.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002971/0.1233, allocations: 149.9 kB / 0.552 GB, free: 12.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1233, allocations: 4 kB / 0.552 GB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003802/0.1237, allocations: 196.2 kB / 0.5521 GB, free: 12.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1237, allocations: 4 kB / 0.5522 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1237, allocations: 4.188 kB / 0.5522 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.1237, allocations: 11.98 kB / 0.5522 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.1239, allocations: 43.92 kB / 0.5522 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1239, allocations: 11.92 kB / 0.5522 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.124, allocations: 8 kB / 0.5522 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.124, allocations: 4 kB / 0.5522 GB, free: 12.52 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.0001255/0.1242, allocations: 133.8 kB / 0.5524 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.1242, allocations: 11.91 kB / 0.5524 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.971e-05/0.1243, allocations: 25.45 kB / 0.5524 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1243, allocations: 4 kB / 0.5524 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1243, allocations: 7.938 kB / 0.5524 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.1243, allocations: 0 / 0.5524 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.1246, allocations: 224.6 kB / 0.5526 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1246, allocations: 0 / 0.5526 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.1248, allocations: 35.97 kB / 0.5527 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1248, allocations: 0 / 0.5527 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.1248, allocations: 8 kB / 0.5527 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1248, allocations: 0 / 0.5527 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1248, allocations: 3.938 kB / 0.5527 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006422/0.1254, allocations: 299.3 kB / 0.553 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.264e-05/0.1255, allocations: 19.89 kB / 0.553 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.1256, allocations: 4 kB / 0.553 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.1258, allocations: 4 kB / 0.553 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.1258, allocations: 11.92 kB / 0.553 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.1259, allocations: 11.98 kB / 0.553 GB, free: 11.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001611/0.126, allocations: 135.2 kB / 0.5531 GB, free: 11.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.126, allocations: 0 / 0.5531 GB, free: 11.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005041/0.1265, allocations: 40 kB / 0.5532 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.001161/0.1277, allocations: 0.8295 MB / 0.554 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005058/0.1282, allocations: 107.9 kB / 0.5541 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1282, allocations: 0 / 0.5541 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002173/0.1284, allocations: 59.91 kB / 0.5541 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.1289, allocations: 28.36 kB / 0.5542 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004277/0.1332, allocations: 2.146 MB / 0.5563 GB, free: 8.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.1334, allocations: 129.2 kB / 0.5564 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.1335, allocations: 13.48 kB / 0.5564 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.1336, allocations: 63.41 kB / 0.5565 GB, free: 7.965 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1336, allocations: 4 kB / 0.5565 GB, free: 7.961 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.1607, allocations: 3.684 MB / 0.5601 GB, free: 4.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.25, allocations: 12.44 kB / 0.5601 GB, free: 4.402 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.160596785950474] Failed to read output from testmodel.py, exit status != 0: 11.415680982056074 11.619661608 11.50028337 Calling exit ...