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.005997/0.005997, allocations: 95.58 kB / 15.73 MB, free: 6.039 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.364/1.364, allocations: 222.9 MB / 239.4 MB, free: 4.574 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.001396/0.001396, allocations: 188.5 kB / 289.7 MB, free: 2.289 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03599/0.03599, allocations: 8.809 MB / 348.7 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002253, allocations: 83.88 kB / 463.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.0972, allocations: 51.57 MB / 0.5029 GB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005127/0.1024, allocations: 3.819 MB / 0.5066 GB, free: 6.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1039, allocations: 0.9114 MB / 0.5075 GB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1041, allocations: 12 kB / 0.5075 GB, free: 5.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.1043, allocations: 87.09 kB / 0.5076 GB, free: 5.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003531/0.1046, allocations: 154.6 kB / 0.5078 GB, free: 5.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.105, allocations: 171.7 kB / 0.5079 GB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006314/0.1056, allocations: 0.6502 MB / 0.5086 GB, free: 4.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004/0.106, allocations: 280.9 kB / 0.5088 GB, free: 3.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002873/0.1063, allocations: 247.2 kB / 0.5091 GB, free: 3.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003322/0.1067, allocations: 282.8 kB / 0.5093 GB, free: 3.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.797e-05/0.1068, allocations: 71.94 kB / 0.5094 GB, free: 3.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.1069, allocations: 68 kB / 0.5095 GB, free: 3.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.107, allocations: 131.5 kB / 0.5096 GB, free: 3.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002808/0.1073, allocations: 306.6 kB / 0.5099 GB, free: 2.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007453/0.108, allocations: 0.7356 MB / 0.5106 GB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.108, allocations: 0 / 0.5106 GB, free: 2.125 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.108, allocations: 0 / 0.5106 GB, free: 2.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.1081, allocations: 4 kB / 0.5106 GB, free: 2.121 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.001388/0.1095, allocations: 0.8377 MB / 0.5114 GB, free: 1.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1095, allocations: 8.031 kB / 0.5114 GB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.943e-05/0.1096, allocations: 98.64 kB / 0.5115 GB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.373e-05/0.1097, allocations: 60.56 kB / 0.5116 GB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.1102, allocations: 375.8 kB / 0.5119 GB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.222e-05/0.1103, allocations: 37.69 kB / 0.512 GB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.505e-05/0.1103, allocations: 52.38 kB / 0.512 GB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009169/0.1113, allocations: 0.5187 MB / 0.5125 GB, free: 28 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1113, allocations: 0 / 0.5125 GB, free: 28 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.529e-05/0.1113, allocations: 20 kB / 0.5126 GB, free: 8 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.1114, allocations: 12.05 kB / 0.5126 GB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008702/0.1122, allocations: 391.7 kB / 0.5129 GB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.1151, allocations: 1.891 MB / 0.5148 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.1158, allocations: 319.4 kB / 0.5151 GB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005371/0.1163, allocations: 227.9 kB / 0.5153 GB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.1164, allocations: 4.281 kB / 0.5153 GB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1164, allocations: 34.84 kB / 0.5153 GB, free: 13.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.623e-06/0.1164, allocations: 0 / 0.5153 GB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004726/0.1211, allocations: 1.734 MB / 0.517 GB, free: 11.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.1212, allocations: 55.84 kB / 0.5171 GB, free: 11.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/0.1215, allocations: 303.2 kB / 0.5174 GB, free: 10.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.1216, allocations: 33.7 kB / 0.5174 GB, free: 10.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.1218, allocations: 280.8 kB / 0.5177 GB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.1219, allocations: 170.5 kB / 0.5178 GB, free: 10.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.1221, allocations: 90.25 kB / 0.5179 GB, free: 10.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1222, allocations: 346.8 kB / 0.5183 GB, free: 9.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.1226, allocations: 153 kB / 0.5184 GB, free: 9.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/0.123, allocations: 238.6 kB / 0.5186 GB, free: 9.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007898/0.1238, allocations: 413.1 kB / 0.519 GB, free: 9.059 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1238, allocations: 0 / 0.519 GB, free: 9.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001184/0.125, allocations: 0.5597 MB / 0.5196 GB, free: 8.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1251, allocations: 4 kB / 0.5196 GB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.1251, allocations: 8.281 kB / 0.5196 GB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.1254, allocations: 101.6 kB / 0.5197 GB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.1258, allocations: 107.9 kB / 0.5198 GB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00326/0.1291, allocations: 3.594 MB / 0.5233 GB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.1294, allocations: 20.02 kB / 0.5233 GB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.464e-05/0.1294, allocations: 19.94 kB / 0.5233 GB, free: 4.352 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.0002514/0.1297, allocations: 185.7 kB / 0.5235 GB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.221e-05/0.1298, allocations: 39.77 kB / 0.5235 GB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.434e-05/0.1299, allocations: 47.73 kB / 0.5236 GB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1299, allocations: 4 kB / 0.5236 GB, free: 4.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.1299, allocations: 4.062 kB / 0.5236 GB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.1299, allocations: 0 / 0.5236 GB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.1317, allocations: 1.14 MB / 0.5247 GB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1317, allocations: 0 / 0.5247 GB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003753/0.1321, allocations: 83.94 kB / 0.5248 GB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002443/0.1324, allocations: 97.5 kB / 0.5249 GB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.1324, allocations: 15.98 kB / 0.5249 GB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1662/0.2986, allocations: 3.595 MB / 0.5284 GB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2987, allocations: 0 / 0.5284 GB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.3, allocations: 0.7706 MB / 0.5292 GB, free: 22.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.3001, allocations: 148.1 kB / 0.5293 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.3002, allocations: 9.531 kB / 0.5293 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002922/0.3005, allocations: 28.78 kB / 0.5293 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3006, allocations: 39.81 kB / 0.5294 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.3006, allocations: 12.89 kB / 0.5294 GB, free: 22.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001758/0.3008, allocations: 205.6 kB / 0.5296 GB, free: 22.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3008, allocations: 0 / 0.5296 GB, free: 22.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006135/0.3014, allocations: 123.2 kB / 0.5297 GB, free: 22.57 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.001389/0.3028, allocations: 1.322 MB / 0.531 GB, free: 21.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.3039, allocations: 0.6621 MB / 0.5316 GB, free: 21.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.3039, allocations: 1.531 kB / 0.5316 GB, free: 21.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006145/0.3045, allocations: 494.9 kB / 0.5321 GB, free: 21.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.3049, allocations: 52.48 kB / 0.5322 GB, free: 21.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004914/0.3098, allocations: 4.037 MB / 0.5361 GB, free: 19.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.3101, allocations: 0.8438 MB / 0.5369 GB, free: 19.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001754/0.3103, allocations: 41.05 kB / 0.537 GB, free: 19.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.3105, allocations: 169.8 kB / 0.5371 GB, free: 19.01 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3105, allocations: 2.188 kB / 0.5371 GB, free: 19.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03891/0.3494, allocations: 8.88 MB / 0.5458 GB, free: 17.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.959/10.31, allocations: 7.562 kB / 0.5458 GB, free: 17.64 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)