Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Magnetic.TestTransformer,fileNamePrefix="HanserModelica_HanserModelica_Magnetic_TestTransformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 239.3 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 184.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03463/0.03463, allocations: 8.804 MB / 348.5 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 80.05 kB / 411.2 MB, free: 42.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09997/0.1017, allocations: 51.57 MB / 462.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005259/0.107, allocations: 3.803 MB / 466.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.1089, allocations: 0.9308 MB / 467.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004129/0.1093, allocations: 12 kB / 467.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.1097, allocations: 87.09 kB / 467.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005386/0.1102, allocations: 154.6 kB / 467.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.1107, allocations: 167.8 kB / 467.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007601/0.1114, allocations: 0.6385 MB / 468.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004328/0.1119, allocations: 284.9 kB / 468.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003943/0.1123, allocations: 247.2 kB / 469.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004556/0.1128, allocations: 274.8 kB / 469.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001447/0.1129, allocations: 68 kB / 469.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.1131, allocations: 68 kB / 469.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.1132, allocations: 139.5 kB / 469.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003596/0.1136, allocations: 306.6 kB / 469.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007513/0.1143, allocations: 0.7245 MB / 470.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1143, allocations: 0 / 470.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1143, allocations: 0 / 470.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.513e-05/0.1144, allocations: 4 kB / 470.6 MB, free: 6.359 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001761/0.1161, allocations: 0.8266 MB / 471.4 MB, free: 5.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.1162, allocations: 8.031 kB / 471.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.1163, allocations: 94.7 kB / 471.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.1164, allocations: 56.28 kB / 471.6 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.1169, allocations: 363.5 kB / 472 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.466e-05/0.117, allocations: 45.61 kB / 472 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.266e-05/0.117, allocations: 48.38 kB / 472 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009003/0.118, allocations: 0.5265 MB / 472.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.118, allocations: 0 / 472.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.118, allocations: 20 kB / 472.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1181, allocations: 15.94 kB / 472.6 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008177/0.1189, allocations: 391.8 kB / 473 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00324/0.1221, allocations: 1.906 MB / 474.9 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007737/0.1229, allocations: 313.8 kB / 475.2 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005826/0.1236, allocations: 241.2 kB / 475.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.1236, allocations: 8.266 kB / 475.4 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1236, allocations: 30.84 kB / 475.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.435e-06/0.1236, allocations: 0 / 475.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.005044/0.1287, allocations: 1.724 MB / 477.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.1288, allocations: 55.84 kB / 477.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003653/0.1291, allocations: 303.2 kB / 477.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.1292, allocations: 33.7 kB / 477.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.1294, allocations: 264.3 kB / 477.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.1295, allocations: 169.4 kB / 478 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.1297, allocations: 90.16 kB / 478.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1298, allocations: 346.8 kB / 478.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003577/0.1302, allocations: 145.1 kB / 478.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004087/0.1306, allocations: 242.5 kB / 478.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007892/0.1314, allocations: 421.1 kB / 479.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1314, allocations: 0 / 479.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001123/0.1326, allocations: 0.552 MB / 479.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1326, allocations: 4 kB / 479.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.1326, allocations: 4 kB / 479.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002977/0.1329, allocations: 105.7 kB / 479.9 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.1334, allocations: 107.9 kB / 480 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003352/0.1367, allocations: 3.593 MB / 483.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000355/0.1371, allocations: 24.02 kB / 483.6 MB, free: 8.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.1372, allocations: 19.94 kB / 483.6 MB, free: 8.621 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003211/0.1375, allocations: 183.5 kB / 483.8 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.155e-05/0.1376, allocations: 39.69 kB / 483.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.1377, allocations: 47.73 kB / 483.9 MB, free: 8.348 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1377, allocations: 4 kB / 483.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.1377, allocations: 0 / 483.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1378, allocations: 0 / 483.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001982/0.1397, allocations: 1.136 MB / 485 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1398, allocations: 0 / 485 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.1401, allocations: 87.88 kB / 485.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002485/0.1404, allocations: 109.8 kB / 485.2 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.1405, allocations: 12 kB / 485.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002912/0.1434, allocations: 3.585 MB / 488.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1434, allocations: 3.938 kB / 488.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.1448, allocations: 0.7762 MB / 489.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.145, allocations: 144.6 kB / 489.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.783e-05/0.145, allocations: 11.94 kB / 489.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.1453, allocations: 27.97 kB / 489.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.406e-05/0.1454, allocations: 36.02 kB / 489.8 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.1455, allocations: 12 kB / 489.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.1457, allocations: 213.9 kB / 490 MB, free: 1.805 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1457, allocations: 0 / 490 MB, free: 1.805 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006051/0.1463, allocations: 120 kB / 490.2 MB, free: 1.688 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (transformer.converter1.i,transformer.eddyCurrent.Phi) * 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 (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001736/0.148, allocations: 1.317 MB / 491.5 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.1495, allocations: 0.6825 MB / 492.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1495, allocations: 3.938 kB / 492.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007979/0.1503, allocations: 493.1 kB / 492.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.1509, allocations: 56.91 kB / 492.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006/0.1569, allocations: 4.058 MB / 496.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.1573, allocations: 0.8472 MB / 497.6 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000207/0.1575, allocations: 39.27 kB / 497.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.1578, allocations: 167.4 kB / 497.8 MB, free: 9.777 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1578, allocations: 0 / 497.8 MB, free: 9.777 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03552/0.1933, allocations: 8.649 MB / 0.4946 GB, free: 1.254 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.329/9.522, allocations: 8.797 kB / 0.4946 GB, free: 1.246 MB / 334.1 MB (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Magnetic_TestTransformer_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Magnetic_TestTransformer.fmu > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)