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.00116/0.00116, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001155/0.001155, allocations: 192 kB / 18.55 MB, free: 4.566 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.454/1.454, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2277/0.2277, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 64.48 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1298, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.005252/0.1351, allocations: 2.653 MB / 472 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.1367, allocations: 0.7519 MB / 472.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003257/0.1371, allocations: 11.94 kB / 472.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003191/0.1374, allocations: 71.38 kB / 472.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004505/0.1379, allocations: 99.23 kB / 472.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.1384, allocations: 107.8 kB / 473 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006763/0.1391, allocations: 414.5 kB / 473.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00032/0.1394, allocations: 154.9 kB / 473.6 MB, free: 10 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003432/0.1398, allocations: 147.4 kB / 473.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.14, allocations: 175.2 kB / 473.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.496e-05/0.1401, allocations: 32 kB / 473.9 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.731e-05/0.1402, allocations: 32 kB / 474 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.416e-05/0.1403, allocations: 87.67 kB / 474.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.1405, allocations: 175.1 kB / 474.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004321/0.1409, allocations: 414.5 kB / 474.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1409, allocations: 0 / 474.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1409, allocations: 0 / 474.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.644e-05/0.1409, allocations: 0 / 474.6 MB, free: 8.961 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.001231/0.1422, allocations: 0.6667 MB / 475.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.1422, allocations: 8.031 kB / 475.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.55e-05/0.1423, allocations: 70.72 kB / 475.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.1424, allocations: 44.41 kB / 475.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003337/0.1428, allocations: 272.6 kB / 475.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.1428, allocations: 29.38 kB / 475.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.1429, allocations: 28.38 kB / 475.8 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006771/0.1436, allocations: 362 kB / 476.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1436, allocations: 3.984 kB / 476.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.1436, allocations: 12 kB / 476.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.1436, allocations: 11.94 kB / 476.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006263/0.1443, allocations: 271.8 kB / 476.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.1463, allocations: 1.342 MB / 477.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005098/0.1468, allocations: 202.5 kB / 477.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.147, allocations: 83.5 kB / 478 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.814e-05/0.1471, allocations: 8 kB / 478 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.1471, allocations: 30.56 kB / 478.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.1471, allocations: 4 kB / 478.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008403/0.148, allocations: 249.1 kB / 478.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.633e-05/0.1481, allocations: 128.5 kB / 478.4 MB, free: 4.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/0.1487, allocations: 332.6 kB / 478.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.1487, allocations: 33.64 kB / 478.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.1489, allocations: 231.6 kB / 479 MB, free: 4.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.149, allocations: 59.27 kB / 479.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.1491, allocations: 57.89 kB / 479.1 MB, free: 4.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1493, allocations: 346.7 kB / 479.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.1495, allocations: 76.5 kB / 479.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002851/0.1498, allocations: 176.7 kB / 479.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007567/0.1506, allocations: 250.9 kB / 480 MB, free: 3.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/0.1506, allocations: 3.984 kB / 480 MB, free: 3.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008761/0.1515, allocations: 301 kB / 480.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1515, allocations: 8 kB / 480.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.1516, allocations: 0 / 480.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.1516, allocations: 4 kB / 480.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004301/0.152, allocations: 95.86 kB / 480.4 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.1521, allocations: 8.125 kB / 480.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.1524, allocations: 51.56 kB / 480.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.1524, allocations: 12.28 kB / 480.4 MB, free: 2.742 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.0001524/0.1526, allocations: 153.7 kB / 480.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.1527, allocations: 31.62 kB / 480.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.417e-05/0.1528, allocations: 34.39 kB / 480.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1528, allocations: 3.938 kB / 480.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1528, allocations: 4 kB / 480.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.1528, allocations: 3.984 kB / 480.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008799/0.1537, allocations: 0.5876 MB / 481.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.1538, allocations: 4 kB / 481.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.1541, allocations: 56.05 kB / 481.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.1541, allocations: 7.984 kB / 481.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.1541, allocations: 7.938 kB / 481.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.165e-06/0.1541, allocations: 0 / 481.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1541, allocations: 4.156 kB / 481.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006661/0.1548, allocations: 394.5 kB / 481.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.163e-05/0.1549, allocations: 108.8 kB / 481.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.1549, allocations: 7.938 kB / 481.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.1552, allocations: 16.05 kB / 481.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/0.1553, allocations: 23.97 kB / 481.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.1553, allocations: 4 kB / 481.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00029/0.1556, allocations: 227.1 kB / 482.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1556, allocations: 0 / 482.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004724/0.1561, allocations: 75.75 kB / 482.2 MB, free: 0.875 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.0009204/0.157, allocations: 0.9368 MB / 483.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006217/0.1577, allocations: 192.1 kB / 483.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.1577, allocations: 4.125 kB / 483.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.158, allocations: 83.81 kB / 483.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.1585, allocations: 25.38 kB / 483.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/0.1629, allocations: 2.956 MB / 486.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.1633, allocations: 0.7751 MB / 487.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.1634, allocations: 30.06 kB / 487.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.1636, allocations: 107.4 kB / 487.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1636, allocations: 0 / 487.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.1903, allocations: 4.74 MB / 492 MB, free: 6.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.822, allocations: 2.656 kB / 492 MB, free: 6.844 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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