Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000864/0.0008641, allocations: 174.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007437/0.0007437, allocations: 96.95 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002762, allocations: 20 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1829, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.002784/0.1857, allocations: 3.469 MB / 378.7 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009844/0.1867, allocations: 0.8909 MB / 379.6 MB, free: 41.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.1869, allocations: 8.531 kB / 379.6 MB, free: 41.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.187, allocations: 63.14 kB / 379.6 MB, free: 41.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.1872, allocations: 161.5 kB / 379.8 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.1875, allocations: 93.55 kB / 379.9 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004449/0.1879, allocations: 0.6246 MB / 380.5 MB, free: 41.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.1882, allocations: 175.5 kB / 380.7 MB, free: 41.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.1884, allocations: 216.4 kB / 380.9 MB, free: 41.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.1886, allocations: 262.7 kB / 381.1 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.1887, allocations: 36.12 kB / 381.2 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.9e-05/0.1888, allocations: 30.94 kB / 381.2 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.1888, allocations: 101.9 kB / 381.3 MB, free: 40.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.189, allocations: 282.4 kB / 381.6 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.1894, allocations: 472.1 kB / 382 MB, free: 40.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1894, allocations: 0 / 382 MB, free: 40.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1894, allocations: 0 / 382 MB, free: 40.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1894, allocations: 0 / 382 MB, free: 40.25 MB / 298.7 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.00103/0.1904, allocations: 0.7812 MB / 382.8 MB, free: 39.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1905, allocations: 9.75 kB / 382.8 MB, free: 39.61 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.1906, allocations: 106.7 kB / 382.9 MB, free: 39.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.591e-05/0.1907, allocations: 66.22 kB / 383 MB, free: 39.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.191, allocations: 369 kB / 383.4 MB, free: 39.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.1911, allocations: 37.91 kB / 383.4 MB, free: 39.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.246e-05/0.1911, allocations: 50.84 kB / 383.4 MB, free: 39.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007152/0.1918, allocations: 0.5025 MB / 383.9 MB, free: 38.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1919, allocations: 0 / 383.9 MB, free: 38.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.179e-05/0.1919, allocations: 25.05 kB / 384 MB, free: 38.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.1919, allocations: 12.91 kB / 384 MB, free: 38.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005749/0.1925, allocations: 348.1 kB / 384.3 MB, free: 38.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.1947, allocations: 1.751 MB / 386.1 MB, free: 37.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.1951, allocations: 268.2 kB / 386.3 MB, free: 37.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.1953, allocations: 157.6 kB / 386.5 MB, free: 36.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.1954, allocations: 6.875 kB / 386.5 MB, free: 36.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1954, allocations: 41.72 kB / 386.5 MB, free: 36.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.332e-06/0.1954, allocations: 0 / 386.5 MB, free: 36.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001551/0.1969, allocations: 0.9832 MB / 387.5 MB, free: 36.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.197, allocations: 81.11 kB / 387.6 MB, free: 35.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.1973, allocations: 381.6 kB / 388 MB, free: 35.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.1973, allocations: 29.7 kB / 388 MB, free: 35.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1974, allocations: 303.2 kB / 388.3 MB, free: 35.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.678e-05/0.1975, allocations: 106.5 kB / 388.4 MB, free: 35.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.5e-05/0.1975, allocations: 8 kB / 388.4 MB, free: 35.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.604e-05/0.1976, allocations: 350.8 kB / 388.8 MB, free: 34.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.1978, allocations: 108.8 kB / 388.9 MB, free: 34.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.198, allocations: 198.6 kB / 389.1 MB, free: 34.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.1983, allocations: 313 kB / 389.4 MB, free: 34.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1983, allocations: 3.938 kB / 389.4 MB, free: 34.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006415/0.199, allocations: 458.5 kB / 389.8 MB, free: 33.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.199, allocations: 4 kB / 389.8 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.199, allocations: 4 kB / 389.8 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002816/0.1993, allocations: 89.66 kB / 389.9 MB, free: 33.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.1996, allocations: 79.91 kB / 390 MB, free: 33.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.2011, allocations: 2.853 MB / 392.8 MB, free: 30.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.2013, allocations: 23.84 kB / 392.9 MB, free: 30.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.2014, allocations: 16 kB / 392.9 MB, free: 30.26 MB / 298.7 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.0001334/0.2015, allocations: 170.7 kB / 393 MB, free: 30.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-05/0.2016, allocations: 39.53 kB / 393.1 MB, free: 30.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.952e-05/0.2017, allocations: 43.47 kB / 393.1 MB, free: 30 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2017, allocations: 7.938 kB / 393.1 MB, free: 30 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2017, allocations: 7.938 kB / 393.1 MB, free: 29.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2017, allocations: 3.984 kB / 393.1 MB, free: 29.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.2027, allocations: 0.9542 MB / 394.1 MB, free: 28.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2027, allocations: 3.938 kB / 394.1 MB, free: 28.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.2029, allocations: 47.98 kB / 394.1 MB, free: 28.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.2031, allocations: 81.48 kB / 394.2 MB, free: 28.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.2031, allocations: 19.98 kB / 394.2 MB, free: 28.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.2045, allocations: 2.841 MB / 397.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2045, allocations: 0 / 397.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007064/0.2053, allocations: 0.6307 MB / 397.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.353e-05/0.2054, allocations: 116.7 kB / 397.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.2054, allocations: 4 kB / 397.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.2057, allocations: 35.98 kB / 397.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.2058, allocations: 27.95 kB / 397.9 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.2058, allocations: 12 kB / 397.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002129/0.2061, allocations: 267.2 kB / 398.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2061, allocations: 0 / 398.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005017/0.2066, allocations: 120 kB / 398.3 MB, free: 24.46 MB / 298.7 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.000882/0.2075, allocations: 1.181 MB / 399.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006741/0.2081, allocations: 0.5128 MB / 400 MB, free: 22.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2082, allocations: 0 / 400 MB, free: 22.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004548/0.2086, allocations: 401.7 kB / 400.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000507/0.2091, allocations: 63.53 kB / 400.4 MB, free: 22.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.2121, allocations: 2.708 MB / 403.1 MB, free: 19.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.2123, allocations: 0.8392 MB / 404 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.2125, allocations: 175.4 kB / 404.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2125, allocations: 4 kB / 404.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.534/3.747, allocations: 10.45 MB / 414.6 MB, free: 7.922 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches