Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009113/0.0009113, allocations: 196.1 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.221/1.221, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007358/0.0007358, allocations: 93 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002018/0.0002018, allocations: 11.98 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1778, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.001511/0.1794, allocations: 1.702 MB / 409.8 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006421/0.18, allocations: 0.5867 MB / 410.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.291e-05/0.1801, allocations: 0 / 410.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.158e-05/0.1801, allocations: 16.77 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.72e-05/0.1802, allocations: 36.66 kB / 410.5 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.1805, allocations: 89.27 kB / 410.6 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.1806, allocations: 160.5 kB / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.1808, allocations: 42.45 kB / 410.8 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.1809, allocations: 77.33 kB / 410.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.459e-05/0.181, allocations: 67.67 kB / 410.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.181, allocations: 8 kB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.102e-05/0.1811, allocations: 16 kB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.362e-05/0.1811, allocations: 31.16 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.61e-05/0.1812, allocations: 93.41 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.1813, allocations: 128.9 kB / 411.2 MB, free: 24.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1813, allocations: 0 / 411.2 MB, free: 24.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1813, allocations: 0 / 411.2 MB, free: 24.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1813, allocations: 4 kB / 411.2 MB, free: 24.66 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.000549/0.1819, allocations: 449.5 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.1819, allocations: 11.97 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.382e-05/0.182, allocations: 46.73 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003313/0.1823, allocations: 52.72 kB / 411.7 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.704e-05/0.1824, allocations: 189.2 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.1824, allocations: 8.375 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.1824, allocations: 16.38 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.1827, allocations: 160.9 kB / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.1827, allocations: 0 / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.1828, allocations: 7.938 kB / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.1828, allocations: 4 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.183, allocations: 103.8 kB / 412.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.1837, allocations: 0.5109 MB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.184, allocations: 110.5 kB / 412.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.1842, allocations: 64.83 kB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.1842, allocations: 8.141 kB / 412.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.1842, allocations: 38.5 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1842, allocations: 4 kB / 412.9 MB, free: 22.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003945/0.1846, allocations: 149.8 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.1846, allocations: 106.8 kB / 413.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.934e-05/0.1847, allocations: 158.5 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.1848, allocations: 33.64 kB / 413.4 MB, free: 22.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.1848, allocations: 119.7 kB / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.1848, allocations: 23.7 kB / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/0.1848, allocations: 0 / 413.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.79e-05/0.1849, allocations: 326.8 kB / 413.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.185, allocations: 39.98 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.1851, allocations: 76.27 kB / 413.9 MB, free: 21.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000218/0.1854, allocations: 110.5 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1854, allocations: 0 / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002849/0.1857, allocations: 153.4 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.1857, allocations: 8 kB / 414.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1857, allocations: 0 / 414.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.1857, allocations: 0 / 414.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000548/0.1863, allocations: 87.91 kB / 414.3 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009093/0.1872, allocations: 1.402 MB / 415.7 MB, free: 19.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.1874, allocations: 27.95 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.1874, allocations: 4 kB / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 6.815e-05/0.1874, allocations: 129.7 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.207e-05/0.1875, allocations: 19.75 kB / 415.9 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003856/0.1879, allocations: 159.2 kB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1879, allocations: 0 / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.42e-07/0.1879, allocations: 4 kB / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1879, allocations: 0 / 416 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005568/0.1885, allocations: 464 kB / 416.5 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1885, allocations: 3.984 kB / 416.5 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.1886, allocations: 32.02 kB / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002187/0.1888, allocations: 36.77 kB / 416.6 MB, free: 18.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.1889, allocations: 4 kB / 416.6 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006423/0.1895, allocations: 1.296 MB / 417.9 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1895, allocations: 4.031 kB / 417.9 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004834/0.19, allocations: 305.1 kB / 418.2 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.42e-05/0.19, allocations: 88.95 kB / 418.2 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.1901, allocations: 11.98 kB / 418.3 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.1902, allocations: 12 kB / 418.3 MB, free: 16.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.1903, allocations: 7.984 kB / 418.3 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.1903, allocations: 4.062 kB / 418.3 MB, free: 16.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.409e-05/0.1903, allocations: 127.9 kB / 418.4 MB, free: 16.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1904, allocations: 0 / 418.4 MB, free: 16.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002518/0.1906, allocations: 36 kB / 418.4 MB, free: 16.72 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006185/0.1912, allocations: 0.8314 MB / 419.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005763/0.1918, allocations: 144 kB / 419.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1918, allocations: 0 / 419.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.1921, allocations: 170.7 kB / 419.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.1923, allocations: 18.34 kB / 419.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.1943, allocations: 1.17 MB / 420.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.1944, allocations: 0.7158 MB / 421.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.345e-05/0.1945, allocations: 39.42 kB / 421.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1945, allocations: 0 / 421.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.754/2.948, allocations: 2.57 MB / 424.1 MB, free: 10.93 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches