Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008859/0.0008859, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9086/0.9086, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2595/0.2595, allocations: 34.24 MB / 294.8 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.414e-06/2.414e-06, allocations: 0 / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/3.109e-05, allocations: 2.281 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.1758/0.1758, allocations: 2.518 MB / 444.6 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000989/0.1768, allocations: 0.7612 MB / 445.4 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.177, allocations: 6.5 kB / 445.4 MB, free: 42.82 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001894/0.1771, allocations: 71.17 kB / 445.5 MB, free: 42.78 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001795/0.1773, allocations: 113.9 kB / 445.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.1775, allocations: 110.1 kB / 445.7 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.1778, allocations: 429 kB / 446.1 MB, free: 42.6 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.178, allocations: 93.75 kB / 446.2 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.1782, allocations: 231.8 kB / 446.4 MB, free: 42.53 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.1783, allocations: 124.4 kB / 446.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.1783, allocations: 34.34 kB / 446.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.361e-05/0.1783, allocations: 32.62 kB / 446.6 MB, free: 42.48 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.1784, allocations: 75.73 kB / 446.7 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.949e-05/0.1784, allocations: 120.1 kB / 446.8 MB, free: 42.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002535/0.1787, allocations: 445.2 kB / 447.3 MB, free: 42.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1787, allocations: 0 / 447.3 MB, free: 42.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1787, allocations: 0 / 447.3 MB, free: 42.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1787, allocations: 0 / 447.3 MB, free: 42.21 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.0006349/0.1793, allocations: 0.5978 MB / 447.9 MB, free: 41.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1794, allocations: 8.656 kB / 447.9 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.765e-05/0.1794, allocations: 72.39 kB / 447.9 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.1795, allocations: 48.31 kB / 448 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.1798, allocations: 227 kB / 448.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1798, allocations: 21 kB / 448.2 MB, free: 41.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.1798, allocations: 35.72 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003938/0.1802, allocations: 365.6 kB / 448.6 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.1802, allocations: 0 / 448.6 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.1802, allocations: 14.78 kB / 448.6 MB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.1802, allocations: 8.469 kB / 448.6 MB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003367/0.1806, allocations: 265.1 kB / 448.9 MB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.1816, allocations: 1.226 MB / 450.1 MB, free: 40.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.1819, allocations: 191.1 kB / 450.3 MB, free: 40.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.182, allocations: 81.84 kB / 450.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.182, allocations: 2.938 kB / 450.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.182, allocations: 44.28 kB / 450.4 MB, free: 40.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.182, allocations: 0 / 450.4 MB, free: 40.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004406/0.1825, allocations: 258.3 kB / 450.7 MB, free: 39.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.1825, allocations: 134.6 kB / 450.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.1827, allocations: 343.3 kB / 451.2 MB, free: 39.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.357e-06/0.1827, allocations: 29.7 kB / 451.2 MB, free: 39.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.919e-05/0.1828, allocations: 251.7 kB / 451.4 MB, free: 39.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.1828, allocations: 55.83 kB / 451.5 MB, free: 39.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.662e-05/0.1829, allocations: 53.2 kB / 451.5 MB, free: 39.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.673e-05/0.1829, allocations: 342.8 kB / 451.9 MB, free: 38.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.183, allocations: 83.27 kB / 451.9 MB, free: 38.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.1832, allocations: 176.7 kB / 452.1 MB, free: 38.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.1834, allocations: 243.2 kB / 452.4 MB, free: 38.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1835, allocations: 6.875 kB / 452.4 MB, free: 38.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003488/0.1838, allocations: 307.9 kB / 452.7 MB, free: 38.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1838, allocations: 5.75 kB / 452.7 MB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1838, allocations: 2.812 kB / 452.7 MB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.1838, allocations: 8.891 kB / 452.7 MB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.1841, allocations: 89.86 kB / 452.8 MB, free: 38.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1841, allocations: 6.125 kB / 452.8 MB, free: 38.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.1842, allocations: 54.64 kB / 452.8 MB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.1842, allocations: 8.656 kB / 452.8 MB, free: 38.46 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 8.765e-05/0.1843, allocations: 160.1 kB / 453 MB, free: 38.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.96e-05/0.1843, allocations: 34.2 kB / 453 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.089e-05/0.1844, allocations: 30.78 kB / 453.1 MB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1844, allocations: 2.312 kB / 453.1 MB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1844, allocations: 2.719 kB / 453.1 MB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1844, allocations: 3.375 kB / 453.1 MB, free: 38.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.1849, allocations: 0.5441 MB / 453.6 MB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1849, allocations: 0 / 453.6 MB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.185, allocations: 57.61 kB / 453.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.185, allocations: 0 / 453.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.185, allocations: 3 kB / 453.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.185, allocations: 6.078 kB / 453.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.185, allocations: 10.69 kB / 453.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.1853, allocations: 391.7 kB / 454.1 MB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.988e-05/0.1853, allocations: 36 kB / 454.1 MB, free: 37.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.1853, allocations: 12.17 kB / 454.1 MB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.1854, allocations: 12.14 kB / 454.1 MB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.1855, allocations: 24.44 kB / 454.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.1855, allocations: 7.406 kB / 454.2 MB, free: 37.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001275/0.1856, allocations: 241 kB / 454.4 MB, free: 37.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1856, allocations: 4 kB / 454.4 MB, free: 37.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002562/0.1859, allocations: 73.53 kB / 454.5 MB, free: 37.3 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.0003966/0.1863, allocations: 0.9198 MB / 455.4 MB, free: 36.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002957/0.1866, allocations: 186.5 kB / 455.6 MB, free: 36.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1866, allocations: 0 / 455.6 MB, free: 36.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.1867, allocations: 81.31 kB / 455.7 MB, free: 36.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.187, allocations: 26.7 kB / 455.7 MB, free: 36.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.1892, allocations: 2.984 MB / 458.7 MB, free: 34.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.661e-05/0.1893, allocations: 168 kB / 458.8 MB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.809e-05/0.1893, allocations: 25.83 kB / 458.9 MB, free: 34.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.1894, allocations: 105.4 kB / 459 MB, free: 34.1 MB / 410.7 MB Notification: Performance of SimCode: time 7.61e-07/0.1894, allocations: 1.688 kB / 459 MB, free: 34.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.2067, allocations: 5.677 MB / 464.6 MB, free: 32.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.792/6.999, allocations: 7.125 kB / 464.6 MB, free: 32.81 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.971681906841695]