Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008626/0.0008626, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.00106/0.00106, allocations: 170.3 kB / 23.95 MB, free: 0.6094 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.9333/0.9333, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2518/0.2518, allocations: 34.25 MB / 294.9 MB, free: 0.7266 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.985e-06/2.985e-06, allocations: 0 / 442.2 MB, free: 1.699 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.441e-05/2.739e-05, allocations: 2.281 kB / 442.2 MB, free: 1.695 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.2066/0.2066, allocations: 2.511 MB / 444.7 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.2076, allocations: 0.7668 MB / 445.4 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2077, allocations: 9.281 kB / 445.4 MB, free: 42.83 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.2079, allocations: 66.62 kB / 445.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.2081, allocations: 105.2 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.2084, allocations: 119.5 kB / 445.7 MB, free: 42.71 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.2087, allocations: 426.2 kB / 446.1 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.2089, allocations: 97.77 kB / 446.2 MB, free: 42.6 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.2091, allocations: 232.5 kB / 446.5 MB, free: 42.55 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.2093, allocations: 116.7 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.74e-05/0.2093, allocations: 34.56 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.22e-05/0.2094, allocations: 33.31 kB / 446.6 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.46e-05/0.2094, allocations: 77.84 kB / 446.7 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.479e-05/0.2095, allocations: 123.1 kB / 446.8 MB, free: 42.41 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000362/0.2099, allocations: 436.2 kB / 447.3 MB, free: 42.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.2099, allocations: 0 / 447.3 MB, free: 42.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.2099, allocations: 0 / 447.3 MB, free: 42.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2099, allocations: 0 / 447.3 MB, free: 42.24 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.0008263/0.2107, allocations: 0.6022 MB / 447.9 MB, free: 41.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.2108, allocations: 8.656 kB / 447.9 MB, free: 41.79 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.295e-05/0.2108, allocations: 75.28 kB / 448 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.2109, allocations: 44.66 kB / 448 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.2112, allocations: 226.4 kB / 448.2 MB, free: 41.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.2112, allocations: 26.84 kB / 448.2 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.49e-05/0.2112, allocations: 29.72 kB / 448.3 MB, free: 41.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003714/0.2116, allocations: 364.3 kB / 448.6 MB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2116, allocations: 0 / 448.6 MB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.2116, allocations: 10.91 kB / 448.6 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2117, allocations: 13.25 kB / 448.7 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.212, allocations: 271.7 kB / 448.9 MB, free: 41.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.213, allocations: 1.229 MB / 450.1 MB, free: 40.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.2133, allocations: 195.5 kB / 450.3 MB, free: 40.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.2134, allocations: 76.78 kB / 450.4 MB, free: 40.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.2135, allocations: 2.812 kB / 450.4 MB, free: 40.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.2135, allocations: 40.78 kB / 450.5 MB, free: 40.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.784e-06/0.2135, allocations: 2.844 kB / 450.5 MB, free: 40.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004577/0.2139, allocations: 259.2 kB / 450.7 MB, free: 39.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.214, allocations: 131.5 kB / 450.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.2142, allocations: 341.6 kB / 451.2 MB, free: 39.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.2142, allocations: 32.58 kB / 451.2 MB, free: 39.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.487e-05/0.2143, allocations: 246 kB / 451.4 MB, free: 39.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.2143, allocations: 65.88 kB / 451.5 MB, free: 39.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/0.2144, allocations: 57.33 kB / 451.6 MB, free: 39.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.208e-05/0.2144, allocations: 338.6 kB / 451.9 MB, free: 38.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.2146, allocations: 76.75 kB / 452 MB, free: 38.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.2147, allocations: 161.8 kB / 452.1 MB, free: 38.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.215, allocations: 253.6 kB / 452.4 MB, free: 38.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.215, allocations: 7.172 kB / 452.4 MB, free: 38.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000353/0.2153, allocations: 303 kB / 452.7 MB, free: 38.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.2154, allocations: 5.781 kB / 452.7 MB, free: 38.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.2154, allocations: 6.062 kB / 452.7 MB, free: 38.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.2154, allocations: 5.625 kB / 452.7 MB, free: 38.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.2156, allocations: 90.73 kB / 452.8 MB, free: 38.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.2156, allocations: 12.83 kB / 452.8 MB, free: 38.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.2157, allocations: 48.14 kB / 452.8 MB, free: 38.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.2158, allocations: 16.8 kB / 452.9 MB, free: 38.48 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 9.842e-05/0.2159, allocations: 151.3 kB / 453 MB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.115e-05/0.2159, allocations: 37.77 kB / 453 MB, free: 38.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.701e-05/0.2159, allocations: 30.22 kB / 453.1 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.216, allocations: 2.938 kB / 453.1 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.216, allocations: 6.938 kB / 453.1 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.216, allocations: 3.188 kB / 453.1 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005028/0.2165, allocations: 0.5425 MB / 453.6 MB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.2165, allocations: 5.938 kB / 453.6 MB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.2166, allocations: 54.03 kB / 453.7 MB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2166, allocations: 3.031 kB / 453.7 MB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.2166, allocations: 12.38 kB / 453.7 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.2166, allocations: 6.188 kB / 453.7 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.2166, allocations: 7.141 kB / 453.7 MB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.2169, allocations: 393.4 kB / 454.1 MB, free: 37.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.031e-05/0.2169, allocations: 28.34 kB / 454.1 MB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.217, allocations: 10.09 kB / 454.1 MB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.2171, allocations: 18.55 kB / 454.2 MB, free: 37.49 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/0.2171, allocations: 20.11 kB / 454.2 MB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-06/0.2171, allocations: 4.844 kB / 454.2 MB, free: 37.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001373/0.2173, allocations: 241.2 kB / 454.4 MB, free: 37.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2173, allocations: 0 / 454.4 MB, free: 37.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000256/0.2175, allocations: 73.53 kB / 454.5 MB, free: 37.34 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.0004009/0.2179, allocations: 0.9264 MB / 455.4 MB, free: 36.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002854/0.2182, allocations: 186.6 kB / 455.6 MB, free: 36.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2182, allocations: 0.5 kB / 455.6 MB, free: 36.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.2183, allocations: 79.33 kB / 455.7 MB, free: 36.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.2186, allocations: 27.34 kB / 455.7 MB, free: 36.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.2208, allocations: 2.975 MB / 458.7 MB, free: 34.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.546e-05/0.2209, allocations: 174.1 kB / 458.8 MB, free: 34.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.151e-05/0.221, allocations: 20.67 kB / 458.9 MB, free: 34.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.233e-05/0.2211, allocations: 107.8 kB / 459 MB, free: 34.14 MB / 410.7 MB Notification: Performance of SimCode: time 8.52e-07/0.2211, allocations: 4 kB / 459 MB, free: 34.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.2389, allocations: 5.687 MB / 464.7 MB, free: 32.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.719/6.958, allocations: 7.188 kB / 464.7 MB, free: 32.84 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.986432429403067]