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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 112.3 kB / 17.33 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 193.3 kB / 18.25 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.217/1.217, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1752/0.1752, allocations: 44.18 MB / 336.3 MB, free: 2.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 60.94 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08374, allocations: 60.84 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003437/0.08721, allocations: 2.703 MB / 471.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.0883, allocations: 0.7364 MB / 472.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.08847, allocations: 4 kB / 472.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.0887, allocations: 59.62 kB / 472.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002198/0.08894, allocations: 87.42 kB / 472.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.08919, allocations: 83.92 kB / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003506/0.08954, allocations: 414.5 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.08975, allocations: 158.9 kB / 473 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.08995, allocations: 151.5 kB / 473.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.09011, allocations: 175.1 kB / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.09016, allocations: 32 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.09021, allocations: 32 kB / 473.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.043e-05/0.09027, allocations: 75.7 kB / 473.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.09041, allocations: 183.1 kB / 473.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.09071, allocations: 414.5 kB / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.09072, allocations: 0 / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09072, allocations: 0 / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.09074, allocations: 0 / 474.1 MB, free: 9.32 MB / 350.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.0009067/0.09165, allocations: 0.6628 MB / 474.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.09169, allocations: 8.031 kB / 474.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.309e-05/0.09176, allocations: 74.72 kB / 474.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.77e-05/0.09183, allocations: 48.45 kB / 474.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.09207, allocations: 272.6 kB / 475.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.0921, allocations: 21.38 kB / 475.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/0.09215, allocations: 36.38 kB / 475.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005887/0.09274, allocations: 362 kB / 475.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.09276, allocations: 3.938 kB / 475.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.09279, allocations: 16 kB / 475.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.09281, allocations: 15.98 kB / 475.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005539/0.09337, allocations: 263.7 kB / 475.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.09512, allocations: 1.346 MB / 477.2 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004187/0.09555, allocations: 194.6 kB / 477.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.09574, allocations: 79.52 kB / 477.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.09579, allocations: 4 kB / 477.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.09581, allocations: 42.5 kB / 477.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.09582, allocations: 4 kB / 477.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006925/0.09652, allocations: 245.5 kB / 477.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.09658, allocations: 140.6 kB / 477.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.09688, allocations: 320.5 kB / 478.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.0969, allocations: 25.7 kB / 478.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.09704, allocations: 243.6 kB / 478.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.61e-05/0.09708, allocations: 51.28 kB / 478.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.848e-05/0.09716, allocations: 53.89 kB / 478.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.09728, allocations: 346.7 kB / 478.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.0975, allocations: 80.52 kB / 479 MB, free: 4.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.09775, allocations: 168.2 kB / 479.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004383/0.0982, allocations: 251 kB / 479.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.09821, allocations: 0 / 479.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005879/0.0988, allocations: 312.9 kB / 479.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.09882, allocations: 8 kB / 479.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.09883, allocations: 0 / 479.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.09885, allocations: 8 kB / 479.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003694/0.09923, allocations: 96.11 kB / 479.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.09924, allocations: 4 kB / 479.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002375/0.09948, allocations: 43.58 kB / 479.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.09951, allocations: 12 kB / 479.9 MB, free: 3.113 MB / 350.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.0001219/0.09964, allocations: 149.7 kB / 480 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.93e-05/0.09973, allocations: 39.55 kB / 480.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.883e-05/0.09979, allocations: 34.69 kB / 480.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.0998, allocations: 4 kB / 480.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.09982, allocations: 4 kB / 480.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.09983, allocations: 7.922 kB / 480.1 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000661/0.1005, allocations: 0.5837 MB / 480.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1005, allocations: 0 / 480.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.1008, allocations: 64.09 kB / 480.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.1008, allocations: 0 / 480.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.1008, allocations: 7.938 kB / 480.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1008, allocations: 4 kB / 480.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1008, allocations: 3.938 kB / 480.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004757/0.1013, allocations: 397.7 kB / 481.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.764e-05/0.1014, allocations: 104.8 kB / 481.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.798e-05/0.1014, allocations: 23.92 kB / 481.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.1016, allocations: 15.98 kB / 481.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.1017, allocations: 15.92 kB / 481.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.1017, allocations: 8 kB / 481.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.1019, allocations: 223.1 kB / 481.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1019, allocations: 0 / 481.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.1023, allocations: 71.75 kB / 481.6 MB, free: 1.242 MB / 350.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.0007007/0.103, allocations: 0.9346 MB / 482.5 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004654/0.1034, allocations: 204.3 kB / 482.7 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1035, allocations: 0 / 482.7 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.1037, allocations: 79.91 kB / 482.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003981/0.1041, allocations: 20.44 kB / 482.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.1074, allocations: 3.101 MB / 485.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.1077, allocations: 0.7751 MB / 486.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.1079, allocations: 26.12 kB / 486.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.108, allocations: 99.41 kB / 486.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.108, allocations: 0 / 486.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8997/1.008, allocations: 4.561 MB / 491.4 MB, free: 7.309 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/1.008, allocations: 186.7 kB / 491.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.655/3.663, allocations: 0 / 491.6 MB, free: 7.059 MB / 366.1 MB (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 --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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches