Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009695/0.0009695, allocations: 99.81 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 197.6 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002134/0.0002135, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1176, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2013/0.319, allocations: 22.94 MB / 381.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.3319, allocations: 6.858 MB / 388 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005454/0.3374, allocations: 221.6 kB / 388.2 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00596/0.3434, allocations: 1.487 MB / 389.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.3536, allocations: 2.121 MB / 391.8 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005666/0.3592, allocations: 1.514 MB / 393.3 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02899/0.3882, allocations: 17.82 MB / 411.2 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07369/0.462, allocations: 35.27 MB / 446.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01159/0.4736, allocations: 6.183 MB / 452.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01218/0.4859, allocations: 7.182 MB / 459.8 MB, free: 6.562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003868/0.4898, allocations: 1.145 MB / 460.9 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007108/0.4969, allocations: 1.359 MB / 462.3 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005462/0.5024, allocations: 3.15 MB / 465.4 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008007/0.5104, allocations: 3.603 MB / 469 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03767/0.5481, allocations: 33.25 MB / 0.4905 GB, free: 11.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.5482, allocations: 0 / 0.4905 GB, free: 11.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.5482, allocations: 0 / 0.4905 GB, free: 11.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008419/0.549, allocations: 0 / 0.4905 GB, free: 11.95 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.05104/0.6001, allocations: 18.25 MB / 0.5083 GB, free: 9.574 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.6002, allocations: 8.031 kB / 0.5083 GB, free: 9.566 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009862/0.61, allocations: 2.954 MB / 0.5112 GB, free: 6.598 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04286/0.6529, allocations: 8.388 MB / 0.5194 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0251/0.678, allocations: 11.18 MB / 0.5303 GB, free: 2.914 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001231/0.6793, allocations: 1.329 MB / 0.5316 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.3963/1.076, allocations: 1.743 MB / 0.5333 GB, free: 108.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07339/1.149, allocations: 28.49 MB / 0.5612 GB, free: 99.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005769/1.15, allocations: 19.09 kB / 0.5612 GB, free: 99.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00421/1.154, allocations: 0.7228 MB / 0.5619 GB, free: 98.86 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001002/1.155, allocations: 0.8626 MB / 0.5627 GB, free: 98.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04468/1.2, allocations: 24.69 MB / 0.5868 GB, free: 80.88 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1304/1.33, allocations: 88.59 MB / 0.6734 GB, free: 7.086 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03476/1.365, allocations: 35.14 MB / 0.7077 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001054/1.366, allocations: 294.7 kB / 0.708 GB, free: 356 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001116/1.366, allocations: 91.12 kB / 0.708 GB, free: 252 kB / 494.1 MB Notification: Performance of pre-optimization done (n=589): time 8.455e-06/1.366, allocations: 0 / 0.708 GB, free: 252 kB / 494.1 MB Notification: Performance of matching and sorting (n=589): time 0.4043/1.771, allocations: 16.78 MB / 0.7244 GB, free: 154.6 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/1.771, allocations: 136.8 kB / 0.7246 GB, free: 154.5 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01302/1.784, allocations: 6.364 MB / 0.7308 GB, free: 154.1 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 0.0009873/1.785, allocations: 123.1 kB / 0.7309 GB, free: 154.1 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.005328/1.79, allocations: 7.597 MB / 0.7383 GB, free: 149.4 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.002611/1.793, allocations: 2.055 MB / 0.7403 GB, free: 147.8 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007563/1.794, allocations: 211.8 kB / 0.7405 GB, free: 147.7 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0005632/1.794, allocations: 0.748 MB / 0.7413 GB, free: 147.2 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008027/1.802, allocations: 4.789 MB / 0.7459 GB, free: 145.4 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01115/1.813, allocations: 9.464 MB / 0.7552 GB, free: 137.5 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009033/1.822, allocations: 7.176 MB / 0.7622 GB, free: 134.4 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001213/1.823, allocations: 42 kB / 0.7622 GB, free: 134.4 MB / 0.4983 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02184/1.844, allocations: 15.54 MB / 0.7774 GB, free: 128.1 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 9.817e-05/1.844, allocations: 78.39 kB / 0.7775 GB, free: 128.1 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002232/1.845, allocations: 156.8 kB / 0.7776 GB, free: 128.1 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005142/1.85, allocations: 1.785 MB / 0.7794 GB, free: 127.8 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007433/1.857, allocations: 2.329 MB / 0.7816 GB, free: 127.5 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01388/1.871, allocations: 12.37 MB / 0.7937 GB, free: 120.9 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008079/1.879, allocations: 1.345 MB / 0.795 GB, free: 120.1 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001654/1.881, allocations: 0.53 MB / 0.7956 GB, free: 120 MB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * 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 (1237): * Single equations (assignments): 1228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009869/1.891, allocations: 7.146 MB / 0.8025 GB, free: 114.1 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000972/1.892, allocations: 0.6133 MB / 0.8031 GB, free: 113.5 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/1.904, allocations: 10.36 MB / 0.8132 GB, free: 104.2 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009163/1.914, allocations: 7.986 MB / 0.821 GB, free: 96.16 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/1.914, allocations: 12 kB / 0.8211 GB, free: 96.14 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.485e-05/1.914, allocations: 27.89 kB / 0.8211 GB, free: 96.12 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03875/1.953, allocations: 26.2 MB / 0.8467 GB, free: 69.43 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.078e-05/1.953, allocations: 8 kB / 0.8467 GB, free: 69.42 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00362/1.956, allocations: 0.9868 MB / 0.8476 GB, free: 68.43 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004862/1.961, allocations: 1.562 MB / 0.8492 GB, free: 66.86 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007918/1.962, allocations: 128 kB / 0.8493 GB, free: 66.74 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/1.974, allocations: 11.99 MB / 0.861 GB, free: 54.62 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/1.974, allocations: 12.56 kB / 0.861 GB, free: 54.61 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01644/1.991, allocations: 15.27 MB / 0.8759 GB, free: 38.87 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003415/1.994, allocations: 1.452 MB / 0.8773 GB, free: 37.39 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001052/1.995, allocations: 112.1 kB / 0.8774 GB, free: 37.28 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/1.998, allocations: 319.6 kB / 0.8777 GB, free: 36.97 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006545/1.999, allocations: 397 kB / 0.8781 GB, free: 36.58 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002953/1.999, allocations: 167.9 kB / 0.8783 GB, free: 36.41 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.005818/2.005, allocations: 4.262 MB / 0.8824 GB, free: 32.18 MB / 0.4983 GB Notification: Performance of sort global known variables: time 3.11e-07/2.005, allocations: 0 / 0.8824 GB, free: 32.18 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01197/2.017, allocations: 4.063 MB / 0.8864 GB, free: 28.11 MB / 0.4983 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 1 (source.plug_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 (518): * Single equations (assignments): 509 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0192/2.036, allocations: 17.27 MB / 0.9033 GB, free: 10.43 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.268/2.304, allocations: 11.58 MB / 0.9146 GB, free: 158 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.666e-05/2.304, allocations: 8.891 kB / 0.9146 GB, free: 158 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.01263/2.317, allocations: 4.837 MB / 0.9193 GB, free: 156.6 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01247/2.329, allocations: 1.398 MB / 0.9207 GB, free: 156.2 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4178/2.747, allocations: 193.5 MB / 1.11 GB, free: 170.6 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02485/2.772, allocations: 11.53 MB / 1.121 GB, free: 169.5 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.01312/2.785, allocations: 3.745 MB / 1.125 GB, free: 169.1 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01074/2.796, allocations: 5.871 MB / 1.13 GB, free: 164.2 MB / 0.5139 GB Notification: Performance of SimCode: time 1.483e-06/2.796, allocations: 4 kB / 1.13 GB, free: 164.2 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5287/3.325, allocations: 201.8 MB / 1.327 GB, free: 124.8 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/3.325, allocations: 261.5 kB / 1.328 GB, free: 124.4 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.316/9.641, allocations: 0 / 1.328 GB, free: 124.4 MB / 0.5139 GB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat