Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 89.62 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 199.1 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.3 MB / 246 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.0002754, allocations: 12 kB / 306.8 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 51.5 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005322/0.1391, allocations: 3.534 MB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1417, allocations: 0.8961 MB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003773/0.1422, allocations: 8 kB / 362.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.1424, allocations: 63.45 kB / 362.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.1428, allocations: 158.8 kB / 363 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.1432, allocations: 91.89 kB / 363.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006666/0.1439, allocations: 0.6225 MB / 363.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003268/0.1442, allocations: 162.3 kB / 363.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003334/0.1445, allocations: 227.1 kB / 364.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.1449, allocations: 246.9 kB / 364.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.222e-05/0.1449, allocations: 32 kB / 364.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1451, allocations: 47.92 kB / 364.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.1452, allocations: 87.61 kB / 364.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.1453, allocations: 129.4 kB / 364.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005788/0.1459, allocations: 478.8 kB / 365.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.1459, allocations: 0 / 365.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.1459, allocations: 0 / 365.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.146, allocations: 0 / 365.1 MB, free: 7.191 MB / 302.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.001677/0.1476, allocations: 0.791 MB / 365.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.17e-05/0.1477, allocations: 12.02 kB / 365.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001996/0.1479, allocations: 107.6 kB / 366 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004155/0.1484, allocations: 95.12 kB / 366.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006632/0.149, allocations: 358.5 kB / 366.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.774e-05/0.1491, allocations: 41.31 kB / 366.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.869e-05/0.1492, allocations: 55.95 kB / 366.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.1502, allocations: 499.5 kB / 367 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.1503, allocations: 4 kB / 367 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.191e-05/0.1503, allocations: 20 kB / 367 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.1504, allocations: 12 kB / 367 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000774/0.1511, allocations: 348.6 kB / 367.4 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003001/0.1542, allocations: 1.748 MB / 369.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.1546, allocations: 279.2 kB / 369.4 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.1549, allocations: 145.7 kB / 369.5 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.1549, allocations: 4 kB / 369.5 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.155, allocations: 38.56 kB / 369.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.164e-06/0.155, allocations: 0 / 369.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.0022/0.1572, allocations: 0.9808 MB / 370.6 MB, free: 1.375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.558e-05/0.1573, allocations: 81.11 kB / 370.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.1579, allocations: 385.5 kB / 371 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.1579, allocations: 29.7 kB / 371 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002847/0.1582, allocations: 295.4 kB / 371.3 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.1584, allocations: 118.3 kB / 371.4 MB, free: 456 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.757e-05/0.1584, allocations: 4 kB / 371.4 MB, free: 452 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002407/0.1586, allocations: 350.8 kB / 371.8 MB, free: 92 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2237/0.3823, allocations: 100.2 kB / 371.9 MB, free: 19.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.3828, allocations: 196.5 kB / 372.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.3831, allocations: 128.2 kB / 372.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3831, allocations: 4.203 kB / 372.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009867/0.3841, allocations: 455.9 kB / 372.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.3842, allocations: 10.86 kB / 372.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.3842, allocations: 2.469 kB / 372.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003787/0.3846, allocations: 81.59 kB / 372.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.3849, allocations: 84.78 kB / 372.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/0.3869, allocations: 2.854 MB / 375.7 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.3872, allocations: 21.53 kB / 375.7 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.3872, allocations: 15.48 kB / 375.7 MB, free: 16.35 MB / 302.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 () * 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.0001978/0.3874, allocations: 165.9 kB / 375.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.558e-05/0.3875, allocations: 41.28 kB / 375.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.667e-05/0.3876, allocations: 49.36 kB / 376 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3876, allocations: 2.688 kB / 376 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3876, allocations: 3.328 kB / 376 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3877, allocations: 1.266 kB / 376 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.3893, allocations: 0.9545 MB / 376.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3893, allocations: 0.5625 kB / 376.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.3895, allocations: 49.92 kB / 377 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002781/0.3898, allocations: 82.64 kB / 377.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.3898, allocations: 8.703 kB / 377.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/0.3917, allocations: 2.855 MB / 379.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3917, allocations: 1.375 kB / 379.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009041/0.3926, allocations: 0.6232 MB / 380.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.799e-05/0.3927, allocations: 114.8 kB / 380.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.047e-05/0.3927, allocations: 9.234 kB / 380.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003199/0.3931, allocations: 43.44 kB / 380.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.512e-05/0.3932, allocations: 29.91 kB / 380.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.3932, allocations: 7.625 kB / 380.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000318/0.3935, allocations: 268.6 kB / 381 MB, free: 12.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3935, allocations: 0 / 381 MB, free: 12.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000648/0.3942, allocations: 121.9 kB / 381.1 MB, free: 12.57 MB / 302.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 () * 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.001118/0.3953, allocations: 1.169 MB / 382.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008947/0.3962, allocations: 0.5086 MB / 382.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3962, allocations: 4.562 kB / 382.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005465/0.3968, allocations: 393.1 kB / 383.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00052/0.3973, allocations: 68.34 kB / 383.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004034/0.4014, allocations: 2.683 MB / 385.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.4018, allocations: 0.8508 MB / 386.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000236/0.402, allocations: 40.67 kB / 386.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.4023, allocations: 173 kB / 387 MB, free: 8.656 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4023, allocations: 0 / 387 MB, free: 8.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.4303, allocations: 8.045 MB / 395.1 MB, free: 6.445 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.4306, allocations: 220.2 kB / 395.3 MB, free: 6.199 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.156/2.586, allocations: 0 / 395.3 MB, free: 6.199 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat