Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001124/0.001124, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 55.53 kB / 306.9 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1051, allocations: 50.54 MB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008324/0.1134, allocations: 6.485 MB / 364 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005086/0.1186, allocations: 2.632 MB / 366.6 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005387/0.1192, allocations: 23.94 kB / 366.6 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002992/0.1222, allocations: 1.268 MB / 367.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001562/0.1237, allocations: 0.5355 MB / 368.4 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002587/0.1263, allocations: 1.257 MB / 369.7 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.1278, allocations: 1.075 MB / 370.7 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1655/0.2933, allocations: 0.8923 MB / 371.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000946/0.2943, allocations: 448.2 kB / 372.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007289/0.2951, allocations: 0.5415 MB / 372.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000169/0.2952, allocations: 97.91 kB / 372.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009608/0.2962, allocations: 420 kB / 373.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.2964, allocations: 234.8 kB / 373.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004656/0.2969, allocations: 0.52 MB / 373.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001917/0.2988, allocations: 1.507 MB / 375.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2988, allocations: 0 / 375.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2988, allocations: 0 / 375.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.994e-05/0.2989, allocations: 3.938 kB / 375.4 MB, free: 9.055 MB / 302.1 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.004267/0.3031, allocations: 1.639 MB / 377 MB, free: 8.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3032, allocations: 19.84 kB / 377 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003314/0.3065, allocations: 495.7 kB / 377.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006197/0.3071, allocations: 495.8 kB / 378 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.687e-05/0.3072, allocations: 85.22 kB / 378.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.3074, allocations: 112.8 kB / 378.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/0.3092, allocations: 0.9724 MB / 379.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.3092, allocations: 4 kB / 379.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.76e-05/0.3093, allocations: 47.22 kB / 379.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.3094, allocations: 27.56 kB / 379.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.3112, allocations: 0.9632 MB / 380.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00553/0.3167, allocations: 3.792 MB / 384 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.3185, allocations: 1.559 MB / 385.6 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007693/0.3193, allocations: 439.6 kB / 386 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.3195, allocations: 181.1 kB / 386.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008359/0.3203, allocations: 475.4 kB / 386.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 3.337e-06/0.3203, allocations: 0 / 386.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.008629/0.329, allocations: 3.997 MB / 390.6 MB, free: 1.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.457e-05/0.3291, allocations: 148.2 kB / 390.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005278/0.3296, allocations: 407.8 kB / 391.2 MB, free: 1.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.459e-05/0.3297, allocations: 46.05 kB / 391.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.3299, allocations: 422.4 kB / 391.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/0.3301, allocations: 423 kB / 392 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/0.3304, allocations: 206.1 kB / 392.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.98e-05/0.3305, allocations: 379.6 kB / 392.6 MB, free: 356 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006814/0.3312, allocations: 353.1 kB / 393 MB, free: 224 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008401/0.3321, allocations: 0.5484 MB / 393.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.3337, allocations: 0.9397 MB / 394.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3337, allocations: 0 / 394.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002689/0.3364, allocations: 1.383 MB / 395.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.3364, allocations: 9.969 kB / 395.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3364, allocations: 3.25 kB / 395.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008593/0.3373, allocations: 358.2 kB / 396.2 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007968/0.3381, allocations: 205.2 kB / 396.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007795/0.3459, allocations: 8.497 MB / 404.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008115/0.3467, allocations: 45.3 kB / 404.9 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.3468, allocations: 46.02 kB / 405 MB, free: 7.012 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004816/0.3473, allocations: 257.5 kB / 405.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.3474, allocations: 82.38 kB / 405.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002509/0.35, allocations: 1.305 MB / 406.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.35, allocations: 12.66 kB / 406.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.35, allocations: 6.75 kB / 406.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.35, allocations: 8.812 kB / 406.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004119/0.3541, allocations: 2.542 MB / 409.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.3542, allocations: 4 kB / 409.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006951/0.3549, allocations: 146.9 kB / 409.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008042/0.3557, allocations: 335 kB / 409.7 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.075e-05/0.3558, allocations: 24 kB / 409.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007596/0.3634, allocations: 8.118 MB / 417.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.3634, allocations: 7.984 kB / 417.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003249/0.3666, allocations: 1.827 MB / 419.6 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/0.367, allocations: 220.2 kB / 419.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.3671, allocations: 24 kB / 419.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005692/0.3677, allocations: 39.98 kB / 419.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.3679, allocations: 105.3 kB / 420 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.275e-05/0.368, allocations: 35.98 kB / 420.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003166/0.3683, allocations: 279.2 kB / 420.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3683, allocations: 0 / 420.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001235/0.3695, allocations: 312 kB / 420.6 MB, free: 7.527 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003232/0.3699, allocations: 174.7 kB / 420.8 MB, free: 7.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003366/0.3733, allocations: 1.655 MB / 422.5 MB, free: 5.688 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3733, allocations: 0 / 422.5 MB, free: 5.688 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.3749, allocations: 1.145 MB / 423.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005784/0.3755, allocations: 91.19 kB / 423.7 MB, free: 4.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.3789, allocations: 1.962 MB / 425.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.3795, allocations: 1.024 MB / 426.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005112/0.38, allocations: 102.2 kB / 426.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.3802, allocations: 59.42 kB / 426.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3802, allocations: 0 / 426.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of Templates: time 0.0189/0.3991, allocations: 11.14 MB / 438 MB, free: 6.141 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches