Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_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.001266/0.001266, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.319/1.319, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.000763/0.0007632, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.404e-05/5.445e-05, allocations: 11.92 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07803/0.07811, allocations: 47.56 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2816/0.3598, allocations: 78.85 MB / 449 MB, free: 14.44 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.3601, allocations: 71.88 kB / 449 MB, free: 14.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02144/0.3815, allocations: 8.069 MB / 457.1 MB, free: 7.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3816, allocations: 0 / 457.1 MB, free: 7.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.872e-05/0.3816, allocations: 16 kB / 457.1 MB, free: 7.504 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.00126/0.3829, allocations: 0.724 MB / 457.8 MB, free: 6.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3829, allocations: 15.97 kB / 457.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.3831, allocations: 100.7 kB / 458 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.3832, allocations: 67.25 kB / 458 MB, free: 6.609 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.3837, allocations: 363.2 kB / 458.4 MB, free: 6.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.3837, allocations: 37.12 kB / 458.4 MB, free: 6.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.927e-05/0.3838, allocations: 55 kB / 458.5 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000762/0.3846, allocations: 474.1 kB / 458.9 MB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.3846, allocations: 224 / 458.9 MB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.704e-05/0.3846, allocations: 28 kB / 459 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3847, allocations: 15.94 kB / 459 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005206/0.3852, allocations: 313.3 kB / 459.3 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002601/0.3878, allocations: 1.749 MB / 461 MB, free: 3.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003884/0.3882, allocations: 249.1 kB / 461.3 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.3884, allocations: 129.7 kB / 461.4 MB, free: 3.266 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.3884, allocations: 11.98 kB / 461.4 MB, free: 3.254 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.3885, allocations: 46.52 kB / 461.5 MB, free: 3.199 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.3885, allocations: 0 / 461.5 MB, free: 3.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001342/0.3898, allocations: 0.7583 MB / 462.2 MB, free: 2.383 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.3899, allocations: 85.09 kB / 462.3 MB, free: 2.281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.3903, allocations: 327.6 kB / 462.6 MB, free: 1.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.3903, allocations: 33.7 kB / 462.7 MB, free: 1.914 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.3905, allocations: 295.3 kB / 462.9 MB, free: 1.617 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.63e-05/0.3906, allocations: 118.4 kB / 463.1 MB, free: 1.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.749e-05/0.3906, allocations: 8 kB / 463.1 MB, free: 1.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3907, allocations: 346.8 kB / 463.4 MB, free: 1.145 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.3909, allocations: 92.88 kB / 463.5 MB, free: 1.055 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.3911, allocations: 178.8 kB / 463.7 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.3913, allocations: 117.6 kB / 463.8 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3913, allocations: 0 / 463.8 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006777/0.392, allocations: 433.1 kB / 464.2 MB, free: 296 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.392, allocations: 4 kB / 464.2 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3921, allocations: 4 kB / 464.2 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000306/0.3924, allocations: 85.97 kB / 464.3 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/0.3927, allocations: 71.91 kB / 464.4 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.3949, allocations: 2.846 MB / 467.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.3952, allocations: 27.89 kB / 467.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.3953, allocations: 19.94 kB / 467.3 MB, free: 12.96 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 9.853e-05/0.3954, allocations: 128.9 kB / 467.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.3955, allocations: 39.53 kB / 467.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.179e-05/0.3956, allocations: 51.19 kB / 467.5 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.3956, allocations: 7.953 kB / 467.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3956, allocations: 3.984 kB / 467.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3956, allocations: 4 kB / 467.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.3968, allocations: 0.9171 MB / 468.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3968, allocations: 3.984 kB / 468.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001907/0.397, allocations: 55.91 kB / 468.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002655/0.3973, allocations: 81.55 kB / 468.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.3973, allocations: 12 kB / 468.6 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002054/0.3994, allocations: 2.838 MB / 471.4 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3994, allocations: 64 / 471.4 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000763/0.4002, allocations: 0.599 MB / 472 MB, free: 7.859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.4003, allocations: 120.6 kB / 472.1 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.4004, allocations: 7.953 kB / 472.1 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.4007, allocations: 35.98 kB / 472.2 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.4008, allocations: 31.89 kB / 472.2 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.4008, allocations: 8 kB / 472.2 MB, free: 7.641 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002535/0.4011, allocations: 266.2 kB / 472.5 MB, free: 7.383 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4011, allocations: 0 / 472.5 MB, free: 7.383 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005157/0.4016, allocations: 120 kB / 472.6 MB, free: 7.266 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.001151/0.4028, allocations: 1.209 MB / 473.8 MB, free: 6.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008269/0.4036, allocations: 0.4921 MB / 474.3 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4036, allocations: 0 / 474.3 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005254/0.4041, allocations: 377 kB / 474.6 MB, free: 5.105 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.4045, allocations: 61.45 kB / 474.7 MB, free: 5.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.4061, allocations: 0.8268 MB / 475.5 MB, free: 4.176 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.4066, allocations: 0.8548 MB / 476.4 MB, free: 3.289 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001722/0.4067, allocations: 43.3 kB / 476.4 MB, free: 3.246 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.4069, allocations: 171.4 kB / 476.6 MB, free: 3.078 MB / 346.7 MB Notification: Performance of SimCode: time 7.41e-07/0.4069, allocations: 0 / 476.6 MB, free: 3.078 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02126/0.4282, allocations: 8.008 MB / 484.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/0.4285, allocations: 185.6 kB / 484.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.397, allocations: 0 / 484.8 MB, free: 10.84 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat