Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009578/0.0009578, allocations: 196.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007592/0.0007593, allocations: 100.4 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002252/0.0002253, allocations: 12 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1766/0.1768, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.001982/0.1789, allocations: 2.466 MB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008762/0.1798, allocations: 0.6621 MB / 411.3 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.1799, allocations: 8 kB / 411.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.1801, allocations: 49.52 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.1802, allocations: 72.53 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.1804, allocations: 63.88 kB / 411.5 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002534/0.1807, allocations: 347.7 kB / 411.8 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.1809, allocations: 131 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.1811, allocations: 116.3 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.1812, allocations: 136.6 kB / 412.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.092e-05/0.1813, allocations: 16 kB / 412.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.875e-05/0.1813, allocations: 16 kB / 412.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.691e-05/0.1813, allocations: 55.77 kB / 412.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.1815, allocations: 165 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.1816, allocations: 280.4 kB / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1817, allocations: 4 kB / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1817, allocations: 0 / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1817, allocations: 0 / 412.7 MB, free: 23.11 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006912/0.1824, allocations: 0.5653 MB / 413.3 MB, free: 22.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1824, allocations: 8.031 kB / 413.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.86e-05/0.1825, allocations: 70.72 kB / 413.3 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.692e-05/0.1825, allocations: 36.56 kB / 413.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.1828, allocations: 259.7 kB / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.1828, allocations: 21.03 kB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/0.1828, allocations: 32.38 kB / 413.7 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004497/0.1833, allocations: 290.2 kB / 414 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1833, allocations: 0 / 414 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.1834, allocations: 12 kB / 414 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1834, allocations: 8 kB / 414 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.1838, allocations: 214.5 kB / 414.2 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.185, allocations: 0.9869 MB / 415.2 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.1852, allocations: 166.6 kB / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.1854, allocations: 84.81 kB / 415.4 MB, free: 20.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.1854, allocations: 4 kB / 415.4 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.482e-05/0.1854, allocations: 34.88 kB / 415.5 MB, free: 20.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.273e-06/0.1855, allocations: 0 / 415.5 MB, free: 20.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004836/0.1859, allocations: 229.2 kB / 415.7 MB, free: 19.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.186, allocations: 59.41 kB / 415.7 MB, free: 19.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.1861, allocations: 206.9 kB / 415.9 MB, free: 19.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.1861, allocations: 29.7 kB / 416 MB, free: 19.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.881e-05/0.1862, allocations: 196 kB / 416.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.1863, allocations: 63.09 kB / 416.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-06/0.1863, allocations: 4 kB / 416.2 MB, free: 19.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.865e-05/0.1863, allocations: 330.8 kB / 416.6 MB, free: 19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.1865, allocations: 71.95 kB / 416.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.1866, allocations: 115 kB / 416.7 MB, free: 18.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002789/0.1869, allocations: 193.8 kB / 416.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1869, allocations: 3.938 kB / 416.9 MB, free: 18.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003749/0.1873, allocations: 252 kB / 417.2 MB, free: 18.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.1873, allocations: 11.97 kB / 417.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1873, allocations: 4 kB / 417.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.1874, allocations: 3.938 kB / 417.2 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.1876, allocations: 67.91 kB / 417.3 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.1877, allocations: 7.922 kB / 417.3 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1878, allocations: 23.84 kB / 417.3 MB, free: 18.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.1878, allocations: 8 kB / 417.3 MB, free: 18.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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 9.705e-05/0.1879, allocations: 157.6 kB / 417.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.188, allocations: 23.72 kB / 417.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003518/0.1883, allocations: 193.8 kB / 417.7 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1883, allocations: 8 kB / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1883, allocations: 0 / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1884, allocations: 3.984 kB / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.1886, allocations: 313.4 kB / 418 MB, free: 17.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1886, allocations: 0 / 418 MB, free: 17.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.1889, allocations: 59.89 kB / 418 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1889, allocations: 0 / 418 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.1889, allocations: 8 kB / 418 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1889, allocations: 0 / 418 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1889, allocations: 0 / 418 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/0.1894, allocations: 359.1 kB / 418.4 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.1894, allocations: 108.8 kB / 418.5 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.675e-05/0.1895, allocations: 0 / 418.5 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.1896, allocations: 19.98 kB / 418.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.1897, allocations: 11.97 kB / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.1897, allocations: 8.125 kB / 418.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.648e-05/0.1898, allocations: 152.4 kB / 418.7 MB, free: 16.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.1898, allocations: 0 / 418.7 MB, free: 16.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002738/0.1901, allocations: 83.62 kB / 418.8 MB, free: 16.63 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0006173/0.1907, allocations: 0.8984 MB / 419.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.1911, allocations: 172.2 kB / 419.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1911, allocations: 0 / 419.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1912, allocations: 79.84 kB / 419.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.1916, allocations: 30.58 kB / 419.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.1936, allocations: 1.87 MB / 421.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.1938, allocations: 0.7637 MB / 422.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1939, allocations: 91.41 kB / 422.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1939, allocations: 0 / 422.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.463/2.657, allocations: 3.761 MB / 426.4 MB, free: 8.844 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches