Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 114.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001383, allocations: 187 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2117/0.2117, allocations: 44.17 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 63.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3261, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003277/0.3295, allocations: 2.436 MB / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.3306, allocations: 0.7691 MB / 0.5215 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.3308, allocations: 3.281 kB / 0.5215 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.331, allocations: 58.77 kB / 0.5216 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002489/0.3313, allocations: 97.2 kB / 0.5217 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.3316, allocations: 96.92 kB / 0.5218 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.3319, allocations: 348.5 kB / 0.5221 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.3321, allocations: 92.69 kB / 0.5222 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.3323, allocations: 143.1 kB / 0.5223 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.3325, allocations: 151.6 kB / 0.5225 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.3325, allocations: 29.88 kB / 0.5225 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.3326, allocations: 28.59 kB / 0.5225 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.167e-05/0.3326, allocations: 69.95 kB / 0.5226 GB, free: 488 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.3328, allocations: 154.4 kB / 0.5228 GB, free: 388 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.3331, allocations: 356.2 kB / 0.5231 GB, free: 248 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3331, allocations: 1.922 kB / 0.5231 GB, free: 248 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3331, allocations: 0 / 0.5231 GB, free: 248 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.3332, allocations: 0 / 0.5231 GB, free: 248 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001034/0.3342, allocations: 0.6218 MB / 0.5237 GB, free: 15.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.3342, allocations: 10.03 kB / 0.5237 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.547e-05/0.3343, allocations: 59.98 kB / 0.5238 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.019e-05/0.3344, allocations: 32.66 kB / 0.5238 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.3347, allocations: 259.3 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.3348, allocations: 18.16 kB / 0.5241 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.183e-05/0.3348, allocations: 23.97 kB / 0.5241 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.3353, allocations: 248.6 kB / 0.5243 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3353, allocations: 3.938 kB / 0.5243 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.3354, allocations: 10.28 kB / 0.5243 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.3354, allocations: 5.719 kB / 0.5243 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005259/0.3359, allocations: 236.6 kB / 0.5246 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.3374, allocations: 0.8646 MB / 0.5254 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005488/0.338, allocations: 307.4 kB / 0.5257 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.3383, allocations: 147.7 kB / 0.5259 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.3383, allocations: 4.781 kB / 0.5259 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.3383, allocations: 32.59 kB / 0.5259 GB, free: 14.37 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/0.3383, allocations: 0 / 0.5259 GB, free: 14.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00461/0.343, allocations: 1.262 MB / 0.5271 GB, free: 13.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.343, allocations: 53.88 kB / 0.5272 GB, free: 13.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.3432, allocations: 215.7 kB / 0.5274 GB, free: 13.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.3433, allocations: 30.77 kB / 0.5274 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.3434, allocations: 164.5 kB / 0.5276 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.506e-05/0.3435, allocations: 103.6 kB / 0.5277 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.383e-05/0.3436, allocations: 51.67 kB / 0.5277 GB, free: 13.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3437, allocations: 335.8 kB / 0.528 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.3439, allocations: 101.3 kB / 0.5281 GB, free: 12.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.3442, allocations: 123.1 kB / 0.5282 GB, free: 12.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004609/0.3446, allocations: 229.9 kB / 0.5285 GB, free: 12.51 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3447, allocations: 0 / 0.5285 GB, free: 12.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001814/0.3465, allocations: 0.5436 MB / 0.529 GB, free: 12.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3465, allocations: 5.156 kB / 0.529 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3465, allocations: 3.938 kB / 0.529 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/0.3482, allocations: 313.8 kB / 0.5293 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.3484, allocations: 22.86 kB / 0.5293 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007219/0.3556, allocations: 6.844 MB / 0.536 GB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.3559, allocations: 31.67 kB / 0.536 GB, free: 5.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.356, allocations: 10.59 kB / 0.536 GB, free: 5.453 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 11 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001794/0.3562, allocations: 141.6 kB / 0.5362 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.597e-05/0.3562, allocations: 23.97 kB / 0.5362 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001809/0.3581, allocations: 0.5422 MB / 0.5367 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.3581, allocations: 7.75 kB / 0.5367 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3581, allocations: 7.922 kB / 0.5368 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3581, allocations: 7.938 kB / 0.5368 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004376/0.3585, allocations: 358.8 kB / 0.5371 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3586, allocations: 0 / 0.5371 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.3587, allocations: 17.23 kB / 0.5371 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.3603, allocations: 307.8 kB / 0.5374 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.3603, allocations: 5.062 kB / 0.5374 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007412/0.3677, allocations: 6.896 MB / 0.5442 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3678, allocations: 1.219 kB / 0.5442 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.3696, allocations: 0.6118 MB / 0.5447 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.3697, allocations: 116.2 kB / 0.5449 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.3698, allocations: 5.094 kB / 0.5449 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.37, allocations: 13.39 kB / 0.5449 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.3702, allocations: 33.83 kB / 0.5449 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.3702, allocations: 5.375 kB / 0.5449 GB, free: 13.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.3704, allocations: 157.4 kB / 0.5451 GB, free: 13.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.492e-06/0.3704, allocations: 0 / 0.5451 GB, free: 13.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006031/0.371, allocations: 120.4 kB / 0.5452 GB, free: 13.23 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002081/0.3731, allocations: 1.161 MB / 0.5463 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.3742, allocations: 0.7598 MB / 0.5471 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3743, allocations: 0 / 0.5471 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.3755, allocations: 0.7301 MB / 0.5478 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.3759, allocations: 28.77 kB / 0.5478 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006366/0.3823, allocations: 3.077 MB / 0.5508 GB, free: 8.777 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.3827, allocations: 0.7706 MB / 0.5516 GB, free: 8.039 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.555e-05/0.3828, allocations: 10.83 kB / 0.5516 GB, free: 8.027 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.3829, allocations: 75.91 kB / 0.5516 GB, free: 7.957 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3829, allocations: 0 / 0.5516 GB, free: 7.957 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03946/0.4224, allocations: 11.09 MB / 0.5625 GB, free: 13.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.25, allocations: 4.062 kB / 0.5625 GB, free: 13.23 MB / 430.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches