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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009964/0.0009964, allocations: 183.2 kB / 8.519 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 221.4 MB / 230.3 MB, free: 7.637 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008539/0.0008537, allocations: 95.03 kB / 281.2 MB, free: 5.434 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1736/0.1736, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.111e-06/6.161e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 61.92 MB / 0.4941 GB, free: 1.617 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.319/0.433, allocations: 88.65 MB / 0.5807 GB, free: 8.113 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.4333, allocations: 73.95 kB / 0.5807 GB, free: 8.074 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01862/0.4519, allocations: 6.837 MB / 0.5874 GB, free: 1.227 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.4519, allocations: 8 kB / 0.5874 GB, free: 1.219 MB / 394.7 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.0009243/0.4529, allocations: 0.6035 MB / 0.588 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.4529, allocations: 11.97 kB / 0.588 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.453, allocations: 39.53 kB / 0.5881 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.4533, allocations: 272.3 kB / 0.5883 GB, free: 212 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.4534, allocations: 15.91 kB / 0.5883 GB, free: 196 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.656e-05/0.4534, allocations: 16 kB / 0.5884 GB, free: 180 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003933/0.4538, allocations: 189.6 kB / 0.5885 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000433/0.4543, allocations: 282.3 kB / 0.5888 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.4543, allocations: 3.938 kB / 0.5888 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.4543, allocations: 0 / 0.5888 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.4543, allocations: 8 kB / 0.5888 GB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.456, allocations: 1.204 MB / 0.59 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.4563, allocations: 162.6 kB / 0.5901 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.959e-05/0.4564, allocations: 51.62 kB / 0.5902 GB, free: 14.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.4565, allocations: 4 kB / 0.5902 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.4565, allocations: 38.5 kB / 0.5902 GB, free: 14.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.4565, allocations: 0 / 0.5902 GB, free: 14.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003277/0.4568, allocations: 129.3 kB / 0.5904 GB, free: 13.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.4569, allocations: 136.5 kB / 0.5905 GB, free: 13.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.4571, allocations: 227.3 kB / 0.5907 GB, free: 13.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.4572, allocations: 29.64 kB / 0.5907 GB, free: 13.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.4573, allocations: 223.3 kB / 0.5909 GB, free: 13.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.4574, allocations: 51.3 kB / 0.591 GB, free: 13.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/0.4574, allocations: 0 / 0.591 GB, free: 13.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4575, allocations: 342.8 kB / 0.5913 GB, free: 12.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.449e-05/0.4576, allocations: 44.56 kB / 0.5914 GB, free: 12.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.4577, allocations: 128 kB / 0.5915 GB, free: 12.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.4579, allocations: 75.94 kB / 0.5916 GB, free: 12.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.4579, allocations: 0 / 0.5916 GB, free: 12.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003517/0.4582, allocations: 229.1 kB / 0.5918 GB, free: 12.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.4583, allocations: 4 kB / 0.5918 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.4583, allocations: 4 kB / 0.5918 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.4583, allocations: 4 kB / 0.5918 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003595/0.4587, allocations: 88.05 kB / 0.5919 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.4587, allocations: 4 kB / 0.5919 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.459, allocations: 43.66 kB / 0.5919 GB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/0.459, allocations: 12 kB / 0.5919 GB, free: 12.25 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.25e-05/0.4591, allocations: 116.8 kB / 0.592 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.4592, allocations: 27.66 kB / 0.5921 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.445e-05/0.4593, allocations: 29.42 kB / 0.5921 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4593, allocations: 0 / 0.5921 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4593, allocations: 4 kB / 0.5921 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.4593, allocations: 0 / 0.5921 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006589/0.46, allocations: 0.5375 MB / 0.5926 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.46, allocations: 4 kB / 0.5926 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/0.4602, allocations: 47.91 kB / 0.5927 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.4602, allocations: 8.156 kB / 0.5927 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.4602, allocations: 0 / 0.5927 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.4602, allocations: 7.906 kB / 0.5927 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4603, allocations: 4 kB / 0.5927 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000301/0.4606, allocations: 393 kB / 0.5931 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.991e-05/0.4606, allocations: 112.7 kB / 0.5932 GB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.4607, allocations: 4 kB / 0.5932 GB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.4609, allocations: 23.98 kB / 0.5932 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.461, allocations: 19.91 kB / 0.5932 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.461, allocations: 4 kB / 0.5932 GB, free: 10.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001626/0.4612, allocations: 179.1 kB / 0.5934 GB, free: 10.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003695/0.4616, allocations: 71.69 kB / 0.5935 GB, free: 10.52 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001096/0.4617, allocations: 99.19 kB / 0.5936 GB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002394/0.4619, allocations: 127.9 kB / 0.5937 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4619, allocations: 0.5 kB / 0.5937 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.489e-05/0.462, allocations: 55.88 kB / 0.5937 GB, free: 10.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.4623, allocations: 24.88 kB / 0.5938 GB, free: 10.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006999/0.463, allocations: 358.6 kB / 0.5941 GB, free: 9.816 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003969/0.4634, allocations: 0.8164 MB / 0.5949 GB, free: 8.977 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4634, allocations: 3.938 kB / 0.5949 GB, free: 8.973 MB / 410.7 MB Notification: Performance of Templates: time 0.004606/0.468, allocations: 1.898 MB / 0.5968 GB, free: 7.086 MB / 410.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches