Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001142/0.001142, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2232/0.2232, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 71.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3214, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003257/0.3247, allocations: 2.356 MB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.3257, allocations: 0.6671 MB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.753e-05/0.3259, allocations: 4.594 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.336e-05/0.326, allocations: 38.77 kB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.3261, allocations: 76.05 kB / 0.5336 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.3264, allocations: 92.05 kB / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.3267, allocations: 349 kB / 0.534 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.327, allocations: 158.5 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.3272, allocations: 146.6 kB / 0.5343 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.3274, allocations: 160.7 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.268e-05/0.3275, allocations: 36.94 kB / 0.5345 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.52e-05/0.3276, allocations: 35.75 kB / 0.5345 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.905e-05/0.3276, allocations: 64.08 kB / 0.5346 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.3278, allocations: 162 kB / 0.5347 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.3281, allocations: 375.6 kB / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3281, allocations: 0 / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3282, allocations: 0 / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.3282, allocations: 0 / 0.5351 GB, free: 9.883 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008955/0.3291, allocations: 0.5806 MB / 0.5356 GB, free: 9.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3291, allocations: 12.83 kB / 0.5357 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.721e-05/0.3292, allocations: 68.3 kB / 0.5357 GB, free: 9.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/0.3295, allocations: 49.92 kB / 0.5358 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.3297, allocations: 203.5 kB / 0.536 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.3297, allocations: 26.59 kB / 0.536 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/0.3297, allocations: 27.91 kB / 0.536 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/0.3303, allocations: 282.7 kB / 0.5363 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3303, allocations: 0 / 0.5363 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.3303, allocations: 10.31 kB / 0.5363 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.3303, allocations: 11.81 kB / 0.5363 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004029/0.3307, allocations: 215.7 kB / 0.5365 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.3324, allocations: 1.022 MB / 0.5375 GB, free: 7.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.889e-05/0.3325, allocations: 35.08 kB / 0.5375 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.069e-05/0.3326, allocations: 21.08 kB / 0.5376 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.3326, allocations: 1.094 kB / 0.5376 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.3326, allocations: 35.66 kB / 0.5376 GB, free: 7.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.3326, allocations: 0 / 0.5376 GB, free: 7.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002053/0.3328, allocations: 77.44 kB / 0.5377 GB, free: 7.773 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.3329, allocations: 51.53 kB / 0.5377 GB, free: 7.711 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000353/0.3332, allocations: 321.6 kB / 0.538 GB, free: 7.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.3332, allocations: 26.83 kB / 0.5381 GB, free: 7.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.3334, allocations: 238.5 kB / 0.5383 GB, free: 7.246 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.3334, allocations: 10.28 kB / 0.5383 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.776e-05/0.3335, allocations: 52.8 kB / 0.5383 GB, free: 7.199 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3336, allocations: 331.2 kB / 0.5387 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.3338, allocations: 64.19 kB / 0.5387 GB, free: 6.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.3339, allocations: 89.59 kB / 0.5388 GB, free: 6.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.3341, allocations: 131.2 kB / 0.5389 GB, free: 6.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3341, allocations: 0 / 0.5389 GB, free: 6.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003908/0.3345, allocations: 227.3 kB / 0.5392 GB, free: 6.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3346, allocations: 9.531 kB / 0.5392 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.3346, allocations: 0 / 0.5392 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.3346, allocations: 2.062 kB / 0.5392 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.3349, allocations: 65.23 kB / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3349, allocations: 1.094 kB / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.3352, allocations: 38.94 kB / 0.5393 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.3352, allocations: 4.969 kB / 0.5393 GB, free: 6.527 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 (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.3353, allocations: 139.4 kB / 0.5394 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.3354, allocations: 25.52 kB / 0.5394 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.531e-05/0.3354, allocations: 18.69 kB / 0.5394 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.3354, allocations: 1.75 kB / 0.5394 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3354, allocations: 4 kB / 0.5394 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.3355, allocations: 7.922 kB / 0.5395 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006204/0.3361, allocations: 0.5106 MB / 0.54 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3361, allocations: 0 / 0.54 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.538e-05/0.3361, allocations: 3.125 kB / 0.54 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3361, allocations: 1.219 kB / 0.54 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.3362, allocations: 0 / 0.54 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3362, allocations: 1.906 kB / 0.54 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3362, allocations: 4.062 kB / 0.54 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.3363, allocations: 104.7 kB / 0.5401 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.613e-05/0.3364, allocations: 101.4 kB / 0.5402 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.3364, allocations: 5.438 kB / 0.5402 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.3366, allocations: 1.562 kB / 0.5402 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.231e-05/0.3366, allocations: 32 / 0.5402 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.3366, allocations: 5.562 kB / 0.5402 GB, free: 5.613 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002338/0.3368, allocations: 223.1 kB / 0.5404 GB, free: 5.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3368, allocations: 0 / 0.5404 GB, free: 5.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.3371, allocations: 64.56 kB / 0.5404 GB, free: 5.457 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003944/0.3375, allocations: 0.6402 MB / 0.5411 GB, free: 4.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002468/0.3378, allocations: 112.7 kB / 0.5412 GB, free: 4.773 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3378, allocations: 5 kB / 0.5412 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.447e-05/0.3378, allocations: 10.12 kB / 0.5412 GB, free: 4.766 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.3381, allocations: 23.45 kB / 0.5412 GB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.3407, allocations: 2.217 MB / 0.5434 GB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.341, allocations: 0.7433 MB / 0.5441 GB, free: 2.312 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.3411, allocations: 27.89 kB / 0.5441 GB, free: 2.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.3412, allocations: 76.5 kB / 0.5442 GB, free: 2.23 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3412, allocations: 1.188 kB / 0.5442 GB, free: 2.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02688/0.3681, allocations: 4.216 MB / 0.5483 GB, free: 15.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.799/8.167, allocations: 13.47 kB / 0.5483 GB, free: 15.11 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches