Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001198/0.001198, allocations: 198.8 kB / 8.538 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009887/0.0009884, allocations: 90.25 kB / 286.3 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1949/0.1949, allocations: 45.14 MB / 383.3 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.302e-06/6.582e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1217, allocations: 63.24 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3637/0.4854, allocations: 89.75 MB / 0.5914 GB, free: 13.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.4857, allocations: 70.41 kB / 0.5915 GB, free: 13.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01947/0.5052, allocations: 6.981 MB / 0.5983 GB, free: 7.289 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.5052, allocations: 4 kB / 0.5983 GB, free: 7.285 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.001175/0.5064, allocations: 0.5966 MB / 0.5989 GB, free: 6.664 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.5065, allocations: 12.03 kB / 0.5989 GB, free: 6.652 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.5066, allocations: 47.44 kB / 0.5989 GB, free: 6.605 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000455/0.507, allocations: 267 kB / 0.5992 GB, free: 6.324 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.5071, allocations: 15.94 kB / 0.5992 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.895e-05/0.5071, allocations: 19.98 kB / 0.5992 GB, free: 6.289 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004175/0.5076, allocations: 198.7 kB / 0.5994 GB, free: 6.168 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.508, allocations: 269.7 kB / 0.5997 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.508, allocations: 0 / 0.5997 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.5081, allocations: 4 kB / 0.5997 GB, free: 5.941 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.5081, allocations: 8 kB / 0.5997 GB, free: 5.934 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.5099, allocations: 1.218 MB / 0.6009 GB, free: 4.824 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.5103, allocations: 163.3 kB / 0.601 GB, free: 4.652 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.848e-05/0.5103, allocations: 57.44 kB / 0.6011 GB, free: 4.598 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.5104, allocations: 7.969 kB / 0.6011 GB, free: 4.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.5104, allocations: 38.38 kB / 0.6011 GB, free: 4.547 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.5104, allocations: 0 / 0.6011 GB, free: 4.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003516/0.5108, allocations: 126.9 kB / 0.6013 GB, free: 4.438 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.5109, allocations: 136.5 kB / 0.6014 GB, free: 4.273 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.5111, allocations: 240.5 kB / 0.6016 GB, free: 4.074 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.5112, allocations: 25.7 kB / 0.6016 GB, free: 4.043 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.5113, allocations: 216.9 kB / 0.6018 GB, free: 3.844 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.885e-05/0.5113, allocations: 57.88 kB / 0.6019 GB, free: 3.793 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.5113, allocations: 0 / 0.6019 GB, free: 3.793 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.5115, allocations: 333.3 kB / 0.6022 GB, free: 3.469 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.5116, allocations: 45.94 kB / 0.6023 GB, free: 3.438 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.5118, allocations: 131.8 kB / 0.6024 GB, free: 3.293 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.5119, allocations: 77.88 kB / 0.6025 GB, free: 3.238 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.5119, allocations: 7.938 kB / 0.6025 GB, free: 3.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000366/0.5123, allocations: 217 kB / 0.6027 GB, free: 3.051 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.5123, allocations: 4.25 kB / 0.6027 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.5123, allocations: 8 kB / 0.6027 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.5124, allocations: 4.141 kB / 0.6027 GB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.5127, allocations: 83.83 kB / 0.6028 GB, free: 2.953 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.5128, allocations: 4 kB / 0.6028 GB, free: 2.949 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002902/0.513, allocations: 47.66 kB / 0.6028 GB, free: 2.902 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.5131, allocations: 11.19 kB / 0.6028 GB, free: 2.895 MB / 394.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 9.843e-05/0.5132, allocations: 120.8 kB / 0.6029 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.5133, allocations: 27.59 kB / 0.603 GB, free: 2.746 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.992e-05/0.5134, allocations: 28.89 kB / 0.603 GB, free: 2.723 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.5134, allocations: 0 / 0.603 GB, free: 2.723 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.5134, allocations: 4 kB / 0.603 GB, free: 2.719 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.5134, allocations: 3.906 kB / 0.603 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007243/0.5142, allocations: 0.5328 MB / 0.6035 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.5142, allocations: 4 kB / 0.6035 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.5144, allocations: 43.97 kB / 0.6036 GB, free: 2.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.5144, allocations: 4.094 kB / 0.6036 GB, free: 2.133 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.5144, allocations: 8 kB / 0.6036 GB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/0.5144, allocations: 3.969 kB / 0.6036 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5145, allocations: 11.94 kB / 0.6036 GB, free: 2.109 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003458/0.5148, allocations: 408 kB / 0.604 GB, free: 1.676 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.569e-05/0.5149, allocations: 100.8 kB / 0.6041 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/0.515, allocations: 4 kB / 0.6041 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.5152, allocations: 23.61 kB / 0.6041 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.388e-05/0.5153, allocations: 19.88 kB / 0.6041 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.5153, allocations: 6.812 kB / 0.6041 GB, free: 1.512 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001675/0.5155, allocations: 179.6 kB / 0.6043 GB, free: 1.371 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000385/0.5159, allocations: 71.69 kB / 0.6044 GB, free: 1.301 MB / 394.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.0001491/0.516, allocations: 98.81 kB / 0.6045 GB, free: 1.199 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002775/0.5163, allocations: 135.3 kB / 0.6046 GB, free: 1.102 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5163, allocations: 0 / 0.6046 GB, free: 1.102 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.827e-05/0.5164, allocations: 54.86 kB / 0.6047 GB, free: 1.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.5167, allocations: 15.34 kB / 0.6047 GB, free: 1.055 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000859/0.5176, allocations: 372.4 kB / 0.605 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.5181, allocations: 0.8169 MB / 0.6058 GB, free: 15.84 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5181, allocations: 3.938 kB / 0.6058 GB, free: 15.84 MB / 410.7 MB Notification: Performance of Templates: time 0.005315/0.5234, allocations: 1.9 MB / 0.6077 GB, free: 13.95 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches