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.008956/0.008956, allocations: 99.08 kB / 15.73 MB, free: 6.047 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.401/1.401, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001518/0.001518, allocations: 196.4 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03716/0.03716, allocations: 8.796 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 83.81 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1116, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005091/0.1168, allocations: 3.824 MB / 0.5066 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.1186, allocations: 0.9075 MB / 0.5075 GB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004316/0.1191, allocations: 11.94 kB / 0.5075 GB, free: 5.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.1194, allocations: 87.16 kB / 0.5076 GB, free: 5.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006321/0.12, allocations: 154.6 kB / 0.5078 GB, free: 5.008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.1206, allocations: 175.7 kB / 0.5079 GB, free: 4.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009179/0.1215, allocations: 0.6423 MB / 0.5085 GB, free: 4.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004464/0.122, allocations: 284.9 kB / 0.5088 GB, free: 3.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003936/0.1224, allocations: 247.1 kB / 0.5091 GB, free: 3.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004899/0.1229, allocations: 282.8 kB / 0.5093 GB, free: 3.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.123, allocations: 68 kB / 0.5094 GB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.1232, allocations: 68 kB / 0.5095 GB, free: 3.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.1233, allocations: 139.5 kB / 0.5096 GB, free: 3.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003531/0.1237, allocations: 298.7 kB / 0.5099 GB, free: 2.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007178/0.1244, allocations: 0.7323 MB / 0.5106 GB, free: 2.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1244, allocations: 0 / 0.5106 GB, free: 2.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1245, allocations: 0 / 0.5106 GB, free: 2.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.1245, allocations: 0 / 0.5106 GB, free: 2.09 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001595/0.1261, allocations: 0.8344 MB / 0.5114 GB, free: 1.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1261, allocations: 8.031 kB / 0.5114 GB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001335/0.1263, allocations: 94.64 kB / 0.5115 GB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.1264, allocations: 60.28 kB / 0.5116 GB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000577/0.127, allocations: 375.5 kB / 0.5119 GB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/0.127, allocations: 37.69 kB / 0.512 GB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.457e-05/0.1271, allocations: 52.38 kB / 0.512 GB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008883/0.128, allocations: 0.5187 MB / 0.5125 GB, free: 4 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.128, allocations: 0 / 0.5125 GB, free: 4 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.077e-05/0.1281, allocations: 28.05 kB / 0.5125 GB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1281, allocations: 12 kB / 0.5125 GB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007425/0.1289, allocations: 383.7 kB / 0.5129 GB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002954/0.1318, allocations: 1.883 MB / 0.5148 GB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006926/0.1325, allocations: 311.4 kB / 0.515 GB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007176/0.1333, allocations: 231.8 kB / 0.5153 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.1333, allocations: 4.281 kB / 0.5153 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/0.1334, allocations: 46.84 kB / 0.5153 GB, free: 13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 3.947e-06/0.1334, allocations: 3.984 kB / 0.5153 GB, free: 12.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.0048/0.1382, allocations: 1.731 MB / 0.517 GB, free: 11.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.1383, allocations: 59.78 kB / 0.5171 GB, free: 11.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.1386, allocations: 295.3 kB / 0.5174 GB, free: 10.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.076e-05/0.1387, allocations: 37.7 kB / 0.5174 GB, free: 10.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.1389, allocations: 268.2 kB / 0.5176 GB, free: 10.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.1391, allocations: 157.7 kB / 0.5178 GB, free: 10.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.1392, allocations: 90.25 kB / 0.5179 GB, free: 10.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.1394, allocations: 338.8 kB / 0.5182 GB, free: 9.918 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.1398, allocations: 157 kB / 0.5184 GB, free: 9.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005365/0.1403, allocations: 238.6 kB / 0.5186 GB, free: 9.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007533/0.1411, allocations: 413.1 kB / 0.519 GB, free: 9.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1411, allocations: 0 / 0.519 GB, free: 9.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001209/0.1423, allocations: 0.5597 MB / 0.5195 GB, free: 8.488 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.1423, allocations: 8 kB / 0.5195 GB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1424, allocations: 0 / 0.5195 GB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004153/0.1428, allocations: 97.61 kB / 0.5196 GB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.1433, allocations: 111.9 kB / 0.5197 GB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003772/0.147, allocations: 3.586 MB / 0.5232 GB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.1474, allocations: 19.98 kB / 0.5232 GB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/0.1474, allocations: 19.94 kB / 0.5233 GB, free: 4.367 MB / 366.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.0002581/0.1477, allocations: 201.6 kB / 0.5235 GB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.1478, allocations: 35.53 kB / 0.5235 GB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.1479, allocations: 51.78 kB / 0.5235 GB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.1479, allocations: 7.984 kB / 0.5235 GB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.148, allocations: 4 kB / 0.5236 GB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.148, allocations: 0 / 0.5236 GB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.1499, allocations: 1.129 MB / 0.5247 GB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1499, allocations: 0 / 0.5247 GB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004174/0.1503, allocations: 79.88 kB / 0.5247 GB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003039/0.1506, allocations: 113.7 kB / 0.5248 GB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.1507, allocations: 8 kB / 0.5248 GB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2585/0.4092, allocations: 3.584 MB / 0.5283 GB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4092, allocations: 0 / 0.5283 GB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.4105, allocations: 0.7706 MB / 0.5291 GB, free: 22.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.4107, allocations: 143.5 kB / 0.5292 GB, free: 22.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.4107, allocations: 12.83 kB / 0.5292 GB, free: 22.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002851/0.411, allocations: 29.22 kB / 0.5293 GB, free: 22.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.845e-05/0.4111, allocations: 41.64 kB / 0.5293 GB, free: 22.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.4112, allocations: 12.44 kB / 0.5293 GB, free: 22.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.4114, allocations: 203.9 kB / 0.5295 GB, free: 22.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4114, allocations: 0 / 0.5295 GB, free: 22.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006429/0.4121, allocations: 123.3 kB / 0.5296 GB, free: 22.55 MB / 366.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.001415/0.4135, allocations: 1.321 MB / 0.5309 GB, free: 21.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.4146, allocations: 0.6673 MB / 0.5316 GB, free: 21.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.4146, allocations: 1.094 kB / 0.5316 GB, free: 21.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006218/0.4152, allocations: 488.6 kB / 0.532 GB, free: 21.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.4156, allocations: 57.23 kB / 0.5321 GB, free: 21.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005655/0.4213, allocations: 4.018 MB / 0.536 GB, free: 19.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.4217, allocations: 0.8458 MB / 0.5369 GB, free: 19.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002021/0.4219, allocations: 39.47 kB / 0.5369 GB, free: 19.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.4221, allocations: 165.9 kB / 0.5371 GB, free: 19 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4221, allocations: 5.438 kB / 0.5371 GB, free: 19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04301/0.4652, allocations: 8.999 MB / 0.5458 GB, free: 17.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.847/10.31, allocations: 7.812 kB / 0.5459 GB, free: 17.56 MB / 366.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)