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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01096/0.01096, allocations: 168.3 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05435/0.05435, allocations: 8.804 MB / 24.67 MB, free: 4.102 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.535/2.535, allocations: 223.2 MB / 250.8 MB, free: 6.523 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 101.8 kB / 304.1 MB, free: 3.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006053/0.0006055, allocations: 8 kB / 367.2 MB, free: 4.836 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5363/0.537, allocations: 52.54 MB / 419.8 MB, free: 48.14 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.007756/0.5448, allocations: 3.281 MB / 423.1 MB, free: 45.77 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003701/0.5486, allocations: 0.8737 MB / 423.9 MB, free: 45.14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009806/0.5496, allocations: 8.719 kB / 423.9 MB, free: 45.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005371/0.5502, allocations: 62.16 kB / 424 MB, free: 45.11 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001324/0.5516, allocations: 134.6 kB / 424.1 MB, free: 45.02 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000982/0.5526, allocations: 105.6 kB / 424.2 MB, free: 44.96 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.5545, allocations: 0.5874 MB / 424.8 MB, free: 44.65 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008715/0.5554, allocations: 209.1 kB / 425 MB, free: 44.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008461/0.5562, allocations: 196.9 kB / 425.2 MB, free: 44.47 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008711/0.5571, allocations: 221.5 kB / 425.4 MB, free: 44.37 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002445/0.5574, allocations: 30.56 kB / 425.5 MB, free: 44.37 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003394/0.5577, allocations: 29.69 kB / 425.5 MB, free: 44.37 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.558, allocations: 91.48 kB / 425.6 MB, free: 44.32 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003942/0.5584, allocations: 126.5 kB / 425.7 MB, free: 44.23 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.5599, allocations: 0.5502 MB / 426.3 MB, free: 44.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/0.5599, allocations: 7.938 kB / 426.3 MB, free: 44.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.322e-06/0.5599, allocations: 1.344 kB / 426.3 MB, free: 44.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.04e-05/0.56, allocations: 3.938 kB / 426.3 MB, free: 44.09 MB / 330.7 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.002931/0.5629, allocations: 0.7536 MB / 427 MB, free: 43.55 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.404e-05/0.563, allocations: 10.97 kB / 427 MB, free: 43.55 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003714/0.5634, allocations: 91.48 kB / 427.1 MB, free: 43.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000311/0.5637, allocations: 65.25 kB / 427.2 MB, free: 43.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.5649, allocations: 353.4 kB / 427.5 MB, free: 43.14 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.565, allocations: 42.19 kB / 427.6 MB, free: 43.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/0.5652, allocations: 53.44 kB / 427.6 MB, free: 43.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002156/0.5674, allocations: 0.516 MB / 428.2 MB, free: 42.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.5674, allocations: 7.938 kB / 428.2 MB, free: 42.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.734e-05/0.5675, allocations: 21.5 kB / 428.2 MB, free: 42.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.5676, allocations: 16.33 kB / 428.2 MB, free: 42.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.5695, allocations: 399 kB / 428.6 MB, free: 42.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006267/0.5758, allocations: 1.91 MB / 430.5 MB, free: 41.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.5772, allocations: 318.2 kB / 430.8 MB, free: 41.29 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.5783, allocations: 238.3 kB / 431 MB, free: 41.21 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.163e-05/0.5784, allocations: 4.141 kB / 431 MB, free: 41.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.5785, allocations: 37.41 kB / 431.1 MB, free: 41.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 6.552e-06/0.5785, allocations: 4 kB / 431.1 MB, free: 41.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.009793/0.5883, allocations: 1.794 MB / 432.9 MB, free: 40.28 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.5884, allocations: 61.98 kB / 432.9 MB, free: 40.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008736/0.5893, allocations: 295.2 kB / 433.2 MB, free: 40.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.206e-05/0.5894, allocations: 31.2 kB / 433.3 MB, free: 40.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/0.5897, allocations: 267 kB / 433.5 MB, free: 39.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002523/0.59, allocations: 158.5 kB / 433.7 MB, free: 39.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/0.5901, allocations: 14.06 kB / 433.7 MB, free: 39.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.5903, allocations: 346.7 kB / 434 MB, free: 39.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007679/0.591, allocations: 162.2 kB / 434.2 MB, free: 39.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008536/0.5919, allocations: 243.1 kB / 434.4 MB, free: 39.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008946/0.5928, allocations: 186.9 kB / 434.6 MB, free: 39.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.5929, allocations: 1 kB / 434.6 MB, free: 39.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002487/0.5954, allocations: 0.5556 MB / 435.2 MB, free: 38.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.866e-05/0.5954, allocations: 11.19 kB / 435.2 MB, free: 38.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.5954, allocations: 2.344 kB / 435.2 MB, free: 38.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005956/0.5961, allocations: 96.53 kB / 435.3 MB, free: 38.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000966/0.597, allocations: 107.4 kB / 435.4 MB, free: 38.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004686/0.6018, allocations: 3.24 MB / 438.6 MB, free: 35.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007651/0.6025, allocations: 23.03 kB / 438.6 MB, free: 35.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.772e-05/0.6027, allocations: 17.31 kB / 438.7 MB, free: 35.64 MB / 330.7 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.0005822/0.6033, allocations: 188 kB / 438.8 MB, free: 35.47 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002026/0.6035, allocations: 38.38 kB / 438.9 MB, free: 35.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.6037, allocations: 50.84 kB / 438.9 MB, free: 35.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.6037, allocations: 5.75 kB / 438.9 MB, free: 35.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.021e-05/0.6037, allocations: 1.094 kB / 438.9 MB, free: 35.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.6038, allocations: 7.562 kB / 438.9 MB, free: 35.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003929/0.6077, allocations: 1.136 MB / 440.1 MB, free: 34.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.6078, allocations: 0 / 440.1 MB, free: 34.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007053/0.6085, allocations: 88.41 kB / 440.2 MB, free: 34.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005255/0.609, allocations: 94.03 kB / 440.2 MB, free: 34.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.6091, allocations: 11.45 kB / 440.3 MB, free: 34.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003977/0.6131, allocations: 3.234 MB / 443.5 MB, free: 31.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.6131, allocations: 0 / 443.5 MB, free: 31.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.616, allocations: 0.7845 MB / 444.3 MB, free: 30.88 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003777/0.6164, allocations: 149.4 kB / 444.4 MB, free: 30.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.6165, allocations: 16.36 kB / 444.4 MB, free: 30.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.6172, allocations: 27.95 kB / 444.5 MB, free: 30.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.6174, allocations: 35.28 kB / 444.5 MB, free: 30.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.301e-05/0.6175, allocations: 17.92 kB / 444.5 MB, free: 30.67 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005493/0.6181, allocations: 208.5 kB / 444.7 MB, free: 30.53 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6181, allocations: 3.938 kB / 444.7 MB, free: 30.53 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001505/0.6196, allocations: 123.8 kB / 444.8 MB, free: 30.51 MB / 330.7 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.002767/0.6224, allocations: 1.328 MB / 446.2 MB, free: 29.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.624, allocations: 0.6691 MB / 446.8 MB, free: 28.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.624, allocations: 0 / 446.8 MB, free: 28.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007603/0.6248, allocations: 497.3 kB / 447.3 MB, free: 28.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007591/0.6255, allocations: 54.78 kB / 447.4 MB, free: 28.37 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008693/0.6342, allocations: 2.695 MB / 450.1 MB, free: 25.59 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.6349, allocations: 0.8356 MB / 450.9 MB, free: 24.73 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000469/0.6354, allocations: 43.27 kB / 451 MB, free: 24.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/0.6358, allocations: 167.4 kB / 451.1 MB, free: 24.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.853e-06/0.6358, allocations: 0 / 451.1 MB, free: 24.52 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04068/0.6765, allocations: 7.99 MB / 459.1 MB, free: 16.73 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003118/0.677, allocations: 195.5 kB / 459.3 MB, free: 16.49 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.779/4.456, allocations: 0 / 459.3 MB, free: 16.49 MB / 330.7 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)