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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0009524/0.0009525, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.3 MB / 239 MB, free: 5.438 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.001112/0.001112, allocations: 168.5 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03267/0.03267, allocations: 8.779 MB / 350.2 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003537, allocations: 9.594 kB / 413.3 MB, free: 42.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08779, allocations: 52.56 MB / 465.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.003974/0.09183, allocations: 3.287 MB / 469.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.09328, allocations: 0.8653 MB / 470 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.09349, allocations: 11.94 kB / 470 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.09367, allocations: 63.52 kB / 470.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003068/0.09398, allocations: 130.9 kB / 470.2 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.09425, allocations: 107.8 kB / 470.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005149/0.09477, allocations: 0.5839 MB / 470.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003206/0.0951, allocations: 208.2 kB / 471.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.09534, allocations: 203.2 kB / 471.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002842/0.09564, allocations: 234.9 kB / 471.5 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.0957, allocations: 28 kB / 471.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.004e-05/0.09578, allocations: 32 kB / 471.6 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-05/0.09586, allocations: 83.62 kB / 471.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.09597, allocations: 129.4 kB / 471.8 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004956/0.09647, allocations: 0.5453 MB / 472.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.09648, allocations: 0 / 472.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.09649, allocations: 0 / 472.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.09651, allocations: 4 kB / 472.3 MB, free: 6.844 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.001234/0.09775, allocations: 0.7485 MB / 473.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.0978, allocations: 8.031 kB / 473.1 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.09791, allocations: 90.52 kB / 473.2 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.711e-05/0.09802, allocations: 67.3 kB / 473.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.09846, allocations: 362.3 kB / 473.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.09851, allocations: 45.31 kB / 473.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.707e-05/0.09859, allocations: 48 kB / 473.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000908/0.0995, allocations: 0.5108 MB / 474.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.09953, allocations: 4 kB / 474.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.029e-05/0.0996, allocations: 28 kB / 474.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.09962, allocations: 15.95 kB / 474.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007597/0.1004, allocations: 391.8 kB / 474.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002604/0.103, allocations: 1.926 MB / 476.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006537/0.1037, allocations: 315.4 kB / 476.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.1042, allocations: 237.3 kB / 477.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.1042, allocations: 288 / 477.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.1042, allocations: 34.84 kB / 477.1 MB, free: 1.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.493e-06/0.1042, allocations: 4 kB / 477.1 MB, free: 1.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004487/0.1087, allocations: 1.79 MB / 478.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.1088, allocations: 63.83 kB / 479 MB, free: 15.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.1091, allocations: 295.2 kB / 479.3 MB, free: 15.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.1092, allocations: 33.7 kB / 479.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.1094, allocations: 272.1 kB / 479.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.1095, allocations: 157.7 kB / 479.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.511e-05/0.1095, allocations: 12 kB / 479.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1097, allocations: 346.8 kB / 480.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.1101, allocations: 157 kB / 480.2 MB, free: 14.58 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.1105, allocations: 250.4 kB / 480.5 MB, free: 14.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.1109, allocations: 180.8 kB / 480.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.1109, allocations: 4 kB / 480.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001089/0.112, allocations: 0.5598 MB / 481.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.112, allocations: 9.828 kB / 481.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.112, allocations: 4 kB / 481.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.1123, allocations: 97.73 kB / 481.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000432/0.1128, allocations: 107.8 kB / 481.4 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002891/0.1157, allocations: 3.232 MB / 484.6 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.1159, allocations: 27.89 kB / 484.7 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.116, allocations: 16 kB / 484.7 MB, free: 9.785 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.1162, allocations: 196.4 kB / 484.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.56e-05/0.1163, allocations: 31.62 kB / 484.9 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.1164, allocations: 51.98 kB / 485 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1164, allocations: 4 kB / 485 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.1165, allocations: 8 kB / 485 MB, free: 9.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.1165, allocations: 3.953 kB / 485 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.1182, allocations: 1.144 MB / 486.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1182, allocations: 0 / 486.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003619/0.1186, allocations: 83.88 kB / 486.2 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002336/0.1188, allocations: 89.67 kB / 486.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.1189, allocations: 19.94 kB / 486.3 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/0.1214, allocations: 3.227 MB / 489.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.1214, allocations: 7.969 kB / 489.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.1227, allocations: 0.7762 MB / 490.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.1229, allocations: 144.7 kB / 490.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.222e-05/0.1229, allocations: 15.98 kB / 490.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.1232, allocations: 28.05 kB / 490.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.1233, allocations: 39.91 kB / 490.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.1233, allocations: 11.98 kB / 490.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.1235, allocations: 206 kB / 490.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1235, allocations: 0 / 490.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006146/0.1241, allocations: 124 kB / 490.9 MB, free: 3.203 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001546/0.1257, allocations: 1.329 MB / 492.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.1268, allocations: 0.667 MB / 492.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1268, allocations: 3.938 kB / 492.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006961/0.1275, allocations: 0.4896 MB / 493.4 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.128, allocations: 56.53 kB / 493.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004355/0.1324, allocations: 2.691 MB / 496.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004317/0.1328, allocations: 0.8395 MB / 497 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003126/0.1331, allocations: 43.27 kB / 497 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003125/0.1335, allocations: 163.4 kB / 497.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1335, allocations: 0 / 497.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.1563, allocations: 7.992 MB / 0.4933 GB, free: 4.906 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.1565, allocations: 201.4 kB / 0.4935 GB, free: 4.664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/1.981, allocations: 0 / 0.4935 GB, free: 4.664 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/linux/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) Environment - environmentSimulation: