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.001365/0.001365, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0472/0.0472, allocations: 8.719 MB / 16.79 MB, free: 3.383 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 221.5 MB / 240.9 MB, free: 13.13 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.0009277/0.0009277, allocations: 95.53 kB / 293.9 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.111e-05/2.115e-05, allocations: 4 kB / 352.7 MB, free: 1.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.119, allocations: 52.56 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4449/0.5639, allocations: 82.66 MB / 487.9 MB, free: 4.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/0.5642, allocations: 67.77 kB / 488 MB, free: 4.633 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02479/0.589, allocations: 10.31 MB / 498.3 MB, free: 11.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.5891, allocations: 0 / 498.3 MB, free: 11.03 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2e-05/0.5891, allocations: 8 kB / 498.3 MB, free: 11.02 MB / 362.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.001052/0.5901, allocations: 0.705 MB / 499 MB, free: 10.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.5902, allocations: 11.98 kB / 499 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.426e-05/0.5903, allocations: 63.25 kB / 499.1 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000446/0.5907, allocations: 346.6 kB / 499.4 MB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.5908, allocations: 20 kB / 499.5 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.716e-05/0.5908, allocations: 28 kB / 499.5 MB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005267/0.5914, allocations: 318.5 kB / 499.8 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00067/0.5921, allocations: 425.1 kB / 0.4885 GB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.5921, allocations: 7.938 kB / 0.4885 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.5921, allocations: 0 / 0.4885 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.5921, allocations: 12 kB / 0.4885 GB, free: 9.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00254/0.5947, allocations: 1.863 MB / 0.4903 GB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.5951, allocations: 271.2 kB / 0.4906 GB, free: 6.785 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.5955, allocations: 193.4 kB / 0.4908 GB, free: 6.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.5955, allocations: 14.38 kB / 0.4908 GB, free: 6.582 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.5956, allocations: 30.84 kB / 0.4908 GB, free: 6.543 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 1.403e-06/0.5956, allocations: 0 / 0.4908 GB, free: 6.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.002379/0.598, allocations: 1.217 MB / 0.492 GB, free: 5.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.598, allocations: 59.84 kB / 0.4921 GB, free: 5.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.5983, allocations: 234.3 kB / 0.4923 GB, free: 4.961 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.5983, allocations: 25.7 kB / 0.4923 GB, free: 4.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.5985, allocations: 260.2 kB / 0.4926 GB, free: 4.672 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.5986, allocations: 161.6 kB / 0.4927 GB, free: 4.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.003e-05/0.5986, allocations: 4 kB / 0.4927 GB, free: 4.508 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.5988, allocations: 346.8 kB / 0.493 GB, free: 4.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.599, allocations: 121.1 kB / 0.4932 GB, free: 4.043 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.5993, allocations: 199.7 kB / 0.4934 GB, free: 3.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.5995, allocations: 152.8 kB / 0.4935 GB, free: 3.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5995, allocations: 0 / 0.4935 GB, free: 3.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008014/0.6004, allocations: 494.8 kB / 0.494 GB, free: 3.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.6004, allocations: 4 kB / 0.494 GB, free: 3.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.6004, allocations: 4 kB / 0.494 GB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002886/0.6007, allocations: 93.62 kB / 0.4941 GB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004727/0.6012, allocations: 107.9 kB / 0.4942 GB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.6039, allocations: 3.165 MB / 0.4973 GB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.6041, allocations: 13.61 kB / 0.4973 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.6042, allocations: 16 kB / 0.4973 GB, free: 15.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 48 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.6043, allocations: 117.4 kB / 0.4974 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006785/0.605, allocations: 425.2 kB / 0.4978 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.28e-05/0.6051, allocations: 35.62 kB / 0.4978 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.729e-05/0.6052, allocations: 43.42 kB / 0.4979 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.6052, allocations: 7.938 kB / 0.4979 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.6052, allocations: 1.5 kB / 0.4979 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.6052, allocations: 3.984 kB / 0.4979 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.6067, allocations: 1.044 MB / 0.4989 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.6067, allocations: 0 / 0.4989 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.6071, allocations: 87.88 kB / 0.499 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002306/0.6074, allocations: 97.73 kB / 0.4991 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.6074, allocations: 3.984 kB / 0.4991 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002729/0.6101, allocations: 3.158 MB / 0.5022 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.6102, allocations: 0.7031 kB / 0.5022 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009932/0.6112, allocations: 0.7324 MB / 0.5029 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.6113, allocations: 148.6 kB / 0.503 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.505e-05/0.6114, allocations: 4 kB / 0.503 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.6117, allocations: 24.05 kB / 0.5031 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.466e-05/0.6118, allocations: 40.33 kB / 0.5031 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.6118, allocations: 13.69 kB / 0.5031 GB, free: 9.215 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001751/0.612, allocations: 186.8 kB / 0.5033 GB, free: 9.035 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.612, allocations: 0 / 0.5033 GB, free: 9.035 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000587/0.6126, allocations: 100 kB / 0.5034 GB, free: 8.938 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformer.converter1.i,transformer.converter1.Phi) * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001389/0.614, allocations: 1.411 MB / 0.5048 GB, free: 7.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009381/0.6149, allocations: 0.6003 MB / 0.5054 GB, free: 6.867 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6149, allocations: 0 / 0.5054 GB, free: 6.867 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005857/0.6155, allocations: 453.6 kB / 0.5058 GB, free: 6.406 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.6158, allocations: 32.44 kB / 0.5058 GB, free: 6.371 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.6175, allocations: 0.7858 MB / 0.5066 GB, free: 5.539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.6179, allocations: 0.8548 MB / 0.5074 GB, free: 4.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.6181, allocations: 39.27 kB / 0.5075 GB, free: 4.621 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003048/0.6185, allocations: 159.4 kB / 0.5076 GB, free: 4.465 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6185, allocations: 4 kB / 0.5076 GB, free: 4.461 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02744/0.6459, allocations: 7.325 MB / 0.5148 GB, free: 13.25 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.6462, allocations: 126.9 kB / 0.5149 GB, free: 13.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.756, allocations: 3.594 kB / 0.5149 GB, free: 13.06 MB / 394.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)