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.002372/0.002373, allocations: 182.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.34/2.34, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.002815/0.002815, allocations: 90.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.072e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09438/0.09445, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4048/0.4993, allocations: 78.86 MB / 448 MB, free: 14.33 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.4996, allocations: 67.59 kB / 448.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03597/0.5356, allocations: 8.069 MB / 456.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5357, allocations: 0 / 456.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.708e-05/0.5357, allocations: 8 kB / 456.2 MB, free: 7.414 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001971/0.5377, allocations: 0.7256 MB / 456.9 MB, free: 6.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.5378, allocations: 8.031 kB / 456.9 MB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002596/0.538, allocations: 108.7 kB / 457 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.5383, allocations: 67.25 kB / 457.1 MB, free: 6.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007755/0.539, allocations: 366.6 kB / 457.4 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.5391, allocations: 37.62 kB / 457.5 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.5392, allocations: 50.69 kB / 457.5 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.5405, allocations: 474 kB / 458 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.5406, allocations: 224 / 458 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.989e-05/0.5407, allocations: 26.19 kB / 458 MB, free: 5.766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/0.5407, allocations: 15.94 kB / 458 MB, free: 5.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.5417, allocations: 315.2 kB / 458.3 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004642/0.5464, allocations: 1.753 MB / 460.1 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.5471, allocations: 245.2 kB / 460.3 MB, free: 3.727 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.5475, allocations: 130.5 kB / 460.5 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.5475, allocations: 4 kB / 460.5 MB, free: 3.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.5476, allocations: 50.45 kB / 460.5 MB, free: 3.531 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 3.427e-06/0.5476, allocations: 4 kB / 460.5 MB, free: 3.527 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002269/0.5499, allocations: 0.7499 MB / 461.3 MB, free: 2.719 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.55, allocations: 89.09 kB / 461.4 MB, free: 2.613 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006209/0.5506, allocations: 331.6 kB / 461.7 MB, free: 2.281 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.5507, allocations: 29.7 kB / 461.7 MB, free: 2.246 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/0.551, allocations: 341.8 kB / 462 MB, free: 1.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.5511, allocations: 114.4 kB / 462.2 MB, free: 1.793 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.5512, allocations: 12 kB / 462.2 MB, free: 1.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5513, allocations: 326.8 kB / 462.5 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/0.5516, allocations: 84.88 kB / 462.6 MB, free: 1.371 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.552, allocations: 186.8 kB / 462.8 MB, free: 1.145 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.5524, allocations: 121.6 kB / 462.9 MB, free: 1.027 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.5524, allocations: 3.938 kB / 462.9 MB, free: 1.023 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001244/0.5536, allocations: 397.5 kB / 463.3 MB, free: 0.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.5537, allocations: 8 kB / 463.3 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.5537, allocations: 4 kB / 463.3 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005234/0.5542, allocations: 81.91 kB / 463.4 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006314/0.5549, allocations: 79.84 kB / 463.4 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003537/0.5584, allocations: 2.861 MB / 466.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.5591, allocations: 15.91 kB / 466.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.5591, allocations: 24 kB / 466.3 MB, free: 13.29 MB / 346.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 () * 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.0001756/0.5593, allocations: 124.9 kB / 466.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5595, allocations: 47.52 kB / 466.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.5596, allocations: 43.25 kB / 466.5 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.5596, allocations: 7.953 kB / 466.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.5596, allocations: 4 kB / 466.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.5596, allocations: 0 / 466.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.5618, allocations: 0.917 MB / 467.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/0.5619, allocations: 4 kB / 467.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003911/0.5623, allocations: 47.92 kB / 467.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004862/0.5628, allocations: 81.55 kB / 467.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.499e-05/0.5628, allocations: 12 kB / 467.6 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003451/0.5663, allocations: 2.854 MB / 470.5 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5663, allocations: 0 / 470.5 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.5678, allocations: 0.5951 MB / 471.1 MB, free: 8.184 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.568, allocations: 116.6 kB / 471.2 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/0.5681, allocations: 15.89 kB / 471.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006101/0.5687, allocations: 35.97 kB / 471.2 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.988e-05/0.5689, allocations: 23.97 kB / 471.3 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.541e-05/0.5689, allocations: 12 kB / 471.3 MB, free: 7.965 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005119/0.5694, allocations: 266.2 kB / 471.5 MB, free: 7.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5694, allocations: 0 / 471.5 MB, free: 7.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000832/0.5703, allocations: 120 kB / 471.6 MB, free: 7.59 MB / 346.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 () * 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.00184/0.5721, allocations: 1.209 MB / 472.8 MB, free: 6.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.5735, allocations: 0.4955 MB / 473.3 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.5736, allocations: 0.625 kB / 473.3 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000918/0.5745, allocations: 365.1 kB / 473.7 MB, free: 5.438 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006905/0.5752, allocations: 57.22 kB / 473.8 MB, free: 5.379 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002851/0.5781, allocations: 0.8658 MB / 474.6 MB, free: 4.465 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005732/0.5787, allocations: 0.8548 MB / 475.5 MB, free: 3.578 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004034/0.5791, allocations: 175.4 kB / 475.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.5791, allocations: 0 / 475.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.806/3.385, allocations: 10.84 MB / 486.5 MB, free: 8.559 MB / 362.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