Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",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.001026/0.001027, allocations: 90.08 kB / 16.31 MB, free: 6.457 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.001222/0.001222, allocations: 180.3 kB / 17.21 MB, free: 6.324 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.466/1.466, allocations: 223.2 MB / 241.2 MB, free: 5.336 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.0003692, allocations: 4.656 kB / 300.9 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1333, allocations: 50.42 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008804/0.1422, allocations: 6.805 MB / 358.1 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005785/0.148, allocations: 2.505 MB / 360.6 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001815/0.1499, allocations: 63.69 kB / 360.7 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.1518, allocations: 441.2 kB / 361.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.1553, allocations: 0.6412 MB / 361.8 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.1565, allocations: 259.7 kB / 362 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005368/0.1619, allocations: 3.358 MB / 365.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004807/0.1667, allocations: 2.499 MB / 367.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002603/0.1693, allocations: 1.187 MB / 369.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003274/0.1726, allocations: 1.584 MB / 370.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009372/0.1736, allocations: 188 kB / 370.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001784/0.1754, allocations: 359.6 kB / 371.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001564/0.177, allocations: 0.9074 MB / 372.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001287/0.1783, allocations: 0.6601 MB / 372.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005223/0.1835, allocations: 4.952 MB / 377.7 MB, free: 1.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.048e-05/0.1835, allocations: 8 kB / 377.7 MB, free: 1.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1836, allocations: 0 / 377.7 MB, free: 1.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001544/0.1837, allocations: 0 / 377.7 MB, free: 1.09 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: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.007051/0.1908, allocations: 3.222 MB / 380.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.1908, allocations: 8.031 kB / 381 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001119/0.192, allocations: 429.7 kB / 381.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/0.1931, allocations: 395.5 kB / 381.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003781/0.1969, allocations: 2.022 MB / 383.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000177/0.1971, allocations: 221.8 kB / 384 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004229/0.1975, allocations: 287.8 kB / 384.3 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008068/0.2056, allocations: 4.179 MB / 388.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.799e-05/0.2057, allocations: 0 / 388.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002789/0.206, allocations: 120 kB / 388.6 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002072/0.2062, allocations: 141.9 kB / 388.7 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006729/0.213, allocations: 3.482 MB / 392.2 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02008/0.2331, allocations: 10.97 MB / 403.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002949/0.2361, allocations: 2.634 MB / 405.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002342/0.2384, allocations: 1.497 MB / 407.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002481/0.2387, allocations: 126.1 kB / 407.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.2388, allocations: 55.5 kB / 407.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 3.787e-06/0.2388, allocations: 0 / 407.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=133): time 0.009073/0.2479, allocations: 5.183 MB / 412.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.2479, allocations: 90.42 kB / 412.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002647/0.2506, allocations: 1.898 MB / 414.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.2507, allocations: 49.7 kB / 414.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000943/0.2517, allocations: 1.322 MB / 416 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003702/0.252, allocations: 453.4 kB / 416.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.044e-05/0.2521, allocations: 32 kB / 416.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2523, allocations: 361.9 kB / 416.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.2535, allocations: 0.8198 MB / 417.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.255, allocations: 1.178 MB / 418.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.2564, allocations: 1.017 MB / 419.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.2565, allocations: 4 kB / 419.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.0043/0.2608, allocations: 2.526 MB / 422.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.2608, allocations: 12 kB / 422.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.2608, allocations: 8 kB / 422.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001797/0.2626, allocations: 487.1 kB / 422.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.2639, allocations: 331.5 kB / 423.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2045/0.4684, allocations: 4.046 MB / 427.3 MB, free: 59.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.4702, allocations: 89.62 kB / 427.3 MB, free: 59.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.4704, allocations: 64.06 kB / 427.4 MB, free: 59.72 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (158): * Single equations (assignments): 153 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001788/0.4722, allocations: 1.052 MB / 428.5 MB, free: 59.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004119/0.4726, allocations: 191.2 kB / 428.6 MB, free: 59.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/0.476, allocations: 2.145 MB / 430.8 MB, free: 59.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.48e-05/0.4761, allocations: 20.02 kB / 430.8 MB, free: 59.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.4761, allocations: 6.047 kB / 430.8 MB, free: 59.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.4761, allocations: 11.94 kB / 430.8 MB, free: 59.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008777/0.4849, allocations: 5.196 MB / 436 MB, free: 59.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.4849, allocations: 1.094 kB / 436 MB, free: 59.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009363/0.4859, allocations: 233.6 kB / 436.2 MB, free: 59.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001612/0.4875, allocations: 459.9 kB / 436.7 MB, free: 59.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.828e-05/0.4876, allocations: 32.97 kB / 436.7 MB, free: 59.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004207/0.4918, allocations: 3.965 MB / 440.7 MB, free: 57.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.4919, allocations: 2.25 kB / 440.7 MB, free: 57.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004419/0.4963, allocations: 3.253 MB / 444 MB, free: 55.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009634/0.4973, allocations: 466.7 kB / 444.4 MB, free: 55.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002662/0.4975, allocations: 27.88 kB / 444.4 MB, free: 55.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009657/0.4985, allocations: 108.4 kB / 444.5 MB, free: 55.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.4987, allocations: 101.8 kB / 444.6 MB, free: 55.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.454e-05/0.4988, allocations: 39.06 kB / 444.7 MB, free: 55.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002024/0.5009, allocations: 1.324 MB / 446 MB, free: 54.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5009, allocations: 0 / 446 MB, free: 54.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001708/0.5026, allocations: 0.5519 MB / 446.6 MB, free: 54.85 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * 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 (104): * Single equations (assignments): 99 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004394/0.507, allocations: 3.912 MB / 450.5 MB, free: 52.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003012/0.51, allocations: 2.193 MB / 452.7 MB, free: 50.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.51, allocations: 0 / 452.7 MB, free: 50.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.5116, allocations: 1.208 MB / 453.9 MB, free: 49.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.5138, allocations: 0.4985 MB / 454.4 MB, free: 49.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02413/0.538, allocations: 16.89 MB / 471.3 MB, free: 31.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/0.5397, allocations: 2.432 MB / 473.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001388/0.5411, allocations: 493.1 kB / 474.2 MB, free: 28.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.5422, allocations: 1.062 MB / 475.2 MB, free: 27.4 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5422, allocations: 3.938 kB / 475.2 MB, free: 27.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0771/0.6193, allocations: 48.4 MB / 0.5114 GB, free: 11.46 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002537/0.6196, allocations: 275.4 kB / 0.5116 GB, free: 11.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.228/3.848, allocations: 0 / 0.5116 GB, free: 11.11 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat