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.0011/0.0011, allocations: 113.2 kB / 17.78 MB, free: 5.258 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.001119/0.001119, allocations: 185 kB / 18.72 MB, free: 4.332 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.377/1.377, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2359/0.2359, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3272, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003205/0.3304, allocations: 2.429 MB / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.3316, allocations: 0.7686 MB / 0.5215 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.3318, allocations: 6.594 kB / 0.5215 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002144/0.332, allocations: 58.11 kB / 0.5216 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.3322, allocations: 101.3 kB / 0.5217 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.3325, allocations: 97.44 kB / 0.5218 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003421/0.3329, allocations: 344.6 kB / 0.5221 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.3331, allocations: 92.61 kB / 0.5222 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.3333, allocations: 135.7 kB / 0.5223 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.3335, allocations: 160 kB / 0.5225 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.036e-05/0.3335, allocations: 29.09 kB / 0.5225 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.671e-05/0.3336, allocations: 28.25 kB / 0.5225 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.774e-05/0.3337, allocations: 65.11 kB / 0.5226 GB, free: 488 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.3338, allocations: 151.5 kB / 0.5228 GB, free: 392 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.3342, allocations: 369.7 kB / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3342, allocations: 1.25 kB / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3342, allocations: 0 / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.3342, allocations: 0 / 0.5231 GB, free: 240 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.00104/0.3352, allocations: 0.621 MB / 0.5237 GB, free: 15.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3353, allocations: 10.81 kB / 0.5237 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.46e-05/0.3354, allocations: 59.98 kB / 0.5238 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.608e-05/0.3354, allocations: 36.83 kB / 0.5238 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.3358, allocations: 258.6 kB / 0.5241 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.3358, allocations: 23.69 kB / 0.5241 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.119e-05/0.3359, allocations: 23.78 kB / 0.5241 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000548/0.3364, allocations: 247.8 kB / 0.5243 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3365, allocations: 7.922 kB / 0.5244 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.3365, allocations: 10.86 kB / 0.5244 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.3365, allocations: 6.188 kB / 0.5244 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000533/0.337, allocations: 231.3 kB / 0.5246 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.3385, allocations: 0.8733 MB / 0.5254 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005548/0.3391, allocations: 312.4 kB / 0.5257 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.3394, allocations: 142.5 kB / 0.5259 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.3394, allocations: 8.641 kB / 0.5259 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.3395, allocations: 32.69 kB / 0.5259 GB, free: 14.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.3395, allocations: 0 / 0.5259 GB, free: 14.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.004688/0.3442, allocations: 1.263 MB / 0.5272 GB, free: 13.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/0.3442, allocations: 54.09 kB / 0.5272 GB, free: 13.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.3445, allocations: 211.6 kB / 0.5274 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.3445, allocations: 31.05 kB / 0.5274 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.3447, allocations: 164.5 kB / 0.5276 GB, free: 13.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.118e-05/0.3447, allocations: 112 kB / 0.5277 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.3449, allocations: 47.42 kB / 0.5277 GB, free: 13.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.345, allocations: 340.4 kB / 0.5281 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002401/0.3452, allocations: 93.02 kB / 0.5282 GB, free: 12.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/0.3455, allocations: 122.6 kB / 0.5283 GB, free: 12.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004644/0.346, allocations: 227 kB / 0.5285 GB, free: 12.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.346, allocations: 0 / 0.5285 GB, free: 12.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001833/0.3478, allocations: 0.5466 MB / 0.529 GB, free: 12.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3479, allocations: 5.219 kB / 0.529 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3479, allocations: 5.625 kB / 0.529 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/0.3496, allocations: 317.7 kB / 0.5293 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.3498, allocations: 25.47 kB / 0.5294 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007914/0.3577, allocations: 6.854 MB / 0.5361 GB, free: 5.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.358, allocations: 18.92 kB / 0.5361 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.3581, allocations: 7.031 kB / 0.5361 GB, free: 5.43 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.0001825/0.3582, allocations: 151.9 kB / 0.5362 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.315e-05/0.3583, allocations: 27.72 kB / 0.5362 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.3601, allocations: 0.5449 MB / 0.5368 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3601, allocations: 2.812 kB / 0.5368 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3601, allocations: 7.844 kB / 0.5368 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3602, allocations: 3.984 kB / 0.5368 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004353/0.3606, allocations: 356.6 kB / 0.5371 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3606, allocations: 0 / 0.5371 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.3607, allocations: 22.41 kB / 0.5372 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001572/0.3623, allocations: 307.2 kB / 0.5375 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.3624, allocations: 5.156 kB / 0.5375 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007528/0.3699, allocations: 6.897 MB / 0.5442 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3699, allocations: 0 / 0.5442 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.3718, allocations: 0.6196 MB / 0.5448 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.847e-05/0.3719, allocations: 104.5 kB / 0.5449 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.3719, allocations: 6.188 kB / 0.5449 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3722, allocations: 20.36 kB / 0.5449 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.3723, allocations: 33.98 kB / 0.545 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.3723, allocations: 5.25 kB / 0.545 GB, free: 13.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001797/0.3725, allocations: 162.3 kB / 0.5451 GB, free: 13.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.644e-06/0.3725, allocations: 0 / 0.5451 GB, free: 13.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.3731, allocations: 120 kB / 0.5452 GB, free: 13.19 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.002143/0.3752, allocations: 1.159 MB / 0.5464 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3765, allocations: 0.7703 MB / 0.5471 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3765, allocations: 0 / 0.5471 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.3779, allocations: 0.7319 MB / 0.5478 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.3783, allocations: 22.72 kB / 0.5478 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00652/0.3848, allocations: 3.088 MB / 0.5509 GB, free: 8.719 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.3853, allocations: 0.7708 MB / 0.5516 GB, free: 7.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.342e-05/0.3854, allocations: 14.25 kB / 0.5516 GB, free: 7.965 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.3855, allocations: 77.09 kB / 0.5517 GB, free: 7.895 MB / 414.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3855, allocations: 0 / 0.5517 GB, free: 7.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03878/0.4243, allocations: 10.81 MB / 0.5623 GB, free: 13.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.37, allocations: 4.062 kB / 0.5623 GB, free: 13.44 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_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.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_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches