Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 90.48 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 180.7 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002829, allocations: 7.875 kB / 300.9 MB, free: 6.387 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1335, allocations: 50.43 MB / 351.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.006943/0.1405, allocations: 4.777 MB / 356.1 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004031/0.1446, allocations: 1.648 MB / 357.8 MB, free: 5.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008503/0.1454, allocations: 16 kB / 357.8 MB, free: 5.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.1465, allocations: 202.9 kB / 358 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002359/0.1489, allocations: 0.599 MB / 358.6 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008821/0.1498, allocations: 235.6 kB / 358.8 MB, free: 4.207 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.1513, allocations: 0.7415 MB / 359.6 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003259/0.1546, allocations: 1.483 MB / 361 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007544/0.1554, allocations: 282.9 kB / 361.3 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008529/0.1563, allocations: 410.4 kB / 361.7 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000259/0.1565, allocations: 40 kB / 361.8 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.1576, allocations: 191.8 kB / 361.9 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002708/0.1579, allocations: 139.4 kB / 362.1 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004762/0.1584, allocations: 161.3 kB / 362.2 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001593/0.16, allocations: 0.8958 MB / 363.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.16, allocations: 0 / 363.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.16, allocations: 0 / 363.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.78e-05/0.16, allocations: 4 kB / 363.1 MB, free: 15.83 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003532/0.1636, allocations: 1.201 MB / 364.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.1636, allocations: 8.031 kB / 364.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002504/0.1639, allocations: 148.1 kB / 364.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004264/0.1682, allocations: 0.6508 MB / 365.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006769/0.1689, allocations: 413.8 kB / 365.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.272e-05/0.169, allocations: 74 kB / 365.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/0.1692, allocations: 99.98 kB / 365.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.1709, allocations: 0.9859 MB / 366.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.171, allocations: 7.891 kB / 366.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.211e-05/0.1711, allocations: 40 kB / 366.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.1711, allocations: 24 kB / 366.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.1727, allocations: 0.9291 MB / 367.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/0.1774, allocations: 3.37 MB / 371.1 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.1797, allocations: 2.236 MB / 373.3 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.1802, allocations: 301.2 kB / 373.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.1804, allocations: 97.66 kB / 373.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/0.1804, allocations: 39.11 kB / 373.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 4.128e-06/0.1804, allocations: 4 kB / 373.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.001393/0.1818, allocations: 0.7251 MB / 374.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.1819, allocations: 111.4 kB / 374.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.1822, allocations: 270.5 kB / 374.8 MB, free: 3.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.1823, allocations: 33.7 kB / 374.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.1825, allocations: 382.7 kB / 375.2 MB, free: 2.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.1827, allocations: 224.7 kB / 375.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.1827, allocations: 16 kB / 375.5 MB, free: 2.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1829, allocations: 346.8 kB / 375.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.1833, allocations: 225.9 kB / 376 MB, free: 2.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000567/0.1839, allocations: 443.3 kB / 376.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005251/0.1844, allocations: 286.1 kB / 376.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.1844, allocations: 0 / 376.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001245/0.1857, allocations: 0.7562 MB / 377.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.1857, allocations: 8 kB / 377.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.1857, allocations: 8 kB / 377.5 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.1858, allocations: 12 kB / 377.5 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006582/0.1864, allocations: 196.1 kB / 377.7 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.724e-05/0.1865, allocations: 11.94 kB / 377.7 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.1869, allocations: 87.11 kB / 377.8 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.412e-05/0.1869, allocations: 35.98 kB / 377.9 MB, free: 276 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003488/0.1873, allocations: 221.6 kB / 378.1 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.1874, allocations: 43.48 kB / 378.1 MB, free: 0 / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.1888, allocations: 0.6634 MB / 378.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.1888, allocations: 8 kB / 378.8 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1888, allocations: 0 / 378.8 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.1888, allocations: 3.984 kB / 378.8 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002546/0.1914, allocations: 1.494 MB / 380.3 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.1914, allocations: 0 / 380.3 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005539/0.192, allocations: 139.8 kB / 380.4 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.305e-05/0.192, allocations: 4 kB / 380.4 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/0.192, allocations: 15.98 kB / 380.4 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.364e-05/0.192, allocations: 8 kB / 380.4 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1921, allocations: 3.938 kB / 380.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.1937, allocations: 1.13 MB / 381.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.1938, allocations: 120.5 kB / 381.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.401e-05/0.1939, allocations: 16 kB / 381.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.1942, allocations: 27.98 kB / 381.7 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.725e-05/0.1943, allocations: 40.5 kB / 381.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.655e-05/0.1944, allocations: 19.95 kB / 381.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001856/0.1946, allocations: 190 kB / 382 MB, free: 12.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1946, allocations: 0 / 382 MB, free: 12.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007869/0.1954, allocations: 223.1 kB / 382.2 MB, free: 11.81 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002056/0.1974, allocations: 1.71 MB / 383.9 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.1987, allocations: 0.6146 MB / 384.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1987, allocations: 0 / 384.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004633/0.1991, allocations: 311.5 kB / 384.8 MB, free: 9.164 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00058/0.1997, allocations: 40.55 kB / 384.9 MB, free: 9.125 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005019/0.2048, allocations: 3.185 MB / 388.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/0.2053, allocations: 0.897 MB / 389 MB, free: 4.867 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003524/0.2057, allocations: 80.38 kB / 389 MB, free: 4.789 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003437/0.2061, allocations: 255.3 kB / 389.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2061, allocations: 0 / 389.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.2279, allocations: 8.689 MB / 398 MB, free: 12.04 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.2281, allocations: 203.1 kB / 398.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.186, allocations: 8 kB / 398.2 MB, free: 11.79 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat