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.001272/0.001272, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.532/1.532, allocations: 230.6 MB / 249.8 MB, free: 9.215 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.001628/0.001628, allocations: 209.3 kB / 306 MB, free: 4.285 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.04185/0.04185, allocations: 8.903 MB / 371 MB, free: 3.426 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.002325/0.002325, allocations: 86.17 kB / 495.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1146, allocations: 55.57 MB / 0.5384 GB, free: 6.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.Coupling): time 0.004195/0.1188, allocations: 2.547 MB / 0.5409 GB, free: 3.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.12, allocations: 0.6349 MB / 0.5415 GB, free: 3.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.1201, allocations: 4 kB / 0.5415 GB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.1203, allocations: 35.64 kB / 0.5415 GB, free: 3.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.1205, allocations: 63.42 kB / 0.5416 GB, free: 3.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.1208, allocations: 67.8 kB / 0.5416 GB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.1211, allocations: 258.9 kB / 0.5419 GB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1213, allocations: 78.77 kB / 0.542 GB, free: 2.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.1214, allocations: 99.64 kB / 0.5421 GB, free: 2.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.1216, allocations: 123.5 kB / 0.5422 GB, free: 2.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.324e-05/0.1217, allocations: 24 kB / 0.5422 GB, free: 2.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.246e-05/0.1217, allocations: 24 kB / 0.5422 GB, free: 2.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-05/0.1218, allocations: 47.84 kB / 0.5423 GB, free: 2.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.1219, allocations: 123.4 kB / 0.5424 GB, free: 2.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003557/0.1222, allocations: 266.9 kB / 0.5426 GB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1222, allocations: 0 / 0.5426 GB, free: 2.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1222, allocations: 0 / 0.5426 GB, free: 2.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1223, allocations: 0 / 0.5426 GB, free: 2.078 MB / 350.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.0008766/0.1231, allocations: 0.5302 MB / 0.5432 GB, free: 1.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1232, allocations: 8.031 kB / 0.5432 GB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.266e-05/0.1233, allocations: 62.67 kB / 0.5432 GB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.542e-05/0.1233, allocations: 24.8 kB / 0.5432 GB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.1237, allocations: 245.1 kB / 0.5435 GB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.1237, allocations: 16.94 kB / 0.5435 GB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.1237, allocations: 27.94 kB / 0.5435 GB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/0.1242, allocations: 243.7 kB / 0.5438 GB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1242, allocations: 4 kB / 0.5438 GB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.1243, allocations: 8 kB / 0.5438 GB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1243, allocations: 8 kB / 0.5438 GB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003596/0.1246, allocations: 154.2 kB / 0.5439 GB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.126, allocations: 0.859 MB / 0.5448 GB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.1263, allocations: 122.5 kB / 0.5449 GB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.1264, allocations: 48.83 kB / 0.5449 GB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.1265, allocations: 7.938 kB / 0.5449 GB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.1265, allocations: 34.56 kB / 0.545 GB, free: 15.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.402e-06/0.1265, allocations: 0 / 0.545 GB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001388/0.1279, allocations: 0.5235 MB / 0.5455 GB, free: 14.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.1279, allocations: 55.41 kB / 0.5455 GB, free: 14.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.1281, allocations: 182.6 kB / 0.5457 GB, free: 14.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.1282, allocations: 29.7 kB / 0.5457 GB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.1283, allocations: 160.2 kB / 0.5459 GB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.1283, allocations: 63.56 kB / 0.5459 GB, free: 14.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/0.1284, allocations: 33.72 kB / 0.546 GB, free: 14.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1285, allocations: 326.8 kB / 0.5463 GB, free: 14.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.1287, allocations: 43.98 kB / 0.5463 GB, free: 14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.1288, allocations: 93.92 kB / 0.5464 GB, free: 13.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/0.1291, allocations: 148.7 kB / 0.5466 GB, free: 13.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1291, allocations: 4 kB / 0.5466 GB, free: 13.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003934/0.1295, allocations: 189.3 kB / 0.5467 GB, free: 13.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.1295, allocations: 7.938 kB / 0.5468 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.1295, allocations: 4 kB / 0.5468 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1296, allocations: 0 / 0.5468 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.1298, allocations: 55.91 kB / 0.5468 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1298, allocations: 4.188 kB / 0.5468 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.1299, allocations: 15.88 kB / 0.5468 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.1299, allocations: 12 kB / 0.5468 GB, free: 13.43 MB / 366.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.0001263/0.13, allocations: 129.8 kB / 0.547 GB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/0.1301, allocations: 15.91 kB / 0.547 GB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.501e-05/0.1301, allocations: 25.52 kB / 0.547 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1301, allocations: 0 / 0.547 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1302, allocations: 0 / 0.547 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1302, allocations: 3.938 kB / 0.547 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.1305, allocations: 273.5 kB / 0.5473 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1305, allocations: 4 kB / 0.5473 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.1307, allocations: 35.92 kB / 0.5473 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1307, allocations: 0 / 0.5473 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.1307, allocations: 0 / 0.5473 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1307, allocations: 0 / 0.5473 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1307, allocations: 0 / 0.5473 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005226/0.1312, allocations: 299.3 kB / 0.5476 GB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.8e-05/0.1313, allocations: 101 kB / 0.5477 GB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.1313, allocations: 0 / 0.5477 GB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.1314, allocations: 15.92 kB / 0.5477 GB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.1315, allocations: 15.92 kB / 0.5477 GB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.1315, allocations: 0 / 0.5477 GB, free: 12.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001182/0.1316, allocations: 140.2 kB / 0.5479 GB, free: 12.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1316, allocations: 0 / 0.5479 GB, free: 12.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.1319, allocations: 44.06 kB / 0.5479 GB, free: 12.26 MB / 366.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.0007961/0.1327, allocations: 0.8208 MB / 0.5487 GB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003415/0.133, allocations: 123.5 kB / 0.5488 GB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.133, allocations: 0 / 0.5488 GB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.1332, allocations: 55.91 kB / 0.5489 GB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.1335, allocations: 19.94 kB / 0.5489 GB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002974/0.1365, allocations: 2.144 MB / 0.551 GB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.1369, allocations: 0.7319 MB / 0.5517 GB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.813e-05/0.1369, allocations: 17.55 kB / 0.5517 GB, free: 8.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.1371, allocations: 67.41 kB / 0.5518 GB, free: 8.109 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1371, allocations: 3.938 kB / 0.5518 GB, free: 8.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02954/0.1666, allocations: 3.395 MB / 0.5551 GB, free: 4.785 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.953/8.119, allocations: 0.875 kB / 0.5551 GB, free: 4.785 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Magnetic.Coupling_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Magnetic_Coupling.fmu > HanserModelica_HanserModelica.Magnetic.Coupling.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.101964436995331] Failed to read output from testmodel.py, exit status != 0: 8.190806081009214 8.205449343 8.080291908 Calling exit ...