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.001582/0.001582, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.002194/0.002194, allocations: 207.2 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.518/1.518, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.2475/0.2475, allocations: 46.97 MB / 360.9 MB, free: 4.047 MB / 286.1 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 0.001961/0.001961, allocations: 63.91 kB / 0.4961 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3751, allocations: 66.04 MB / 0.5606 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004059/0.3792, allocations: 2.512 MB / 0.563 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.3807, allocations: 0.7399 MB / 0.5638 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.3809, allocations: 11.94 kB / 0.5638 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002596/0.3811, allocations: 79.36 kB / 0.5638 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002759/0.3814, allocations: 107.2 kB / 0.5639 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.3817, allocations: 111.8 kB / 0.5641 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004577/0.3822, allocations: 426.2 kB / 0.5645 GB, free: 272 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.3824, allocations: 107.8 kB / 0.5646 GB, free: 160 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.3826, allocations: 155.5 kB / 0.5647 GB, free: 4 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.3828, allocations: 167.2 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.255e-05/0.3829, allocations: 32 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.391e-05/0.3829, allocations: 36 kB / 0.5649 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.612e-05/0.383, allocations: 75.7 kB / 0.565 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001763/0.3832, allocations: 147.2 kB / 0.5651 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004831/0.3837, allocations: 436.1 kB / 0.5656 GB, free: 15.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3837, allocations: 3.938 kB / 0.5656 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3837, allocations: 3.938 kB / 0.5656 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.3837, allocations: 0 / 0.5656 GB, free: 15.12 MB / 414.1 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.001155/0.3848, allocations: 0.6105 MB / 0.5662 GB, free: 14.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3849, allocations: 8.031 kB / 0.5662 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.52e-05/0.385, allocations: 70.72 kB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.983e-05/0.385, allocations: 40.7 kB / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004063/0.3854, allocations: 232.9 kB / 0.5665 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.3855, allocations: 21.38 kB / 0.5665 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.3855, allocations: 36.38 kB / 0.5666 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006895/0.3862, allocations: 362 kB / 0.5669 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.3862, allocations: 0 / 0.5669 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.3863, allocations: 16 kB / 0.5669 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3863, allocations: 8 kB / 0.5669 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006392/0.3869, allocations: 267.8 kB / 0.5672 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.389, allocations: 1.222 MB / 0.5684 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.3895, allocations: 198.5 kB / 0.5686 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.3897, allocations: 75.52 kB / 0.5686 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.3897, allocations: 8 kB / 0.5686 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.3898, allocations: 38.5 kB / 0.5687 GB, free: 11.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.3898, allocations: 0 / 0.5687 GB, free: 11.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007859/0.3906, allocations: 249.3 kB / 0.5689 GB, free: 11.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.64e-05/0.3906, allocations: 136.5 kB / 0.5691 GB, free: 11.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003846/0.391, allocations: 345.6 kB / 0.5694 GB, free: 10.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.3911, allocations: 29.69 kB / 0.5694 GB, free: 10.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.3912, allocations: 248.1 kB / 0.5696 GB, free: 10.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.3913, allocations: 55.58 kB / 0.5697 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/0.3914, allocations: 57.94 kB / 0.5698 GB, free: 10.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3916, allocations: 346.9 kB / 0.5701 GB, free: 10.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.3918, allocations: 84.44 kB / 0.5702 GB, free: 10.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002966/0.3921, allocations: 164.2 kB / 0.5703 GB, free: 9.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004995/0.3926, allocations: 250.9 kB / 0.5706 GB, free: 9.625 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3926, allocations: 0 / 0.5706 GB, free: 9.625 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006505/0.3932, allocations: 313 kB / 0.5709 GB, free: 9.312 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3933, allocations: 8 kB / 0.5709 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3933, allocations: 0 / 0.5709 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.3933, allocations: 4 kB / 0.5709 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004233/0.3937, allocations: 92.11 kB / 0.571 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.3937, allocations: 8 kB / 0.571 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.394, allocations: 48.22 kB / 0.571 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.394, allocations: 15.98 kB / 0.571 GB, free: 9.141 MB / 414.1 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 0.0001461/0.3942, allocations: 149.7 kB / 0.5712 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3943, allocations: 36.05 kB / 0.5712 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.687e-05/0.3943, allocations: 34.44 kB / 0.5712 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3943, allocations: 7.984 kB / 0.5712 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3943, allocations: 4 kB / 0.5712 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3943, allocations: 4 kB / 0.5713 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008026/0.3951, allocations: 0.5438 MB / 0.5718 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3952, allocations: 4 kB / 0.5718 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/0.3954, allocations: 59.88 kB / 0.5718 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.3954, allocations: 0 / 0.5718 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.3955, allocations: 11.94 kB / 0.5719 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3955, allocations: 0 / 0.5719 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3955, allocations: 8.156 kB / 0.5719 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005582/0.396, allocations: 393.7 kB / 0.5722 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.996e-05/0.3961, allocations: 35.7 kB / 0.5723 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.3961, allocations: 11.94 kB / 0.5723 GB, free: 7.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.3964, allocations: 15.97 kB / 0.5723 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.3964, allocations: 15.92 kB / 0.5723 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.3964, allocations: 8 kB / 0.5723 GB, free: 7.707 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002423/0.3967, allocations: 243.2 kB / 0.5726 GB, free: 7.473 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3967, allocations: 0 / 0.5726 GB, free: 7.473 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003883/0.3971, allocations: 67.89 kB / 0.5726 GB, free: 7.406 MB / 414.1 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.0008707/0.3979, allocations: 0.9342 MB / 0.5735 GB, free: 6.426 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005258/0.3985, allocations: 187.7 kB / 0.5737 GB, free: 6.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3985, allocations: 0 / 0.5737 GB, free: 6.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002452/0.3987, allocations: 84.64 kB / 0.5738 GB, free: 6.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.3991, allocations: 25.42 kB / 0.5738 GB, free: 6.137 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.4032, allocations: 2.997 MB / 0.5767 GB, free: 2.957 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001711/0.4033, allocations: 172.8 kB / 0.5769 GB, free: 2.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.745e-05/0.4034, allocations: 26.12 kB / 0.5769 GB, free: 2.746 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.4036, allocations: 107.4 kB / 0.577 GB, free: 2.641 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4036, allocations: 0 / 0.577 GB, free: 2.641 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03186/0.4355, allocations: 5.631 MB / 0.5825 GB, free: 13.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.64, allocations: 3.938 kB / 0.5825 GB, free: 13.14 MB / 430.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/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: 14.677604426979087]