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.001801/0.001801, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001981/0.001981, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2543, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02984/0.2842, allocations: 28.62 MB / 437.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01587/0.3001, allocations: 7.199 MB / 444.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006616/0.3067, allocations: 263.2 kB / 444.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02845/0.3353, allocations: 13.09 MB / 457.9 MB, free: 192 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01156/0.3468, allocations: 2.535 MB / 460.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007124/0.354, allocations: 2.033 MB / 462.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02059/0.3746, allocations: 18.28 MB / 480.8 MB, free: 9.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07051/0.4451, allocations: 44.44 MB / 0.5129 GB, free: 12.61 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01522/0.4604, allocations: 9.949 MB / 0.5226 GB, free: 2.648 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01783/0.4783, allocations: 11.06 MB / 0.5334 GB, free: 7.543 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007098/0.4854, allocations: 2.918 MB / 0.5363 GB, free: 4.625 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009457/0.4949, allocations: 3.195 MB / 0.5394 GB, free: 1.434 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4501/0.945, allocations: 5.476 MB / 0.5447 GB, free: 59.68 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0252/0.9703, allocations: 10.82 MB / 0.5553 GB, free: 58.82 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0358/1.006, allocations: 39.02 MB / 0.5934 GB, free: 38.63 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/1.006, allocations: 0.7812 kB / 0.5934 GB, free: 38.63 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.525e-06/1.006, allocations: 0 / 0.5934 GB, free: 38.63 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001102/1.007, allocations: 0.7812 kB / 0.5934 GB, free: 38.63 MB / 462.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.0693/1.077, allocations: 21.94 MB / 0.6148 GB, free: 25.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/1.077, allocations: 14.45 kB / 0.6148 GB, free: 25.09 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01253/1.089, allocations: 2.957 MB / 0.6177 GB, free: 22.48 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04312/1.132, allocations: 8.356 MB / 0.6259 GB, free: 14.19 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0209/1.153, allocations: 11.62 MB / 0.6372 GB, free: 2.992 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001217/1.155, allocations: 1.35 MB / 0.6386 GB, free: 1.652 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00673/1.161, allocations: 1.758 MB / 0.6403 GB, free: 15.9 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08292/1.244, allocations: 28.72 MB / 0.6683 GB, free: 3.141 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008473/1.245, allocations: 19.89 kB / 0.6683 GB, free: 3.121 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006519/1.252, allocations: 0.731 MB / 0.6691 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008877/1.253, allocations: 0.8415 MB / 0.6699 GB, free: 1.559 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06254/1.315, allocations: 24.79 MB / 0.6941 GB, free: 8.75 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4243/1.739, allocations: 87.28 MB / 0.7793 GB, free: 141.7 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02125/1.761, allocations: 35.13 MB / 0.8136 GB, free: 114.3 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007626/1.768, allocations: 5.444 MB / 0.8189 GB, free: 114.2 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005781/1.769, allocations: 280.8 kB / 0.8192 GB, free: 114 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.014e-05/1.769, allocations: 97.3 kB / 0.8193 GB, free: 113.9 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.384e-06/1.769, allocations: 0 / 0.8193 GB, free: 113.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03081/1.8, allocations: 14.72 MB / 0.8337 GB, free: 113.1 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/1.8, allocations: 145.5 kB / 0.8338 GB, free: 113 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009742/1.81, allocations: 6.418 MB / 0.8401 GB, free: 110.8 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001006/1.811, allocations: 116.7 kB / 0.8402 GB, free: 110.7 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.004004/1.815, allocations: 7.618 MB / 0.8476 GB, free: 104 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001959/1.817, allocations: 2.011 MB / 0.8496 GB, free: 102.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00285/1.82, allocations: 2.085 MB / 0.8516 GB, free: 101.1 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.995e-05/1.82, allocations: 309.1 kB / 0.8519 GB, free: 100.8 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005667/1.825, allocations: 4.728 MB / 0.8566 GB, free: 98.32 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007751/1.833, allocations: 9.466 MB / 0.8658 GB, free: 89.32 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01514/1.848, allocations: 15.31 MB / 0.8807 GB, free: 72.26 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001873/1.849, allocations: 44 kB / 0.8808 GB, free: 72.22 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02526/1.874, allocations: 15.37 MB / 0.8958 GB, free: 56.76 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001136/1.874, allocations: 76.5 kB / 0.8959 GB, free: 56.68 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002589/1.874, allocations: 168 kB / 0.896 GB, free: 56.52 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005162/1.879, allocations: 1.656 MB / 0.8977 GB, free: 54.86 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007774/1.887, allocations: 2.36 MB / 0.9 GB, free: 52.5 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.9, allocations: 11.59 MB / 0.9113 GB, free: 40.78 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007684/1.908, allocations: 1.347 MB / 0.9126 GB, free: 39.42 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001951/1.91, allocations: 0.5273 MB / 0.9131 GB, free: 38.89 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1243): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01322/1.923, allocations: 7.145 MB / 0.9201 GB, free: 31.73 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/1.924, allocations: 0.6172 MB / 0.9207 GB, free: 31.1 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01341/1.937, allocations: 10.1 MB / 0.9306 GB, free: 20.89 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009471/1.947, allocations: 7.762 MB / 0.9381 GB, free: 13.04 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-05/1.947, allocations: 19.98 kB / 0.9382 GB, free: 13.02 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.024e-05/1.947, allocations: 31.83 kB / 0.9382 GB, free: 12.99 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0499/1.997, allocations: 25.67 MB / 0.9633 GB, free: 3.062 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.927e-05/1.997, allocations: 8 kB / 0.9633 GB, free: 3.055 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004313/2.001, allocations: 1.01 MB / 0.9642 GB, free: 2.043 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005283/2.007, allocations: 1.462 MB / 0.9657 GB, free: 0.5781 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009363/2.008, allocations: 124 kB / 0.9658 GB, free: 468 kB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3093/2.317, allocations: 11.14 MB / 0.9767 GB, free: 182.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/2.317, allocations: 17.19 kB / 0.9767 GB, free: 182.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01784/2.335, allocations: 14.1 MB / 0.9905 GB, free: 176.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003365/2.338, allocations: 1.429 MB / 0.9919 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/2.339, allocations: 111 kB / 0.992 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00286/2.342, allocations: 318.4 kB / 0.9923 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007164/2.343, allocations: 405.8 kB / 0.9927 GB, free: 175.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002998/2.343, allocations: 169.4 kB / 0.9928 GB, free: 175.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006858/2.35, allocations: 4.304 MB / 0.997 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.6e-07/2.35, allocations: 0 / 0.997 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01285/2.363, allocations: 4.041 MB / 1.001 GB, free: 172.6 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (528): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01855/2.382, allocations: 14.88 MB / 1.015 GB, free: 165.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01542/2.397, allocations: 11.37 MB / 1.027 GB, free: 157.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/2.397, allocations: 7.5 kB / 1.027 GB, free: 157.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006498/2.404, allocations: 4.64 MB / 1.031 GB, free: 153.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007767/2.411, allocations: 1.564 MB / 1.033 GB, free: 152.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1357/2.547, allocations: 94.14 MB / 1.125 GB, free: 55.32 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01858/2.566, allocations: 11.26 MB / 1.136 GB, free: 44.01 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.009348/2.575, allocations: 3.774 MB / 1.139 GB, free: 40.22 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009174/2.584, allocations: 5.912 MB / 1.145 GB, free: 34.31 MB / 0.5763 GB Notification: Performance of SimCode: time 9.71e-07/2.584, allocations: 0 / 1.145 GB, free: 34.31 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.48/3.064, allocations: 206.3 MB / 1.347 GB, free: 78.44 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.09/29.15, allocations: 7.484 kB / 1.347 GB, free: 78.44 MB / 0.5919 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/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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches