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.0008542/0.0008541, allocations: 95.03 kB / 17.35 MB, free: 6.371 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.000944/0.000944, allocations: 175.5 kB / 18.25 MB, free: 5.523 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.221/1.221, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1834/0.1834, allocations: 44.25 MB / 337.7 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002602, allocations: 8 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1008, allocations: 61.93 MB / 472.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.002782/0.1036, allocations: 2.333 MB / 474.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1049, allocations: 0.7287 MB / 475.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001864/0.1051, allocations: 8 kB / 475.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.1053, allocations: 47.64 kB / 475.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002655/0.1056, allocations: 83.42 kB / 475.6 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.1059, allocations: 99.89 kB / 475.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005001/0.1064, allocations: 397.3 kB / 476 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/0.1066, allocations: 132.1 kB / 476.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003378/0.107, allocations: 127.5 kB / 476.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.1072, allocations: 155.2 kB / 476.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.313e-05/0.1073, allocations: 16 kB / 476.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.392e-05/0.1074, allocations: 16 kB / 476.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.908e-05/0.1074, allocations: 67.69 kB / 476.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001955/0.1076, allocations: 188.8 kB / 476.7 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003449/0.108, allocations: 390.4 kB / 477.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.108, allocations: 0 / 477.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.108, allocations: 0 / 477.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.108, allocations: 0 / 477.1 MB, free: 8.434 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.0009824/0.109, allocations: 0.6145 MB / 477.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.1091, allocations: 12.03 kB / 477.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001257/0.1092, allocations: 66.72 kB / 477.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.706e-05/0.1093, allocations: 44.47 kB / 477.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.1096, allocations: 280.4 kB / 478.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.1096, allocations: 29.38 kB / 478.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.1097, allocations: 28.38 kB / 478.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006731/0.1103, allocations: 378 kB / 478.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1104, allocations: 0 / 478.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.1104, allocations: 12 kB / 478.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.1104, allocations: 11.98 kB / 478.6 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006534/0.1111, allocations: 287.7 kB / 478.9 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.1131, allocations: 1.369 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004818/0.1136, allocations: 202.6 kB / 480.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.1138, allocations: 95.52 kB / 480.5 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.1138, allocations: 7.922 kB / 480.5 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1139, allocations: 38.56 kB / 480.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.1139, allocations: 0 / 480.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008055/0.1147, allocations: 285.1 kB / 480.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/0.1148, allocations: 136.5 kB / 481 MB, free: 4.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.1151, allocations: 320.5 kB / 481.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.1151, allocations: 29.7 kB / 481.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.1153, allocations: 235.6 kB / 481.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.1153, allocations: 55.28 kB / 481.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.1154, allocations: 29.7 kB / 481.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1155, allocations: 346.7 kB / 482 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.1158, allocations: 92.5 kB / 482.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002894/0.1161, allocations: 184.1 kB / 482.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000529/0.1166, allocations: 270.9 kB / 482.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1166, allocations: 0 / 482.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006717/0.1173, allocations: 329.1 kB / 482.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1173, allocations: 4 kB / 482.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1173, allocations: 4 kB / 482.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1173, allocations: 4 kB / 482.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.1178, allocations: 107.9 kB / 482.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.1178, allocations: 4 kB / 482.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.1181, allocations: 59.5 kB / 483 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.1181, allocations: 8 kB / 483 MB, free: 2.109 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.0001464/0.1182, allocations: 157.7 kB / 483.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.341e-05/0.1183, allocations: 27.62 kB / 483.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.299e-05/0.1184, allocations: 38.41 kB / 483.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1184, allocations: 0 / 483.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1184, allocations: 8.5 kB / 483.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1184, allocations: 3.984 kB / 483.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007279/0.1192, allocations: 0.5837 MB / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1192, allocations: 4 kB / 483.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002825/0.1195, allocations: 67.94 kB / 483.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.1195, allocations: 8.156 kB / 483.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.1195, allocations: 11.94 kB / 483.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.1195, allocations: 3.938 kB / 483.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.1195, allocations: 4 kB / 483.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005747/0.1201, allocations: 414.5 kB / 484.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.61e-05/0.1202, allocations: 112.7 kB / 484.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.1202, allocations: 7.938 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.1205, allocations: 27.97 kB / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.1205, allocations: 12.27 kB / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1205, allocations: 8 kB / 484.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002174/0.1208, allocations: 227.1 kB / 484.7 MB, free: 280 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1208, allocations: 0 / 484.7 MB, free: 280 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.1211, allocations: 67.84 kB / 484.8 MB, free: 212 kB / 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.0008749/0.122, allocations: 0.9571 MB / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005289/0.1226, allocations: 211.8 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1226, allocations: 0.5 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002337/0.1228, allocations: 99.81 kB / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.1233, allocations: 25.38 kB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004264/0.1276, allocations: 3.174 MB / 489.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.128, allocations: 0.7791 MB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.1281, allocations: 21.95 kB / 490 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.1282, allocations: 103.4 kB / 490.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1282, allocations: 0 / 490.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01503/0.1433, allocations: 4.361 MB / 494.5 MB, free: 6.344 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002369/0.1436, allocations: 193.6 kB / 494.7 MB, free: 6.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.048, allocations: 0 / 494.7 MB, free: 6.09 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