Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.000943/0.000943, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.283/1.283, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007689/0.0007692, allocations: 86.66 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.086e-05/2.088e-05, allocations: 0 / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07606/0.0761, allocations: 47.57 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2836/0.3598, allocations: 90.73 MB / 460.7 MB, free: 2.684 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.36, allocations: 85.61 kB / 460.8 MB, free: 2.641 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07315/0.4332, allocations: 30.61 MB / 491.4 MB, free: 5.129 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4332, allocations: 0 / 491.4 MB, free: 5.129 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.179e-05/0.4332, allocations: 23.98 kB / 491.5 MB, free: 5.105 MB / 362.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.00302/0.4363, allocations: 1.243 MB / 492.7 MB, free: 3.812 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4363, allocations: 11.97 kB / 492.7 MB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002895/0.4392, allocations: 466.3 kB / 493.2 MB, free: 3.344 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007258/0.44, allocations: 0.4957 MB / 493.7 MB, free: 2.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.315e-05/0.44, allocations: 86.3 kB / 493.8 MB, free: 2.715 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/0.4402, allocations: 112 kB / 493.9 MB, free: 2.605 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.442, allocations: 0.9601 MB / 494.8 MB, free: 1.617 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/0.442, allocations: 7.906 kB / 494.8 MB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.4421, allocations: 48 kB / 494.9 MB, free: 1.562 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.4421, allocations: 28 kB / 494.9 MB, free: 1.535 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.4438, allocations: 0.9697 MB / 495.9 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005702/0.4495, allocations: 3.909 MB / 499.8 MB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.4516, allocations: 2.024 MB / 0.49 GB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006617/0.4522, allocations: 419.5 kB / 0.4904 GB, free: 9.711 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/0.4524, allocations: 101.9 kB / 0.4905 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007459/0.4531, allocations: 465.6 kB / 0.491 GB, free: 9.105 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.277e-06/0.4531, allocations: 0 / 0.491 GB, free: 9.105 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.007057/0.4602, allocations: 3.5 MB / 0.4944 GB, free: 5.523 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.4603, allocations: 222.8 kB / 0.4946 GB, free: 5.258 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004423/0.4608, allocations: 363 kB / 0.495 GB, free: 4.898 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.079e-05/0.4609, allocations: 45.7 kB / 0.495 GB, free: 4.848 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.4611, allocations: 439.4 kB / 0.4954 GB, free: 4.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.4614, allocations: 421.8 kB / 0.4958 GB, free: 3.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.4615, allocations: 24 kB / 0.4959 GB, free: 3.969 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.4616, allocations: 378.8 kB / 0.4962 GB, free: 3.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005328/0.4622, allocations: 322.6 kB / 0.4965 GB, free: 3.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000666/0.4628, allocations: 0.5586 MB / 0.4971 GB, free: 2.621 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006555/0.4635, allocations: 414.2 kB / 0.4975 GB, free: 2.223 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.585e-06/0.4635, allocations: 7.953 kB / 0.4975 GB, free: 2.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002216/0.4658, allocations: 1.353 MB / 0.4988 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.4658, allocations: 8 kB / 0.4988 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.4658, allocations: 12.08 kB / 0.4988 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008347/0.4666, allocations: 348 kB / 0.4991 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008723/0.4675, allocations: 215.6 kB / 0.4993 GB, free: 264 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006796/0.4743, allocations: 7.654 MB / 0.5068 GB, free: 8.066 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007494/0.4751, allocations: 55.95 kB / 0.5069 GB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.718e-05/0.4752, allocations: 55.92 kB / 0.5069 GB, free: 7.957 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete 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.000203/0.4754, allocations: 176.7 kB / 0.5071 GB, free: 7.777 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.4755, allocations: 71.16 kB / 0.5072 GB, free: 7.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002236/0.4778, allocations: 1.219 MB / 0.5084 GB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.4778, allocations: 12 kB / 0.5084 GB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.4778, allocations: 8 kB / 0.5084 GB, free: 6.449 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4778, allocations: 11.97 kB / 0.5084 GB, free: 6.438 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003666/0.4815, allocations: 2.646 MB / 0.511 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4815, allocations: 0 / 0.511 GB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006886/0.4822, allocations: 147.8 kB / 0.5111 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007887/0.483, allocations: 335.1 kB / 0.5114 GB, free: 3.227 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.067e-05/0.4831, allocations: 24 kB / 0.5115 GB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006467/0.4896, allocations: 7.393 MB / 0.5187 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4896, allocations: 0 / 0.5187 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002693/0.4923, allocations: 1.754 MB / 0.5204 GB, free: 9.465 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003502/0.4927, allocations: 228 kB / 0.5206 GB, free: 9.223 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.635e-05/0.4928, allocations: 28 kB / 0.5206 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005262/0.4933, allocations: 39.97 kB / 0.5207 GB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/0.4935, allocations: 92.83 kB / 0.5208 GB, free: 9.062 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.305e-05/0.4935, allocations: 39.98 kB / 0.5208 GB, free: 9.023 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002999/0.4939, allocations: 269.2 kB / 0.5211 GB, free: 8.766 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4939, allocations: 0 / 0.5211 GB, free: 8.766 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001145/0.495, allocations: 332 kB / 0.5214 GB, free: 8.441 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * 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,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003589/0.4954, allocations: 232.4 kB / 0.5216 GB, free: 8.203 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002262/0.4977, allocations: 1.563 MB / 0.5231 GB, free: 6.586 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4977, allocations: 0 / 0.5231 GB, free: 6.586 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.4991, allocations: 1.122 MB / 0.5242 GB, free: 5.414 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.4994, allocations: 51.34 kB / 0.5243 GB, free: 5.367 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00498/0.5044, allocations: 2.014 MB / 0.5262 GB, free: 3.316 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/0.5051, allocations: 1.036 MB / 0.5272 GB, free: 2.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005718/0.5057, allocations: 110.3 kB / 0.5273 GB, free: 2.141 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.5058, allocations: 55.42 kB / 0.5274 GB, free: 2.086 MB / 410.7 MB Notification: Performance of SimCode: time 4.578e-06/0.5058, allocations: 0 / 0.5274 GB, free: 2.086 MB / 410.7 MB Notification: Performance of Templates: time 0.1982/0.704, allocations: 10.47 MB / 0.5376 GB, free: 112.1 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches