Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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) 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(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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 176.6 kB / 8.346 MB, free: 0.7266 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.326/1.326, allocations: 221.5 MB / 230.3 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.0009151/0.000915, allocations: 87.61 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.954e-05/1.956e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 50.41 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3128/0.4159, allocations: 92.47 MB / 479.9 MB, free: 2.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4162, allocations: 83.95 kB / 480 MB, free: 2.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06933/0.4856, allocations: 29.87 MB / 0.4979 GB, free: 4.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4856, allocations: 0 / 0.4979 GB, free: 4.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.213e-05/0.4857, allocations: 20 kB / 0.4979 GB, free: 4.07 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003116/0.4888, allocations: 1.235 MB / 0.4991 GB, free: 2.789 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.4888, allocations: 11.98 kB / 0.4992 GB, free: 2.777 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002346/0.4912, allocations: 394.4 kB / 0.4995 GB, free: 2.391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007729/0.492, allocations: 491.6 kB / 0.5 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.239e-05/0.492, allocations: 40 kB / 0.5 GB, free: 1.828 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.4922, allocations: 71.91 kB / 0.5001 GB, free: 1.758 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001527/0.4937, allocations: 0.8479 MB / 0.5009 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.4951, allocations: 0.7516 MB / 0.5017 GB, free: 132 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/0.4951, allocations: 0 / 0.5017 GB, free: 132 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/0.4952, allocations: 4 kB / 0.5017 GB, free: 128 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.4952, allocations: 27.98 kB / 0.5017 GB, free: 100 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005472/0.5007, allocations: 3.548 MB / 0.5052 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001512/0.5023, allocations: 1.473 MB / 0.5066 GB, free: 10.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005255/0.5028, allocations: 383.6 kB / 0.507 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.5029, allocations: 101.9 kB / 0.5071 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006295/0.5036, allocations: 424.1 kB / 0.5075 GB, free: 9.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 3.356e-06/0.5036, allocations: 0 / 0.5075 GB, free: 9.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.0068/0.5104, allocations: 3.389 MB / 0.5108 GB, free: 6.305 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.5106, allocations: 222.9 kB / 0.511 GB, free: 6.039 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.5109, allocations: 310.1 kB / 0.5113 GB, free: 5.727 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.101e-05/0.511, allocations: 25.7 kB / 0.5113 GB, free: 5.695 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.5113, allocations: 419.6 kB / 0.5117 GB, free: 5.277 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002973/0.5117, allocations: 397.9 kB / 0.5121 GB, free: 4.883 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.5117, allocations: 0 / 0.5121 GB, free: 4.883 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.5119, allocations: 378.7 kB / 0.5125 GB, free: 4.504 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004593/0.5123, allocations: 286.6 kB / 0.5127 GB, free: 4.223 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006366/0.513, allocations: 496.9 kB / 0.5132 GB, free: 3.668 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.5141, allocations: 0.5037 MB / 0.5137 GB, free: 3.164 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.5141, allocations: 0 / 0.5137 GB, free: 3.164 MB / 394.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002417/0.5165, allocations: 1.313 MB / 0.515 GB, free: 1.832 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.5166, allocations: 9.25 kB / 0.515 GB, free: 1.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.5166, allocations: 4 kB / 0.515 GB, free: 1.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000849/0.5174, allocations: 348.6 kB / 0.5153 GB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008097/0.5183, allocations: 199.7 kB / 0.5155 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006626/0.5249, allocations: 7.349 MB / 0.5227 GB, free: 9.465 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008337/0.5258, allocations: 27.83 kB / 0.5227 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/0.5259, allocations: 47.98 kB / 0.5228 GB, free: 9.391 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002183/0.5261, allocations: 133 kB / 0.5229 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.5262, allocations: 71.23 kB / 0.523 GB, free: 9.184 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/0.5286, allocations: 1.218 MB / 0.5241 GB, free: 7.949 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.5287, allocations: 19.98 kB / 0.5242 GB, free: 7.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.5287, allocations: 8 kB / 0.5242 GB, free: 7.922 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.5287, allocations: 7.922 kB / 0.5242 GB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.5323, allocations: 2.495 MB / 0.5266 GB, free: 5.348 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.303e-06/0.5324, allocations: 4 kB / 0.5266 GB, free: 5.344 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006646/0.533, allocations: 143.8 kB / 0.5268 GB, free: 5.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007266/0.5338, allocations: 316.8 kB / 0.5271 GB, free: 4.883 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.051e-05/0.5338, allocations: 11.98 kB / 0.5271 GB, free: 4.871 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006131/0.54, allocations: 7.073 MB / 0.534 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.54, allocations: 3.938 kB / 0.534 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003/0.543, allocations: 1.76 MB / 0.5357 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003174/0.5434, allocations: 220.2 kB / 0.5359 GB, free: 11.28 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.334e-05/0.5435, allocations: 0 / 0.5359 GB, free: 11.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/0.544, allocations: 23.98 kB / 0.5359 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.5442, allocations: 101.3 kB / 0.536 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-05/0.5442, allocations: 32 kB / 0.5361 GB, free: 11.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002397/0.5445, allocations: 228.6 kB / 0.5363 GB, free: 10.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5445, allocations: 0 / 0.5363 GB, free: 10.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001139/0.5456, allocations: 264 kB / 0.5365 GB, free: 10.65 MB / 426.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_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * 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.0003541/0.546, allocations: 179 kB / 0.5367 GB, free: 10.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.5483, allocations: 1.458 MB / 0.5381 GB, free: 8.965 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.5483, allocations: 1.25 kB / 0.5381 GB, free: 8.965 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.5496, allocations: 1.031 MB / 0.5391 GB, free: 7.895 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.5501, allocations: 31.39 kB / 0.5392 GB, free: 7.859 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002937/0.553, allocations: 1.394 MB / 0.5405 GB, free: 6.43 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/0.5536, allocations: 1.04 MB / 0.5415 GB, free: 5.363 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004799/0.5541, allocations: 93.92 kB / 0.5416 GB, free: 5.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.5542, allocations: 47.42 kB / 0.5417 GB, free: 5.223 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/0.5542, allocations: 0 / 0.5417 GB, free: 5.223 MB / 426.7 MB Notification: Performance of Templates: time 0.22/0.7742, allocations: 9.437 MB / 0.5509 GB, free: 117.5 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches