Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001959/0.001959, allocations: 119.8 kB / 20.43 MB, free: 1.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 206.8 kB / 23.74 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.601/1.601, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2296/0.2296, allocations: 46.93 MB / 360.9 MB, free: 4.262 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 67.91 kB / 0.4962 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3247, allocations: 66.03 MB / 0.5606 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004029/0.3287, allocations: 2.517 MB / 0.5631 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.3303, allocations: 0.8451 MB / 0.5639 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.3304, allocations: 7.938 kB / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.3306, allocations: 63.5 kB / 0.564 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.3309, allocations: 109 kB / 0.5641 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.3312, allocations: 99.81 kB / 0.5642 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004188/0.3316, allocations: 354.7 kB / 0.5645 GB, free: 492 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.3318, allocations: 72.89 kB / 0.5646 GB, free: 416 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.3321, allocations: 155.4 kB / 0.5647 GB, free: 260 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.3323, allocations: 155.3 kB / 0.5649 GB, free: 104 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.814e-05/0.3323, allocations: 28 kB / 0.5649 GB, free: 76 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.431e-05/0.3324, allocations: 35.98 kB / 0.565 GB, free: 40 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.121e-05/0.3325, allocations: 67.77 kB / 0.565 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.3327, allocations: 155.2 kB / 0.5652 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.3332, allocations: 378.4 kB / 0.5655 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3332, allocations: 0 / 0.5655 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3332, allocations: 0 / 0.5655 GB, free: 15.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3332, allocations: 0 / 0.5655 GB, free: 15.45 MB / 414.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.001227/0.3344, allocations: 0.5712 MB / 0.5661 GB, free: 14.85 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3345, allocations: 8.031 kB / 0.5661 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.104e-05/0.3345, allocations: 58.72 kB / 0.5662 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.3347, allocations: 40.7 kB / 0.5662 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.3351, allocations: 213 kB / 0.5664 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.3351, allocations: 16.88 kB / 0.5664 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/0.3352, allocations: 24.38 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005365/0.3357, allocations: 252.2 kB / 0.5667 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3357, allocations: 3.938 kB / 0.5667 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/0.3357, allocations: 11.98 kB / 0.5667 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.3357, allocations: 8 kB / 0.5667 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000519/0.3363, allocations: 229.9 kB / 0.5669 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.3378, allocations: 0.8392 MB / 0.5677 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005446/0.3383, allocations: 278.7 kB / 0.568 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.3386, allocations: 128.8 kB / 0.5681 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-05/0.3386, allocations: 4 kB / 0.5681 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.3387, allocations: 38.55 kB / 0.5682 GB, free: 12.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.443e-06/0.3387, allocations: 0 / 0.5682 GB, free: 12.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004566/0.3432, allocations: 0.9611 MB / 0.5691 GB, free: 11.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.3433, allocations: 55.41 kB / 0.5692 GB, free: 11.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.3436, allocations: 233.1 kB / 0.5694 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.3436, allocations: 29.7 kB / 0.5694 GB, free: 11.28 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.3437, allocations: 169.3 kB / 0.5696 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.907e-05/0.3438, allocations: 115 kB / 0.5697 GB, free: 11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.4e-05/0.3439, allocations: 49.7 kB / 0.5697 GB, free: 10.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3441, allocations: 342.8 kB / 0.5701 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.3443, allocations: 91.95 kB / 0.5701 GB, free: 10.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.3446, allocations: 126.8 kB / 0.5703 GB, free: 10.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.345, allocations: 231.3 kB / 0.5705 GB, free: 10.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.345, allocations: 4 kB / 0.5705 GB, free: 10.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001882/0.3469, allocations: 0.5411 MB / 0.571 GB, free: 9.586 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.347, allocations: 12 kB / 0.571 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.347, allocations: 0 / 0.571 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/0.3487, allocations: 319.1 kB / 0.5713 GB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.3489, allocations: 19.98 kB / 0.5713 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008441/0.3574, allocations: 6.438 MB / 0.5776 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002727/0.3576, allocations: 28.11 kB / 0.5777 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.3577, allocations: 16.14 kB / 0.5777 GB, free: 2.289 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.0001957/0.3578, allocations: 145.7 kB / 0.5778 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.3579, allocations: 27.81 kB / 0.5778 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001972/0.3599, allocations: 0.5501 MB / 0.5784 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3599, allocations: 4 kB / 0.5784 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3599, allocations: 3.938 kB / 0.5784 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3599, allocations: 0 / 0.5784 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004521/0.3604, allocations: 328.4 kB / 0.5787 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3604, allocations: 0 / 0.5787 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.3605, allocations: 39.89 kB / 0.5787 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001694/0.3622, allocations: 307.2 kB / 0.579 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.3622, allocations: 8 kB / 0.579 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008248/0.3705, allocations: 6.487 MB / 0.5854 GB, free: 9.859 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3705, allocations: 4.25 kB / 0.5854 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.3724, allocations: 0.6206 MB / 0.586 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.693e-05/0.3724, allocations: 35.67 kB / 0.586 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.3724, allocations: 8 kB / 0.586 GB, free: 9.164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3727, allocations: 11.98 kB / 0.586 GB, free: 9.152 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.3728, allocations: 35.94 kB / 0.5861 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.3728, allocations: 8 kB / 0.5861 GB, free: 9.109 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001807/0.373, allocations: 169.2 kB / 0.5862 GB, free: 8.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.373, allocations: 0 / 0.5862 GB, free: 8.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005527/0.3735, allocations: 123.9 kB / 0.5864 GB, free: 8.824 MB / 430.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.002173/0.3757, allocations: 1.162 MB / 0.5875 GB, free: 7.625 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.3769, allocations: 0.7367 MB / 0.5882 GB, free: 6.836 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3769, allocations: 0 / 0.5882 GB, free: 6.836 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.3782, allocations: 0.7254 MB / 0.5889 GB, free: 6.059 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.3786, allocations: 32.42 kB / 0.589 GB, free: 6.027 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006882/0.3854, allocations: 3.164 MB / 0.592 GB, free: 2.738 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.3859, allocations: 0.7832 MB / 0.5928 GB, free: 1.926 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.001e-05/0.386, allocations: 5.969 kB / 0.5928 GB, free: 1.922 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.3861, allocations: 83.41 kB / 0.5929 GB, free: 1.84 MB / 430.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3861, allocations: 0 / 0.5929 GB, free: 1.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05864/0.4448, allocations: 11.38 MB / 0.604 GB, free: 6.629 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.85, allocations: 0 / 0.604 GB, free: 6.629 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.920262658968568]