Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001631/0.001635, allocations: 185.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.965/1.965, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 89.3 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003847, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3462, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1467/0.4929, allocations: 90.82 MB / 465.4 MB, free: 5.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/0.4933, allocations: 83.95 kB / 465.4 MB, free: 5.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1282/0.6215, allocations: 30.68 MB / 496.1 MB, free: 6.832 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6216, allocations: 0 / 496.1 MB, free: 6.832 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.663e-05/0.6216, allocations: 20 kB / 496.1 MB, free: 6.812 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.005373/0.627, allocations: 1.285 MB / 497.4 MB, free: 5.473 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.6271, allocations: 12.03 kB / 497.4 MB, free: 5.461 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004896/0.632, allocations: 474.2 kB / 497.9 MB, free: 4.996 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.6336, allocations: 0.5034 MB / 498.4 MB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.6338, allocations: 82.3 kB / 498.5 MB, free: 4.367 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002974/0.6341, allocations: 112 kB / 498.6 MB, free: 4.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003379/0.6375, allocations: 1.011 MB / 499.6 MB, free: 3.219 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.363e-05/0.6376, allocations: 3.906 kB / 499.6 MB, free: 3.215 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/0.6378, allocations: 48 kB / 499.7 MB, free: 3.168 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.6378, allocations: 28 kB / 499.7 MB, free: 3.141 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003756/0.6416, allocations: 1.044 MB / 0.489 GB, free: 2.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.326/0.9676, allocations: 3.89 MB / 0.4928 GB, free: 92.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0037/0.9714, allocations: 2.058 MB / 0.4948 GB, free: 91.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002359/0.9717, allocations: 98.94 kB / 0.4949 GB, free: 91.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001474/0.9732, allocations: 479.8 kB / 0.4954 GB, free: 91.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.947e-06/0.9732, allocations: 0 / 0.4954 GB, free: 91.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.01938/0.9926, allocations: 3.956 MB / 0.4992 GB, free: 90.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.9927, allocations: 141.7 kB / 0.4994 GB, free: 90.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.9939, allocations: 369.1 kB / 0.4997 GB, free: 90.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002743/0.9942, allocations: 49.47 kB / 0.4998 GB, free: 90.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005258/0.9947, allocations: 485 kB / 0.5002 GB, free: 89.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007706/0.9955, allocations: 422.1 kB / 0.5006 GB, free: 89.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.9957, allocations: 23.28 kB / 0.5006 GB, free: 89.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.9959, allocations: 361.3 kB / 0.501 GB, free: 89.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002161/0.9981, allocations: 360.5 kB / 0.5013 GB, free: 89.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/1.001, allocations: 0.5716 MB / 0.5019 GB, free: 88.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/1.003, allocations: 445.1 kB / 0.5023 GB, free: 88.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.549e-05/1.004, allocations: 4.875 kB / 0.5023 GB, free: 88.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.007791/1.011, allocations: 1.395 MB / 0.5037 GB, free: 88.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.551e-05/1.011, allocations: 5.875 kB / 0.5037 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.396e-05/1.012, allocations: 7.719 kB / 0.5037 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002548/1.014, allocations: 347 kB / 0.504 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/1.017, allocations: 214.5 kB / 0.5042 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01605/1.033, allocations: 7.797 MB / 0.5118 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/1.035, allocations: 57.27 kB / 0.5119 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000257/1.036, allocations: 45.78 kB / 0.5119 GB, free: 83.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009935/1.037, allocations: 261.8 kB / 0.5122 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003037/1.037, allocations: 73.64 kB / 0.5123 GB, free: 83.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006722/1.044, allocations: 1.293 MB / 0.5135 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.79e-05/1.044, allocations: 15.72 kB / 0.5135 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.286e-05/1.044, allocations: 7.672 kB / 0.5135 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.886e-05/1.044, allocations: 11.72 kB / 0.5136 GB, free: 82.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/1.055, allocations: 2.43 MB / 0.5159 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.55e-05/1.055, allocations: 0 / 0.5159 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002141/1.058, allocations: 152.6 kB / 0.5161 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/1.06, allocations: 331.3 kB / 0.5164 GB, free: 81.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002853/1.06, allocations: 26.44 kB / 0.5164 GB, free: 81.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02161/1.082, allocations: 7.541 MB / 0.5238 GB, free: 75.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.082, allocations: 3.609 kB / 0.5238 GB, free: 75.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005271/1.087, allocations: 1.788 MB / 0.5255 GB, free: 74.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005769/1.088, allocations: 230 kB / 0.5257 GB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/1.088, allocations: 23.91 kB / 0.5258 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/1.089, allocations: 40.97 kB / 0.5258 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004459/1.09, allocations: 87.08 kB / 0.5259 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002036/1.09, allocations: 35.89 kB / 0.5259 GB, free: 73.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007505/1.091, allocations: 273.6 kB / 0.5262 GB, free: 73.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.091, allocations: 0 / 0.5262 GB, free: 73.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003854/1.095, allocations: 339.8 kB / 0.5265 GB, free: 73.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008042/1.096, allocations: 197.6 kB / 0.5267 GB, free: 73.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00892/1.105, allocations: 1.637 MB / 0.5283 GB, free: 72.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/1.105, allocations: 0 / 0.5283 GB, free: 72.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004655/1.109, allocations: 1.156 MB / 0.5294 GB, free: 72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/1.111, allocations: 59.52 kB / 0.5295 GB, free: 71.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/1.123, allocations: 2.993 MB / 0.5324 GB, free: 70.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/1.123, allocations: 1.048 MB / 0.5334 GB, free: 69.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000487/1.124, allocations: 64.62 kB / 0.5335 GB, free: 69.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.413e-06/1.124, allocations: 0 / 0.5335 GB, free: 69.66 MB / 378.7 MB Notification: Performance of Templates: time 0.0367/1.161, allocations: 25.29 MB / 0.5582 GB, free: 51.52 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches