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.008477/0.008477, allocations: 100.5 kB / 15.73 MB, free: 6.473 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.423/1.423, 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.001371/0.001371, allocations: 199.4 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03577/0.03577, allocations: 8.788 MB / 348.6 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 79.88 kB / 463.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09667, allocations: 51.55 MB / 0.5029 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005195/0.1019, allocations: 3.828 MB / 0.5066 GB, free: 6.195 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002546/0.1045, allocations: 0.9153 MB / 0.5075 GB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005586/0.1051, allocations: 8 kB / 0.5075 GB, free: 5.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003663/0.1055, allocations: 87.09 kB / 0.5076 GB, free: 5.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006657/0.1062, allocations: 158.6 kB / 0.5078 GB, free: 5.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000496/0.1067, allocations: 171.7 kB / 0.5079 GB, free: 4.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007965/0.1075, allocations: 0.6385 MB / 0.5085 GB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004105/0.1079, allocations: 280.9 kB / 0.5088 GB, free: 3.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003486/0.1083, allocations: 255.1 kB / 0.5091 GB, free: 3.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003834/0.1087, allocations: 270.8 kB / 0.5093 GB, free: 3.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.1088, allocations: 72 kB / 0.5094 GB, free: 3.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.1089, allocations: 68 kB / 0.5094 GB, free: 3.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.109, allocations: 147.5 kB / 0.5096 GB, free: 3.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002913/0.1093, allocations: 298.7 kB / 0.5099 GB, free: 2.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006774/0.11, allocations: 0.7245 MB / 0.5106 GB, free: 2.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.11, allocations: 0 / 0.5106 GB, free: 2.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.11, allocations: 0 / 0.5106 GB, free: 2.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.753e-05/0.1101, allocations: 4 kB / 0.5106 GB, free: 2.113 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.001786/0.1118, allocations: 0.8344 MB / 0.5114 GB, free: 1.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1119, allocations: 8.031 kB / 0.5114 GB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.112, allocations: 90.7 kB / 0.5115 GB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.1121, allocations: 64.28 kB / 0.5116 GB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005926/0.1127, allocations: 371.5 kB / 0.5119 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.248e-05/0.1128, allocations: 45.62 kB / 0.512 GB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.879e-05/0.1129, allocations: 52.31 kB / 0.512 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009189/0.1138, allocations: 0.5187 MB / 0.5125 GB, free: 24 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.1138, allocations: 4 kB / 0.5125 GB, free: 20 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.459e-05/0.1139, allocations: 20 kB / 0.5125 GB, free: 0 / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.767e-05/0.1139, allocations: 12.05 kB / 0.5125 GB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008115/0.1147, allocations: 391.7 kB / 0.5129 GB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002745/0.1175, allocations: 1.879 MB / 0.5148 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007404/0.1182, allocations: 324.6 kB / 0.5151 GB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005329/0.1188, allocations: 225.3 kB / 0.5153 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.1188, allocations: 4.281 kB / 0.5153 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.1189, allocations: 42.84 kB / 0.5153 GB, free: 13.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.853e-06/0.1189, allocations: 0 / 0.5153 GB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004666/0.1235, allocations: 1.726 MB / 0.517 GB, free: 11.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.1236, allocations: 59.84 kB / 0.5171 GB, free: 11.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.1239, allocations: 295.3 kB / 0.5173 GB, free: 10.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.124, allocations: 37.7 kB / 0.5174 GB, free: 10.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.1241, allocations: 260.2 kB / 0.5176 GB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.1243, allocations: 161.6 kB / 0.5178 GB, free: 10.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.1244, allocations: 90.25 kB / 0.5179 GB, free: 10.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1245, allocations: 342.8 kB / 0.5182 GB, free: 9.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004682/0.125, allocations: 165 kB / 0.5184 GB, free: 9.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004114/0.1254, allocations: 234.6 kB / 0.5186 GB, free: 9.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007381/0.1262, allocations: 409.1 kB / 0.519 GB, free: 9.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1262, allocations: 4 kB / 0.519 GB, free: 9.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001176/0.1274, allocations: 0.5557 MB / 0.5195 GB, free: 8.516 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.1274, allocations: 11.94 kB / 0.5195 GB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1275, allocations: 4 kB / 0.5195 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.1278, allocations: 101.7 kB / 0.5196 GB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004517/0.1282, allocations: 99.88 kB / 0.5197 GB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003103/0.1314, allocations: 3.594 MB / 0.5232 GB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003383/0.1317, allocations: 19.98 kB / 0.5233 GB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.1318, allocations: 20 kB / 0.5233 GB, free: 4.387 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.0002383/0.132, allocations: 193.6 kB / 0.5235 GB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.501e-05/0.1321, allocations: 39.53 kB / 0.5235 GB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.07e-05/0.1322, allocations: 47.73 kB / 0.5235 GB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1322, allocations: 4.188 kB / 0.5235 GB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.1322, allocations: 8 kB / 0.5236 GB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1322, allocations: 3.984 kB / 0.5236 GB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/0.1341, allocations: 1.129 MB / 0.5247 GB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1341, allocations: 7.875 kB / 0.5247 GB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/0.1345, allocations: 79.97 kB / 0.5247 GB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002793/0.1348, allocations: 105.5 kB / 0.5248 GB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.1349, allocations: 12 kB / 0.5249 GB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.179/0.3139, allocations: 3.579 MB / 0.5283 GB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3139, allocations: 0.5 kB / 0.5283 GB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.3151, allocations: 0.7766 MB / 0.5291 GB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.3152, allocations: 148.3 kB / 0.5292 GB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.677e-05/0.3153, allocations: 11.28 kB / 0.5293 GB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.3156, allocations: 19.06 kB / 0.5293 GB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.138e-05/0.3156, allocations: 42.44 kB / 0.5293 GB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.3157, allocations: 16.69 kB / 0.5293 GB, free: 22.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001564/0.3158, allocations: 204.8 kB / 0.5295 GB, free: 22.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3158, allocations: 0.5625 kB / 0.5295 GB, free: 22.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005614/0.3164, allocations: 122.4 kB / 0.5296 GB, free: 22.51 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.001257/0.3177, allocations: 1.325 MB / 0.5309 GB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009321/0.3186, allocations: 0.6665 MB / 0.5316 GB, free: 21.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3186, allocations: 0 / 0.5316 GB, free: 21.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005615/0.3192, allocations: 489.2 kB / 0.5321 GB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.3196, allocations: 48.47 kB / 0.5321 GB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004431/0.324, allocations: 4.024 MB / 0.536 GB, free: 19.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.3242, allocations: 0.8413 MB / 0.5369 GB, free: 18.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.3244, allocations: 42.67 kB / 0.5369 GB, free: 18.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.3246, allocations: 167.7 kB / 0.5371 GB, free: 18.95 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3246, allocations: 0 / 0.5371 GB, free: 18.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.409/0.7336, allocations: 8.69 MB / 0.5455 GB, free: 17.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.57, allocations: 9.625 kB / 0.5455 GB, free: 17.75 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)