Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00156/0.00156, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001925/0.001925, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2377/0.2377, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 71.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3289, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003831/0.3328, allocations: 2.491 MB / 0.5329 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.3345, allocations: 0.8354 MB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001939/0.3347, allocations: 4.125 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002433/0.335, allocations: 55.88 kB / 0.5338 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003531/0.3353, allocations: 111.9 kB / 0.5339 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.3357, allocations: 102.9 kB / 0.534 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004656/0.3361, allocations: 353.5 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.3364, allocations: 86.73 kB / 0.5344 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.3367, allocations: 140.7 kB / 0.5346 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.337, allocations: 158.7 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.653e-05/0.3371, allocations: 30.22 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.3372, allocations: 35.03 kB / 0.5348 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.627e-05/0.3373, allocations: 71.62 kB / 0.5349 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.3375, allocations: 158.3 kB / 0.535 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005779/0.3381, allocations: 374.5 kB / 0.5354 GB, free: 9.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3381, allocations: 1.375 kB / 0.5354 GB, free: 9.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3381, allocations: 0 / 0.5354 GB, free: 9.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3381, allocations: 7.938 kB / 0.5354 GB, free: 9.668 MB / 398.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.001373/0.3395, allocations: 0.64 MB / 0.536 GB, free: 9.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/0.3396, allocations: 9.625 kB / 0.536 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.57e-05/0.3397, allocations: 62.97 kB / 0.5361 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/0.3399, allocations: 39.73 kB / 0.5361 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000496/0.3404, allocations: 270.1 kB / 0.5364 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.3404, allocations: 18.19 kB / 0.5364 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.432e-05/0.3405, allocations: 28.03 kB / 0.5364 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005989/0.3411, allocations: 251.5 kB / 0.5366 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3411, allocations: 0 / 0.5366 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.3411, allocations: 10.66 kB / 0.5367 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.3412, allocations: 10.27 kB / 0.5367 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005697/0.3417, allocations: 236.4 kB / 0.5369 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.3433, allocations: 0.8798 MB / 0.5377 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005974/0.3439, allocations: 304.5 kB / 0.538 GB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002946/0.3442, allocations: 142.7 kB / 0.5382 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.3443, allocations: 7.969 kB / 0.5382 GB, free: 7.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.3443, allocations: 32.09 kB / 0.5382 GB, free: 7.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 4.068e-06/0.3443, allocations: 0 / 0.5382 GB, free: 7.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004897/0.3492, allocations: 1.269 MB / 0.5395 GB, free: 6.551 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.718e-05/0.3493, allocations: 59.83 kB / 0.5395 GB, free: 6.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.3496, allocations: 230.8 kB / 0.5397 GB, free: 6.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.3497, allocations: 31.14 kB / 0.5398 GB, free: 6.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3498, allocations: 165.9 kB / 0.5399 GB, free: 6.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.986e-05/0.3499, allocations: 115.1 kB / 0.54 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.3501, allocations: 52.95 kB / 0.5401 GB, free: 5.988 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3502, allocations: 336.7 kB / 0.5404 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.3504, allocations: 92.23 kB / 0.5405 GB, free: 5.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.3507, allocations: 124.4 kB / 0.5406 GB, free: 5.539 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.3512, allocations: 232.3 kB / 0.5408 GB, free: 5.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3512, allocations: 0 / 0.5408 GB, free: 5.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001955/0.3532, allocations: 0.5493 MB / 0.5414 GB, free: 5.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.3532, allocations: 5.75 kB / 0.5414 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.3532, allocations: 0 / 0.5414 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001823/0.3551, allocations: 319.5 kB / 0.5417 GB, free: 4.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.3553, allocations: 26.7 kB / 0.5417 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008242/0.3635, allocations: 6.846 MB / 0.5484 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/0.3639, allocations: 27.94 kB / 0.5484 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.341e-05/0.364, allocations: 14.09 kB / 0.5484 GB, free: 14.36 MB / 414.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.0002361/0.3642, allocations: 146 kB / 0.5486 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.681e-05/0.3643, allocations: 29.09 kB / 0.5486 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.3662, allocations: 0.5542 MB / 0.5491 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3663, allocations: 0 / 0.5491 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.3663, allocations: 3.938 kB / 0.5491 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3663, allocations: 4 kB / 0.5491 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004965/0.3668, allocations: 365.2 kB / 0.5495 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3668, allocations: 4 kB / 0.5495 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.367, allocations: 19.97 kB / 0.5495 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001666/0.3686, allocations: 319.3 kB / 0.5498 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.76e-05/0.3687, allocations: 4 kB / 0.5498 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008075/0.3768, allocations: 6.901 MB / 0.5566 GB, free: 5.543 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3768, allocations: 4.031 kB / 0.5566 GB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001933/0.3788, allocations: 0.6235 MB / 0.5572 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.3789, allocations: 104.8 kB / 0.5573 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.295e-05/0.379, allocations: 11.98 kB / 0.5573 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.3793, allocations: 12 kB / 0.5573 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.3794, allocations: 31.95 kB / 0.5573 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.3795, allocations: 8 kB / 0.5573 GB, free: 4.703 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.3797, allocations: 170 kB / 0.5575 GB, free: 4.539 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3797, allocations: 3.938 kB / 0.5575 GB, free: 4.535 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005972/0.3803, allocations: 119.9 kB / 0.5576 GB, free: 4.418 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.002121/0.3824, allocations: 1.164 MB / 0.5588 GB, free: 3.215 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001166/0.3836, allocations: 0.7725 MB / 0.5595 GB, free: 2.391 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3836, allocations: 0 / 0.5595 GB, free: 2.391 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.3849, allocations: 0.7367 MB / 0.5602 GB, free: 1.602 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003939/0.3853, allocations: 27.8 kB / 0.5603 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006478/0.3918, allocations: 3.174 MB / 0.5634 GB, free: 14.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.3922, allocations: 0.7794 MB / 0.5641 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.784e-05/0.3923, allocations: 9.953 kB / 0.5641 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.3925, allocations: 79.41 kB / 0.5642 GB, free: 13.38 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3925, allocations: 0 / 0.5642 GB, free: 13.38 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04213/0.4346, allocations: 10.99 MB / 0.5749 GB, free: 2.555 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.33, allocations: 10.53 kB / 0.5749 GB, free: 2.547 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.csv","/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_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches