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.002193/0.002193, allocations: 179.4 kB / 8.364 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.295/2.295, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001155/0.001155, allocations: 93.25 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.532e-05/2.545e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3557, allocations: 47.55 MB / 362.4 MB, free: 45.78 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.4891, allocations: 78.2 MB / 440.6 MB, free: 8.023 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.4895, allocations: 68.61 kB / 440.7 MB, free: 7.957 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03788/0.5274, allocations: 7.977 MB / 448.7 MB, free: 0 / 331.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5275, allocations: 4.047 kB / 448.7 MB, free: 15.99 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.107e-05/0.5275, allocations: 8 kB / 448.7 MB, free: 15.98 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00198/0.5295, allocations: 0.7314 MB / 449.4 MB, free: 15.21 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/0.5296, allocations: 9.719 kB / 449.4 MB, free: 15.21 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000251/0.5299, allocations: 67.23 kB / 449.5 MB, free: 15.14 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008295/0.5307, allocations: 347.5 kB / 449.8 MB, free: 14.76 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.5308, allocations: 16 kB / 449.8 MB, free: 14.75 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.5309, allocations: 32 kB / 449.9 MB, free: 14.71 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009009/0.5318, allocations: 274.6 kB / 450.1 MB, free: 14.45 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.5329, allocations: 388.7 kB / 450.5 MB, free: 14.05 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.5329, allocations: 0 / 450.5 MB, free: 14.05 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.876e-05/0.533, allocations: 224 / 450.5 MB, free: 14.05 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.533, allocations: 12 kB / 450.5 MB, free: 14.04 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004696/0.5377, allocations: 1.632 MB / 452.2 MB, free: 12.32 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006615/0.5385, allocations: 229.2 kB / 452.4 MB, free: 12.07 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.5388, allocations: 130.3 kB / 452.5 MB, free: 11.94 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.5388, allocations: 3.938 kB / 452.5 MB, free: 11.94 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.5389, allocations: 42.47 kB / 452.6 MB, free: 11.89 MB / 347.1 MB Notification: Performance of pre-optimization done (n=31): time 4.118e-06/0.5389, allocations: 0 / 452.6 MB, free: 11.89 MB / 347.1 MB Notification: Performance of matching and sorting (n=32): time 0.002207/0.5411, allocations: 0.7043 MB / 453.3 MB, free: 11.12 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.5412, allocations: 81.11 kB / 453.3 MB, free: 11.03 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005699/0.5418, allocations: 302.3 kB / 453.6 MB, free: 10.73 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.065e-05/0.5419, allocations: 25.7 kB / 453.7 MB, free: 10.7 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.5422, allocations: 337.8 kB / 454 MB, free: 10.37 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.5423, allocations: 110.5 kB / 454.1 MB, free: 10.26 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.5424, allocations: 0 / 454.1 MB, free: 10.26 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.5426, allocations: 330.8 kB / 454.4 MB, free: 9.926 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.5428, allocations: 76.88 kB / 454.5 MB, free: 9.852 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.5432, allocations: 166 kB / 454.7 MB, free: 9.648 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.5435, allocations: 108.8 kB / 454.8 MB, free: 9.543 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5435, allocations: 0 / 454.8 MB, free: 9.543 MB / 347.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001136/0.5447, allocations: 360 kB / 455.1 MB, free: 9.184 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.5447, allocations: 4 kB / 455.1 MB, free: 9.18 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.5448, allocations: 9.297 kB / 455.1 MB, free: 9.172 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005201/0.5453, allocations: 77.66 kB / 455.2 MB, free: 9.09 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006169/0.5459, allocations: 83.84 kB / 455.3 MB, free: 9.008 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003505/0.5495, allocations: 2.743 MB / 458 MB, free: 6.031 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006079/0.5501, allocations: 19.94 kB / 458.1 MB, free: 6.012 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-05/0.5502, allocations: 12 kB / 458.1 MB, free: 6 MB / 347.1 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.0001902/0.5504, allocations: 114.8 kB / 458.2 MB, free: 5.883 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009564/0.5514, allocations: 300.2 kB / 458.5 MB, free: 5.578 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.5515, allocations: 43.48 kB / 458.5 MB, free: 5.535 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001282/0.5516, allocations: 43.11 kB / 458.6 MB, free: 5.488 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.5517, allocations: 4 kB / 458.6 MB, free: 5.484 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.5517, allocations: 0.6562 kB / 458.6 MB, free: 5.484 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.5517, allocations: 0 / 458.6 MB, free: 5.484 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.5538, allocations: 0.8118 MB / 459.4 MB, free: 4.621 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.5538, allocations: 0 / 459.4 MB, free: 4.621 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.5543, allocations: 51.91 kB / 459.4 MB, free: 4.57 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004877/0.5548, allocations: 81.64 kB / 459.5 MB, free: 4.484 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.5548, allocations: 4 kB / 459.5 MB, free: 4.48 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/0.5583, allocations: 2.744 MB / 462.3 MB, free: 1.512 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.5584, allocations: 0 / 462.3 MB, free: 1.512 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.5597, allocations: 0.5636 MB / 462.8 MB, free: 0.9219 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.56, allocations: 116.6 kB / 462.9 MB, free: 0.7891 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.5601, allocations: 4 kB / 462.9 MB, free: 0.7852 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005857/0.5607, allocations: 39.88 kB / 463 MB, free: 0.7461 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5608, allocations: 23.97 kB / 463 MB, free: 0.7227 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.5609, allocations: 11.98 kB / 463 MB, free: 0.7109 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0004246/0.5613, allocations: 236.6 kB / 463.2 MB, free: 488 kB / 347.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5613, allocations: 0 / 463.2 MB, free: 488 kB / 347.1 MB Notification: Performance of remove unused functions: time 0.0009376/0.5623, allocations: 100 kB / 463.3 MB, free: 388 kB / 347.1 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.001812/0.5641, allocations: 1.185 MB / 464.5 MB, free: 15.16 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.5654, allocations: 468.2 kB / 465 MB, free: 14.68 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 6.363e-06/0.5654, allocations: 0 / 465 MB, free: 14.68 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009053/0.5663, allocations: 356.6 kB / 465.3 MB, free: 14.31 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.567, allocations: 41.91 kB / 465.4 MB, free: 14.27 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.5698, allocations: 0.8044 MB / 466.2 MB, free: 13.42 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006247/0.5705, allocations: 0.8509 MB / 467 MB, free: 12.55 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004042/0.5709, allocations: 169.7 kB / 467.2 MB, free: 12.38 MB / 363.1 MB Notification: Performance of SimCode: time 1.243e-06/0.571, allocations: 0 / 467.2 MB, free: 12.38 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.959/3.53, allocations: 10.4 MB / 477.6 MB, free: 2.008 MB / 363.1 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