Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008015/0.0008015, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009167/0.0009167, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9208/0.9208, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2522/0.2522, allocations: 32.79 MB / 293.5 MB, free: 1.23 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.344e-06/2.344e-06, allocations: 0 / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.278e-05/2.513e-05, allocations: 2.281 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002879/0.002905, allocations: 2.513 MB / 442.1 MB, free: 1.75 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.004105, allocations: 0.7592 MB / 442.8 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.004247, allocations: 8 kB / 442.8 MB, free: 0.9766 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.004446, allocations: 71.3 kB / 442.9 MB, free: 0.9062 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.004635, allocations: 107.1 kB / 443 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.004866, allocations: 107.8 kB / 443.1 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003027/0.005169, allocations: 437.3 kB / 443.6 MB, free: 276 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.005342, allocations: 95.84 kB / 443.6 MB, free: 176 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1791/0.1844, allocations: 225.9 kB / 443.9 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.1846, allocations: 121.4 kB / 444 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.627e-05/0.1847, allocations: 35 kB / 444 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.017e-05/0.1847, allocations: 32.09 kB / 444 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.94e-05/0.1847, allocations: 80.33 kB / 444.1 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.657e-05/0.1848, allocations: 120.7 kB / 444.2 MB, free: 43.54 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000308/0.1851, allocations: 435.5 kB / 444.7 MB, free: 43.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1851, allocations: 0 / 444.7 MB, free: 43.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1851, allocations: 2.219 kB / 444.7 MB, free: 43.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1851, allocations: 3.031 kB / 444.7 MB, free: 43.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0005923/0.1857, allocations: 0.6027 MB / 445.3 MB, free: 43.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1858, allocations: 11.66 kB / 445.3 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.164e-05/0.1858, allocations: 65.28 kB / 445.4 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.1859, allocations: 45.03 kB / 445.4 MB, free: 43.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.1861, allocations: 224.4 kB / 445.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.1861, allocations: 21.56 kB / 445.6 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.1861, allocations: 38.84 kB / 445.7 MB, free: 42.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/0.1865, allocations: 362 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1865, allocations: 2.781 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.1865, allocations: 15.75 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.1866, allocations: 8.906 kB / 446.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003134/0.1869, allocations: 266.7 kB / 446.3 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009814/0.1878, allocations: 1.222 MB / 447.5 MB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.1881, allocations: 198.8 kB / 447.7 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.827e-05/0.1882, allocations: 78.62 kB / 447.8 MB, free: 41.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.1882, allocations: 6.031 kB / 447.8 MB, free: 41.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.272e-05/0.1883, allocations: 45.56 kB / 447.9 MB, free: 41.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1883, allocations: 0 / 447.9 MB, free: 41.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004197/0.1887, allocations: 252.3 kB / 448.1 MB, free: 41.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.1887, allocations: 134.3 kB / 448.2 MB, free: 41.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.1889, allocations: 346 kB / 448.6 MB, free: 41.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.995e-06/0.1889, allocations: 25.7 kB / 448.6 MB, free: 41.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.1e-05/0.189, allocations: 255.1 kB / 448.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.189, allocations: 56.06 kB / 448.9 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.189, allocations: 53.86 kB / 449 MB, free: 41.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.126e-05/0.1891, allocations: 352 kB / 449.3 MB, free: 41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1892, allocations: 76.83 kB / 449.4 MB, free: 40.99 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.1893, allocations: 171.3 kB / 449.5 MB, free: 40.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.1896, allocations: 247.9 kB / 449.8 MB, free: 40.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1896, allocations: 6.125 kB / 449.8 MB, free: 40.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003214/0.1899, allocations: 307.6 kB / 450.1 MB, free: 40.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1899, allocations: 5.688 kB / 450.1 MB, free: 40.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1899, allocations: 5.953 kB / 450.1 MB, free: 40.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1899, allocations: 5.688 kB / 450.1 MB, free: 40.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.1901, allocations: 90.55 kB / 450.2 MB, free: 40.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.1901, allocations: 12.81 kB / 450.2 MB, free: 40.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.1902, allocations: 43.47 kB / 450.3 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.1902, allocations: 15.64 kB / 450.3 MB, free: 40.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.585e-05/0.1903, allocations: 151.3 kB / 450.4 MB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.1904, allocations: 37.36 kB / 450.5 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.753e-05/0.1904, allocations: 34.73 kB / 450.5 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1904, allocations: 2.969 kB / 450.5 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1904, allocations: 0 / 450.5 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1904, allocations: 3.422 kB / 450.5 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004064/0.1908, allocations: 0.5434 MB / 451 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1908, allocations: 2.938 kB / 451 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.1909, allocations: 56.5 kB / 451.1 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1909, allocations: 0 / 451.1 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.191, allocations: 2.812 kB / 451.1 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.191, allocations: 6.203 kB / 451.1 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.191, allocations: 12.56 kB / 451.1 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.1912, allocations: 394.9 kB / 451.5 MB, free: 39.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.519e-05/0.1912, allocations: 28.28 kB / 451.5 MB, free: 39.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.1912, allocations: 9.875 kB / 451.5 MB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.1914, allocations: 17.59 kB / 451.6 MB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.1914, allocations: 25.36 kB / 451.6 MB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.1914, allocations: 6.875 kB / 451.6 MB, free: 39.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000117/0.1915, allocations: 236.5 kB / 451.8 MB, free: 39.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1915, allocations: 0 / 451.8 MB, free: 39.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002382/0.1918, allocations: 81.16 kB / 451.9 MB, free: 39.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003328/0.1921, allocations: 0.9155 MB / 452.8 MB, free: 38.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002749/0.1924, allocations: 193.2 kB / 453 MB, free: 38.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1924, allocations: 2.812 kB / 453 MB, free: 38.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.1925, allocations: 86.73 kB / 453.1 MB, free: 38.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.1928, allocations: 22.03 kB / 453.1 MB, free: 38.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.1948, allocations: 2.981 MB / 456.1 MB, free: 36.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.466e-05/0.1949, allocations: 170.9 kB / 456.3 MB, free: 36.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.04e-05/0.1949, allocations: 23.62 kB / 456.3 MB, free: 36.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.185e-05/0.195, allocations: 109.9 kB / 456.4 MB, free: 36.29 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.195, allocations: 0 / 456.4 MB, free: 36.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01559/0.2106, allocations: 5.696 MB / 462.1 MB, free: 35.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.726/6.937, allocations: 4 kB / 462.1 MB, free: 35.02 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.889074484817684]