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: translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") translateModel(ModelicaTest.Magnetic.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001142/0.001142, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.375/1.375, allocations: 222.9 MB / 242.9 MB, free: 15.17 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.2059/0.2059, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 62.47 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.106, allocations: 60.82 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004345/0.1104, allocations: 2.646 MB / 472.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.112, allocations: 0.7439 MB / 473.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/0.1122, allocations: 4 kB / 473.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002852/0.1125, allocations: 79.36 kB / 473.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000344/0.1129, allocations: 99.17 kB / 473.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.1133, allocations: 111.8 kB / 473.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005212/0.1138, allocations: 410.5 kB / 474 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.1141, allocations: 151.4 kB / 474.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/0.1143, allocations: 155.4 kB / 474.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.1146, allocations: 167.2 kB / 474.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.118e-05/0.1147, allocations: 36 kB / 474.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.281e-05/0.1147, allocations: 32 kB / 474.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.1148, allocations: 75.69 kB / 474.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.115, allocations: 183.1 kB / 474.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.1154, allocations: 414.5 kB / 475.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1154, allocations: 4 kB / 475.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1154, allocations: 0 / 475.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.1154, allocations: 0 / 475.2 MB, free: 9.066 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.001155/0.1166, allocations: 0.6628 MB / 475.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1166, allocations: 8.031 kB / 475.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.214e-05/0.1167, allocations: 44.47 kB / 475.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.1171, allocations: 272.7 kB / 476.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.1171, allocations: 25.38 kB / 476.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/0.1172, allocations: 32.38 kB / 476.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006829/0.1179, allocations: 366.2 kB / 476.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1179, allocations: 0 / 476.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.1179, allocations: 16 kB / 476.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.1179, allocations: 11.94 kB / 476.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006579/0.1186, allocations: 267.7 kB / 476.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.1207, allocations: 1.35 MB / 478.2 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.1213, allocations: 194.6 kB / 478.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.1215, allocations: 83.56 kB / 478.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.1215, allocations: 11.92 kB / 478.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.1216, allocations: 38.56 kB / 478.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.934e-06/0.1216, allocations: 0 / 478.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008349/0.1224, allocations: 249.7 kB / 478.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.1225, allocations: 128.5 kB / 478.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.1229, allocations: 336.4 kB / 479.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.1229, allocations: 25.7 kB / 479.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.123, allocations: 231.6 kB / 479.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.976e-05/0.1231, allocations: 59.27 kB / 479.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.707e-05/0.1232, allocations: 57.89 kB / 479.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1234, allocations: 346.8 kB / 480 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.1236, allocations: 76.5 kB / 480 MB, free: 3.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.1239, allocations: 176.1 kB / 480.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005013/0.1244, allocations: 246.9 kB / 480.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1244, allocations: 0 / 480.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006811/0.1251, allocations: 313.2 kB / 480.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1251, allocations: 6.5 kB / 480.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1252, allocations: 4 kB / 480.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.1252, allocations: 4 kB / 480.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.1256, allocations: 100.1 kB / 480.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.1257, allocations: 4 kB / 480.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002914/0.126, allocations: 47.56 kB / 480.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.126, allocations: 8 kB / 480.9 MB, free: 2.93 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.0001507/0.1261, allocations: 157.6 kB / 481.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.1262, allocations: 23.72 kB / 481.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.376e-05/0.1263, allocations: 42.41 kB / 481.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1263, allocations: 0 / 481.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.1264, allocations: 7.938 kB / 481.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1264, allocations: 3.984 kB / 481.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008091/0.1272, allocations: 0.5876 MB / 481.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1272, allocations: 4 kB / 481.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003073/0.1275, allocations: 51.95 kB / 481.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.473e-06/0.1275, allocations: 4 kB / 481.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.1276, allocations: 11.92 kB / 481.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1276, allocations: 3.938 kB / 481.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1276, allocations: 4.125 kB / 481.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.1282, allocations: 393.5 kB / 482.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.489e-05/0.1283, allocations: 120.5 kB / 482.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.137e-05/0.1283, allocations: 7.938 kB / 482.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.1286, allocations: 15.98 kB / 482.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.1286, allocations: 19.97 kB / 482.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.1287, allocations: 4 kB / 482.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.1289, allocations: 227.1 kB / 482.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1289, allocations: 4 kB / 482.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004184/0.1293, allocations: 71.75 kB / 482.7 MB, free: 1.055 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.0001242/0.1295, allocations: 99.19 kB / 482.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005929/0.1301, allocations: 200.1 kB / 483 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.1301, allocations: 0 / 483 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.1303, allocations: 79.89 kB / 483 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.1308, allocations: 29.31 kB / 483.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.1319, allocations: 0.5711 MB / 483.6 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.1323, allocations: 0.7753 MB / 484.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.081e-05/0.1324, allocations: 23.44 kB / 484.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1324, allocations: 0 / 484.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of Templates: time 0.005754/0.1382, allocations: 3.116 MB / 487.5 MB, free: 12.07 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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