Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",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.001514/0.001514, allocations: 184.6 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.934/1.934, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00116/0.001159, allocations: 94.91 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004085/0.0004085, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3307, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4591, allocations: 78.94 MB / 453.6 MB, free: 1.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/0.4595, allocations: 79.94 kB / 453.7 MB, free: 1.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03669/0.4962, allocations: 8.055 MB / 461.7 MB, free: 9.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4963, allocations: 224 / 461.7 MB, free: 9.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.044e-05/0.4963, allocations: 12 kB / 461.7 MB, free: 9.637 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002138/0.4985, allocations: 0.7908 MB / 462.5 MB, free: 8.797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.4986, allocations: 12.03 kB / 462.5 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002849/0.4989, allocations: 107.7 kB / 462.6 MB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.4991, allocations: 67.25 kB / 462.7 MB, free: 8.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008412/0.4999, allocations: 358.6 kB / 463 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.383e-05/0.5, allocations: 37.31 kB / 463.1 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.5001, allocations: 55.91 kB / 463.1 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001447/0.5016, allocations: 495.5 kB / 463.6 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.639e-05/0.5017, allocations: 4 kB / 463.6 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.986e-05/0.5018, allocations: 24 kB / 463.6 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.5018, allocations: 12 kB / 463.7 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.503, allocations: 348.6 kB / 464 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004787/0.5078, allocations: 1.745 MB / 465.7 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007749/0.5086, allocations: 271.1 kB / 466 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.5087, allocations: 8 kB / 466 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/0.5087, allocations: 42.5 kB / 466.1 MB, free: 5.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 3.527e-06/0.5088, allocations: 0 / 466.1 MB, free: 5.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.003234/0.512, allocations: 0.9729 MB / 467 MB, free: 4.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.066e-05/0.5121, allocations: 85.06 kB / 467.1 MB, free: 3.906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006532/0.5128, allocations: 336.8 kB / 467.4 MB, free: 3.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.732e-05/0.5129, allocations: 33.7 kB / 467.5 MB, free: 3.531 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.5132, allocations: 341.8 kB / 467.8 MB, free: 3.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.5133, allocations: 114.4 kB / 467.9 MB, free: 3.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.594e-05/0.5134, allocations: 12 kB / 467.9 MB, free: 3.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.5135, allocations: 326.8 kB / 468.3 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003961/0.5139, allocations: 104.8 kB / 468.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004591/0.5144, allocations: 202.7 kB / 468.6 MB, free: 2.398 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004466/0.5149, allocations: 131.5 kB / 468.7 MB, free: 2.277 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.5149, allocations: 0 / 468.7 MB, free: 2.277 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001426/0.5163, allocations: 433.5 kB / 469.1 MB, free: 1.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.5164, allocations: 8 kB / 469.1 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.5164, allocations: 0 / 469.1 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005427/0.517, allocations: 85.88 kB / 469.2 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006164/0.5176, allocations: 83.83 kB / 469.3 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003644/0.5212, allocations: 2.873 MB / 472.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/0.5219, allocations: 23.94 kB / 472.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.455e-05/0.5219, allocations: 16 kB / 472.2 MB, free: 14.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003488/0.5223, allocations: 161.8 kB / 472.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.5224, allocations: 43.44 kB / 472.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.5226, allocations: 43.83 kB / 472.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.5226, allocations: 4 kB / 472.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/0.5226, allocations: 11.89 kB / 472.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5226, allocations: 0 / 472.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/0.525, allocations: 0.9634 MB / 473.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.525, allocations: 0 / 473.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003708/0.5254, allocations: 43.98 kB / 473.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004969/0.5259, allocations: 89.58 kB / 473.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/0.526, allocations: 7.984 kB / 473.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003571/0.5296, allocations: 2.881 MB / 476.4 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5296, allocations: 0 / 476.4 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/0.5314, allocations: 0.6401 MB / 477.1 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.5316, allocations: 112.7 kB / 477.2 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.408e-05/0.5317, allocations: 8 kB / 477.2 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006017/0.5323, allocations: 43.92 kB / 477.2 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.5324, allocations: 19.97 kB / 477.3 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.5325, allocations: 12 kB / 477.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004857/0.533, allocations: 271.2 kB / 477.5 MB, free: 8.766 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.533, allocations: 0 / 477.5 MB, free: 8.766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008554/0.5339, allocations: 120 kB / 477.6 MB, free: 8.648 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002128/0.536, allocations: 1.259 MB / 478.9 MB, free: 7.352 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001458/0.5375, allocations: 0.5205 MB / 479.4 MB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/0.5375, allocations: 4 kB / 479.4 MB, free: 6.801 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009918/0.5386, allocations: 393.7 kB / 479.8 MB, free: 6.391 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006668/0.5392, allocations: 59.84 kB / 479.9 MB, free: 6.332 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007616/0.5469, allocations: 4.36 MB / 484.2 MB, free: 1.859 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006564/0.5476, allocations: 0.8625 MB / 485.1 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004172/0.548, allocations: 171.4 kB / 485.3 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5481, allocations: 0 / 485.3 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.866/3.414, allocations: 10.84 MB / 496.1 MB, free: 5.965 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat