Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TransformerYD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TransformerYD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001451/0.001451, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001559/0.001559, allocations: 105.2 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.464e-05/3.461e-05, allocations: 4 kB / 314.9 MB, free: 9.078 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4586/0.4587, allocations: 47.57 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.197/0.6558, allocations: 80.28 MB / 442.7 MB, free: 5.945 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003492/0.6562, allocations: 79.75 kB / 442.8 MB, free: 5.871 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08761/0.7438, allocations: 18.8 MB / 461.6 MB, free: 3.035 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.7439, allocations: 3.938 kB / 461.6 MB, free: 3.031 MB / 347.1 MB Notification: Performance of Transformations before backend: time 0.0001222/0.744, allocations: 35.98 kB / 461.6 MB, free: 2.996 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.004479/0.7485, allocations: 1.343 MB / 463 MB, free: 1.605 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.7486, allocations: 16.03 kB / 463 MB, free: 1.59 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006216/0.7492, allocations: 142.3 kB / 463.1 MB, free: 1.449 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002895/0.7521, allocations: 0.9024 MB / 464 MB, free: 0.5 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.243e-05/0.7522, allocations: 39.95 kB / 464.1 MB, free: 472 kB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002506/0.7525, allocations: 68 kB / 464.1 MB, free: 404 kB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00318/0.7557, allocations: 1.109 MB / 465.2 MB, free: 15.28 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003381/0.7591, allocations: 1.326 MB / 466.6 MB, free: 13.89 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/0.7592, allocations: 7.938 kB / 466.6 MB, free: 13.88 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/0.7593, allocations: 0 / 466.6 MB, free: 13.88 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-05/0.7594, allocations: 28 kB / 466.6 MB, free: 13.85 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01123/0.7706, allocations: 4.1 MB / 470.7 MB, free: 9.637 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001633/0.7723, allocations: 1.265 MB / 472 MB, free: 8.199 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009604/0.7733, allocations: 426 kB / 472.4 MB, free: 7.781 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.7734, allocations: 8.438 kB / 472.4 MB, free: 7.77 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.7734, allocations: 42.98 kB / 472.4 MB, free: 7.719 MB / 363.1 MB Notification: Performance of pre-optimization done (n=51): time 3.577e-06/0.7734, allocations: 0 / 472.4 MB, free: 7.719 MB / 363.1 MB Notification: Performance of matching and sorting (n=51): time 0.001524/0.775, allocations: 0.5615 MB / 473 MB, free: 7.148 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.775, allocations: 59.84 kB / 473 MB, free: 7.078 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/0.7765, allocations: 0.6634 MB / 473.7 MB, free: 6.41 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 8.913e-05/0.7766, allocations: 25.7 kB / 473.7 MB, free: 6.379 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004939/0.7771, allocations: 0.5712 MB / 474.3 MB, free: 5.801 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.7773, allocations: 173.3 kB / 474.5 MB, free: 5.629 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.743e-05/0.7774, allocations: 0 / 474.5 MB, free: 5.629 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.7776, allocations: 334.8 kB / 474.8 MB, free: 5.293 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006408/0.7782, allocations: 269 kB / 475.1 MB, free: 5.027 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007339/0.779, allocations: 361.5 kB / 475.4 MB, free: 4.645 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007565/0.7797, allocations: 329.9 kB / 475.7 MB, free: 4.32 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.7798, allocations: 0 / 475.7 MB, free: 4.32 MB / 363.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001623/0.7814, allocations: 0.682 MB / 476.4 MB, free: 3.637 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.7814, allocations: 11.98 kB / 476.4 MB, free: 3.625 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.7815, allocations: 3.938 kB / 476.4 MB, free: 3.621 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.63e-05/0.7815, allocations: 8 kB / 476.4 MB, free: 3.613 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.7827, allocations: 148.1 kB / 476.6 MB, free: 3.469 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.7828, allocations: 11.92 kB / 476.6 MB, free: 3.457 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007393/0.7835, allocations: 47.52 kB / 476.6 MB, free: 3.41 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.128e-05/0.7836, allocations: 19.98 kB / 476.7 MB, free: 3.391 MB / 363.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000182/0.7838, allocations: 116.8 kB / 476.8 MB, free: 3.27 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001358/0.7852, allocations: 0.5616 MB / 477.3 MB, free: 2.703 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001707/0.7854, allocations: 71.16 kB / 477.4 MB, free: 2.633 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002822/0.7857, allocations: 86.61 kB / 477.5 MB, free: 2.543 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.7857, allocations: 8 kB / 477.5 MB, free: 2.535 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.7857, allocations: 0 / 477.5 MB, free: 2.535 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.7857, allocations: 3.984 kB / 477.5 MB, free: 2.531 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004396/0.7901, allocations: 1.685 MB / 479.2 MB, free: 0.7891 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.7902, allocations: 7.953 kB / 479.2 MB, free: 0.7812 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.7913, allocations: 124 kB / 479.3 MB, free: 0.6602 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-05/0.7913, allocations: 3.984 kB / 479.3 MB, free: 0.6562 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.586e-05/0.7913, allocations: 4 kB / 479.3 MB, free: 0.6523 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.7914, allocations: 4 kB / 479.3 MB, free: 0.6484 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.7914, allocations: 0 / 479.3 MB, free: 0.6484 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002197/0.7936, allocations: 1.045 MB / 480.4 MB, free: 15.56 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003525/0.794, allocations: 160.2 kB / 480.5 MB, free: 15.38 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.7941, allocations: 4 kB / 480.5 MB, free: 15.38 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007884/0.7949, allocations: 47.94 kB / 480.6 MB, free: 15.33 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.7951, allocations: 40.34 kB / 480.6 MB, free: 15.29 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/0.7951, allocations: 12 kB / 480.6 MB, free: 15.28 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.001086/0.7962, allocations: 0.5225 MB / 481.2 MB, free: 14.77 MB / 379.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7962, allocations: 3.938 kB / 481.2 MB, free: 14.76 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001099/0.7974, allocations: 270.7 kB / 481.4 MB, free: 14.5 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (transformerL.inductor[1].i,transformerL.inductor[2].i,transformerL.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002705/0.8001, allocations: 1.8 MB / 483.2 MB, free: 12.64 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.8016, allocations: 0.5815 MB / 483.8 MB, free: 12.05 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.8016, allocations: 0 / 483.8 MB, free: 12.05 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006512/0.8023, allocations: 289.4 kB / 484.1 MB, free: 11.77 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.8037, allocations: 143.2 kB / 484.2 MB, free: 11.64 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006136/0.8099, allocations: 2.137 MB / 486.4 MB, free: 9.441 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/0.8114, allocations: 1.344 MB / 487.7 MB, free: 8.066 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009481/0.8123, allocations: 383.3 kB / 488.1 MB, free: 7.691 MB / 379.1 MB Notification: Performance of SimCode: time 1.583e-06/0.8123, allocations: 0 / 488.1 MB, free: 7.691 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.617/3.43, allocations: 18.87 MB / 0.4951 GB, free: 4.832 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYD_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_TransformerYD.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TransformerYD_res.mat does not exist to compare? outputFormat=mat