Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.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.Sensors,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|magneticPotentialDifferenceSensor.Phi|magneticFluxSensor.Phi|magneticPotentialDifferenceSensor.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors") translateModel(ModelicaTest.Magnetic.FluxTubes.Sensors,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|magneticPotentialDifferenceSensor.Phi|magneticFluxSensor.Phi|magneticPotentialDifferenceSensor.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009017/0.0009014, allocations: 97.53 kB / 18.01 MB, free: 5.734 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.00107/0.00107, allocations: 176.8 kB / 18.91 MB, free: 4.871 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.313/1.313, allocations: 223.3 MB / 243 MB, free: 212 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.1968/0.1968, allocations: 44.25 MB / 338.3 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003328, allocations: 12 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1056, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.002328/0.1079, allocations: 1.609 MB / 474.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009963/0.109, allocations: 0.5377 MB / 475.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.1091, allocations: 4 kB / 475.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.1093, allocations: 35.77 kB / 475.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.1094, allocations: 27.83 kB / 475.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001578/0.1096, allocations: 31.97 kB / 475.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001834/0.1098, allocations: 143.4 kB / 475.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.1099, allocations: 61.75 kB / 475.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.1101, allocations: 43.86 kB / 475.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.503e-05/0.1102, allocations: 59.7 kB / 475.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.407e-05/0.1102, allocations: 8 kB / 475.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.949e-05/0.1102, allocations: 8 kB / 475.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.581e-05/0.1103, allocations: 23.86 kB / 475.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.843e-05/0.1104, allocations: 85.38 kB / 475.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.1105, allocations: 123.8 kB / 475.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1105, allocations: 0 / 475.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1105, allocations: 0 / 475.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.1105, allocations: 4 kB / 475.7 MB, free: 10.51 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006016/0.1111, allocations: 425.6 kB / 476.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1112, allocations: 8.031 kB / 476.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.045e-05/0.1112, allocations: 16.75 kB / 476.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.1115, allocations: 208 kB / 476.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.1115, allocations: 12.66 kB / 476.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.1115, allocations: 16.38 kB / 476.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.1119, allocations: 152.1 kB / 476.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1119, allocations: 0 / 476.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.1119, allocations: 4 kB / 476.5 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1119, allocations: 4 kB / 476.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.1122, allocations: 116.8 kB / 476.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.1133, allocations: 0.6145 MB / 477.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.1136, allocations: 74.58 kB / 477.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.1137, allocations: 41 kB / 477.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.1137, allocations: 0 / 477.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.1137, allocations: 34.56 kB / 477.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.1138, allocations: 0 / 477.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004113/0.1142, allocations: 129.5 kB / 477.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.1142, allocations: 51.41 kB / 477.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.1143, allocations: 153.7 kB / 477.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.1144, allocations: 25.7 kB / 477.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.484e-05/0.1145, allocations: 139.4 kB / 477.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.1145, allocations: 19.75 kB / 477.9 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.1145, allocations: 17.72 kB / 477.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1146, allocations: 318.8 kB / 478.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.1148, allocations: 35.97 kB / 478.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.1149, allocations: 76.2 kB / 478.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.1151, allocations: 100.2 kB / 478.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1151, allocations: 3.938 kB / 478.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003034/0.1155, allocations: 145.5 kB / 478.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1155, allocations: 10.53 kB / 478.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1155, allocations: 0 / 478.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1155, allocations: 4 kB / 478.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.1157, allocations: 31.86 kB / 478.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.1157, allocations: 4 kB / 478.6 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.649e-05/0.1158, allocations: 11.98 kB / 478.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.1158, allocations: 15.92 kB / 478.7 MB, free: 7.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * Single equations (assignments): 11 * 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 8.649e-05/0.1159, allocations: 121.8 kB / 478.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.1159, allocations: 11.91 kB / 478.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.116, allocations: 16.3 kB / 478.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.116, allocations: 3.938 kB / 478.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.116, allocations: 256 / 478.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.116, allocations: 0 / 478.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.1162, allocations: 213.5 kB / 479 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1162, allocations: 0 / 479 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1164, allocations: 27.92 kB / 479.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1164, allocations: 0 / 479.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.1164, allocations: 4 kB / 479.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1164, allocations: 3.938 kB / 479.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1164, allocations: 0 / 479.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002808/0.1167, allocations: 191.4 kB / 479.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.1167, allocations: 85.02 kB / 479.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.1168, allocations: 0 / 479.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.1169, allocations: 15.92 kB / 479.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.1169, allocations: 4 kB / 479.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.1169, allocations: 3.984 kB / 479.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.565e-05/0.117, allocations: 113 kB / 479.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.117, allocations: 4 kB / 479.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.1173, allocations: 23.94 kB / 479.5 MB, free: 6.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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 9.121e-05/0.1174, allocations: 95.72 kB / 479.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002677/0.1177, allocations: 83.95 kB / 479.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1177, allocations: 0 / 479.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.1178, allocations: 39.91 kB / 479.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.1181, allocations: 4 kB / 479.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005297/0.1186, allocations: 371.4 kB / 480.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.1189, allocations: 0.708 MB / 480.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.615e-05/0.1189, allocations: 11.44 kB / 480.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1189, allocations: 0 / 480.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of Templates: time 0.002782/0.1217, allocations: 1.236 MB / 482 MB, free: 3.754 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches