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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 173.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.5 MB / 230.7 MB, free: 7.57 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.000863/0.0008634, allocations: 97.42 kB / 281.6 MB, free: 5.309 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.1868/0.1868, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.178e-05/1.191e-05, allocations: 0 / 444.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 61.92 MB / 0.4947 GB, free: 1.234 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3888/0.5044, allocations: 88.73 MB / 0.5813 GB, free: 7.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.5047, allocations: 71.95 kB / 0.5814 GB, free: 7.699 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01807/0.5228, allocations: 7.13 MB / 0.5884 GB, free: 0.5508 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.038e-06/0.5228, allocations: 3.938 kB / 0.5884 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.5228, allocations: 11.94 kB / 0.5884 GB, free: 0.5352 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.001264/0.5241, allocations: 0.5841 MB / 0.5889 GB, free: 15.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.5242, allocations: 8.031 kB / 0.5889 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.5243, allocations: 39.53 kB / 0.589 GB, free: 15.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004472/0.5247, allocations: 272.3 kB / 0.5892 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.5248, allocations: 16 kB / 0.5893 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.5248, allocations: 20 kB / 0.5893 GB, free: 15.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005557/0.5254, allocations: 189.5 kB / 0.5895 GB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.5261, allocations: 278.3 kB / 0.5897 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.5261, allocations: 0 / 0.5897 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.633e-05/0.5262, allocations: 4 kB / 0.5897 GB, free: 15.03 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.5262, allocations: 8 kB / 0.5897 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.5285, allocations: 1.212 MB / 0.5909 GB, free: 13.74 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/0.5289, allocations: 162.6 kB / 0.5911 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.529, allocations: 59.55 kB / 0.5911 GB, free: 13.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.5291, allocations: 7.984 kB / 0.5911 GB, free: 13.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.5291, allocations: 42.5 kB / 0.5912 GB, free: 13.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.5292, allocations: 0 / 0.5912 GB, free: 13.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004548/0.5296, allocations: 125.3 kB / 0.5913 GB, free: 13.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.5297, allocations: 132.5 kB / 0.5914 GB, free: 13.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.53, allocations: 234.2 kB / 0.5916 GB, free: 12.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.5301, allocations: 25.7 kB / 0.5917 GB, free: 12.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.5303, allocations: 243.7 kB / 0.5919 GB, free: 12.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/0.5303, allocations: 51.2 kB / 0.592 GB, free: 12.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.578e-05/0.5304, allocations: 0 / 0.592 GB, free: 12.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.5305, allocations: 342.8 kB / 0.5923 GB, free: 12.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.5307, allocations: 48.56 kB / 0.5923 GB, free: 12.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.5309, allocations: 135.9 kB / 0.5925 GB, free: 12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.5311, allocations: 63.97 kB / 0.5925 GB, free: 11.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5311, allocations: 0 / 0.5925 GB, free: 11.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005274/0.5316, allocations: 217.1 kB / 0.5927 GB, free: 11.72 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.5317, allocations: 8 kB / 0.5927 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5317, allocations: 160 / 0.5927 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.5317, allocations: 8 kB / 0.5927 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005001/0.5322, allocations: 84.14 kB / 0.5928 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.716e-05/0.5322, allocations: 7.984 kB / 0.5928 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003908/0.5326, allocations: 43.66 kB / 0.5929 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.5327, allocations: 8 kB / 0.5929 GB, free: 11.56 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 0.0001077/0.5328, allocations: 112.9 kB / 0.593 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.533, allocations: 31.72 kB / 0.593 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.926e-05/0.5331, allocations: 21.64 kB / 0.593 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.5331, allocations: 7.938 kB / 0.593 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.5331, allocations: 3.938 kB / 0.593 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.5331, allocations: 4 kB / 0.593 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.5341, allocations: 0.5335 MB / 0.5936 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.5341, allocations: 0 / 0.5936 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003376/0.5345, allocations: 51.91 kB / 0.5936 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.5345, allocations: 0 / 0.5936 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.5345, allocations: 4.188 kB / 0.5936 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.5345, allocations: 11.94 kB / 0.5936 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.5346, allocations: 0 / 0.5936 GB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004437/0.535, allocations: 413 kB / 0.594 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.524e-05/0.5351, allocations: 104.8 kB / 0.5941 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.5352, allocations: 4 kB / 0.5941 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003709/0.5356, allocations: 19.97 kB / 0.5942 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.762e-05/0.5356, allocations: 15.94 kB / 0.5942 GB, free: 10.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.5357, allocations: 12 kB / 0.5942 GB, free: 10.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002159/0.5359, allocations: 174 kB / 0.5943 GB, free: 9.902 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5359, allocations: 0 / 0.5943 GB, free: 9.902 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006464/0.5366, allocations: 67.69 kB / 0.5944 GB, free: 9.836 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.0001522/0.5367, allocations: 111.2 kB / 0.5945 GB, free: 9.719 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.5371, allocations: 126.1 kB / 0.5946 GB, free: 9.598 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.5371, allocations: 0 / 0.5946 GB, free: 9.598 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.5373, allocations: 55.86 kB / 0.5947 GB, free: 9.543 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.5377, allocations: 16.89 kB / 0.5947 GB, free: 9.523 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008487/0.5385, allocations: 347.8 kB / 0.595 GB, free: 9.141 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.539, allocations: 0.7794 MB / 0.5958 GB, free: 8.332 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000176/0.5391, allocations: 21.84 kB / 0.5958 GB, free: 8.312 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.67e-05/0.5392, allocations: 19.44 kB / 0.5958 GB, free: 8.293 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5392, allocations: 0 / 0.5958 GB, free: 8.293 MB / 410.7 MB Notification: Performance of Templates: time 0.005954/0.5452, allocations: 1.354 MB / 0.5972 GB, free: 6.945 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