Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000909/0.000909, allocations: 196.6 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 226.5 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007556/0.0007557, allocations: 95.77 kB / 296.7 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002112/0.0002112, allocations: 4 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1843, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.003271/0.1876, allocations: 4.624 MB / 412.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1891, allocations: 1.416 MB / 414.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002553/0.1893, allocations: 25.03 kB / 414.2 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002836/0.1896, allocations: 162.6 kB / 414.4 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.1899, allocations: 151.9 kB / 414.5 MB, free: 21.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.1904, allocations: 297.5 kB / 414.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006148/0.191, allocations: 1.029 MB / 415.8 MB, free: 19.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004191/0.1914, allocations: 423.4 kB / 416.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002637/0.1917, allocations: 330.4 kB / 416.6 MB, free: 19.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.1919, allocations: 353.9 kB / 416.9 MB, free: 18.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.192, allocations: 40 kB / 416.9 MB, free: 18.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.1921, allocations: 63.98 kB / 417 MB, free: 18.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.952e-05/0.1922, allocations: 151.3 kB / 417.2 MB, free: 18.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.1924, allocations: 447.1 kB / 417.6 MB, free: 18.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000439/0.1929, allocations: 0.7803 MB / 418.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1929, allocations: 0 / 418.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1929, allocations: 0 / 418.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1929, allocations: 0 / 418.4 MB, free: 17.41 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001187/0.1941, allocations: 1.126 MB / 419.5 MB, free: 16.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.1942, allocations: 8.031 kB / 419.5 MB, free: 16.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.1943, allocations: 148.2 kB / 419.7 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002672/0.1945, allocations: 158.4 kB / 419.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005893/0.1951, allocations: 0.603 MB / 420.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/0.1952, allocations: 77.94 kB / 420.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-05/0.1953, allocations: 99.91 kB / 420.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1965, allocations: 1.031 MB / 421.6 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/0.1966, allocations: 7.938 kB / 421.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.699e-05/0.1966, allocations: 44 kB / 421.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.1966, allocations: 24 kB / 421.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008937/0.1975, allocations: 0.5578 MB / 422.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.2006, allocations: 5.536 MB / 427.8 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004381/0.201, allocations: 240.9 kB / 428 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.2013, allocations: 161.7 kB / 428.2 MB, free: 7.062 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/0.2014, allocations: 93.08 kB / 428.3 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.2014, allocations: 34.56 kB / 428.3 MB, free: 6.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.594e-06/0.2014, allocations: 0 / 428.3 MB, free: 6.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003041/0.2045, allocations: 1.776 MB / 430.1 MB, free: 5.035 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.2045, allocations: 93.03 kB / 430.2 MB, free: 4.926 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004735/0.205, allocations: 0.6255 MB / 430.8 MB, free: 4.289 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.205, allocations: 37.7 kB / 430.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.2053, allocations: 0.5948 MB / 431.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.311e-05/0.2053, allocations: 146 kB / 431.6 MB, free: 3.496 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.241e-05/0.2053, allocations: 16 kB / 431.6 MB, free: 3.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.135e-05/0.2054, allocations: 382.8 kB / 432 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.2057, allocations: 161.9 kB / 432.1 MB, free: 2.941 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.2061, allocations: 0.4894 MB / 432.6 MB, free: 2.289 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006379/0.2067, allocations: 0.7144 MB / 433.3 MB, free: 1.414 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.2067, allocations: 4 kB / 433.3 MB, free: 1.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008718/0.2076, allocations: 0.723 MB / 434 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2076, allocations: 8 kB / 434.1 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.2076, allocations: 12 kB / 434.1 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.2077, allocations: 19.94 kB / 434.1 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005298/0.2082, allocations: 204.2 kB / 434.3 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.2082, allocations: 23.92 kB / 434.3 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.2085, allocations: 35.98 kB / 434.3 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.2086, allocations: 40 kB / 434.4 MB, free: 352 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0001958/0.2088, allocations: 225.5 kB / 434.6 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.2089, allocations: 82.97 kB / 434.7 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.209, allocations: 82.53 kB / 434.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.209, allocations: 7.938 kB / 434.8 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.209, allocations: 4 kB / 434.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.209, allocations: 3.984 kB / 434.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.2109, allocations: 1.343 MB / 436.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2109, allocations: 8.156 kB / 436.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004547/0.2113, allocations: 107.9 kB / 436.2 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.2114, allocations: 4 kB / 436.2 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.839e-05/0.2114, allocations: 19.92 kB / 436.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.2114, allocations: 4 kB / 436.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.2114, allocations: 4 kB / 436.3 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009083/0.2123, allocations: 0.7049 MB / 437 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.862e-05/0.2124, allocations: 152.1 kB / 437.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.378e-05/0.2125, allocations: 11.94 kB / 437.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.2128, allocations: 27.98 kB / 437.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.2129, allocations: 31.89 kB / 437.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.2129, allocations: 12 kB / 437.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004045/0.2133, allocations: 419 kB / 437.6 MB, free: 12.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2133, allocations: 0 / 437.6 MB, free: 12.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005621/0.2139, allocations: 136 kB / 437.7 MB, free: 12.84 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * 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 (40): * Single equations (assignments): 40 * 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.001195/0.2151, allocations: 1.289 MB / 439 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000705/0.2158, allocations: 449.6 kB / 439.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2158, allocations: 0 / 439.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002687/0.2161, allocations: 159.9 kB / 439.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006062/0.2167, allocations: 74.39 kB / 439.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005858/0.2226, allocations: 4.705 MB / 444.4 MB, free: 5.852 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.2231, allocations: 1.008 MB / 445.4 MB, free: 4.816 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004201/0.2235, allocations: 395.3 kB / 445.8 MB, free: 4.43 MB / 314.7 MB Notification: Performance of SimCode: time 4.51e-07/0.2235, allocations: 0 / 445.8 MB, free: 4.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.053/3.276, allocations: 12.05 MB / 457.8 MB, free: 8.359 MB / 330.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches