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.001308/0.001308, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00142/0.00142, allocations: 208.3 kB / 23.73 MB, free: 4.523 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.578/1.578, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2498/0.2498, allocations: 46.96 MB / 360.9 MB, free: 4.125 MB / 286.1 MB " [Timeout remaining time 179] 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.002047/0.002047, allocations: 67.91 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3712/0.3732, allocations: 66.04 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.00408/0.3773, allocations: 2.349 MB / 0.5629 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3788, allocations: 0.7906 MB / 0.5637 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.3789, allocations: 4 kB / 0.5637 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002109/0.3791, allocations: 63.44 kB / 0.5637 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.3794, allocations: 101.1 kB / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.3797, allocations: 107.8 kB / 0.5639 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004199/0.3801, allocations: 354.8 kB / 0.5643 GB, free: 448 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.3803, allocations: 64.91 kB / 0.5643 GB, free: 380 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.3806, allocations: 151.5 kB / 0.5645 GB, free: 228 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.3808, allocations: 159.3 kB / 0.5646 GB, free: 68 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.494e-05/0.3808, allocations: 28 kB / 0.5646 GB, free: 40 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.284e-05/0.3809, allocations: 36 kB / 0.5647 GB, free: 4 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.381, allocations: 67.75 kB / 0.5647 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.3811, allocations: 131.3 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004711/0.3816, allocations: 382.4 kB / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3816, allocations: 0 / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3816, allocations: 0 / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3816, allocations: 0 / 0.5652 GB, free: 15.43 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.001174/0.3828, allocations: 0.5635 MB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.3828, allocations: 12.03 kB / 0.5658 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.86e-05/0.3829, allocations: 62.72 kB / 0.5658 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.383, allocations: 40.7 kB / 0.5659 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.3834, allocations: 209 kB / 0.5661 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.3834, allocations: 16.88 kB / 0.5661 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.3834, allocations: 24.38 kB / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005147/0.384, allocations: 256.1 kB / 0.5664 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.384, allocations: 0 / 0.5664 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.384, allocations: 12 kB / 0.5664 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.384, allocations: 8 kB / 0.5664 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005191/0.3845, allocations: 229.9 kB / 0.5666 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.386, allocations: 0.7768 MB / 0.5674 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.3866, allocations: 293.5 kB / 0.5676 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.3869, allocations: 120.8 kB / 0.5678 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/0.3869, allocations: 8 kB / 0.5678 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.387, allocations: 34.55 kB / 0.5678 GB, free: 12.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.387, allocations: 0 / 0.5678 GB, free: 12.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.005089/0.3921, allocations: 0.9689 MB / 0.5687 GB, free: 11.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.3921, allocations: 55.41 kB / 0.5688 GB, free: 11.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.3923, allocations: 229.1 kB / 0.569 GB, free: 11.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.3924, allocations: 33.7 kB / 0.5691 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.3925, allocations: 165.3 kB / 0.5692 GB, free: 11.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.311e-05/0.3926, allocations: 115 kB / 0.5693 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.813e-05/0.3927, allocations: 49.7 kB / 0.5694 GB, free: 10.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3928, allocations: 334.8 kB / 0.5697 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.3931, allocations: 95.95 kB / 0.5698 GB, free: 10.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002576/0.3934, allocations: 126.8 kB / 0.5699 GB, free: 10.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000475/0.3938, allocations: 235.2 kB / 0.5701 GB, free: 10.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3938, allocations: 0 / 0.5701 GB, free: 10.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001959/0.3958, allocations: 0.545 MB / 0.5707 GB, free: 9.629 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3958, allocations: 8 kB / 0.5707 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.3958, allocations: 3.984 kB / 0.5707 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001903/0.3977, allocations: 311.1 kB / 0.571 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.3979, allocations: 31.91 kB / 0.571 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008523/0.4064, allocations: 6.38 MB / 0.5772 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/0.4067, allocations: 20.17 kB / 0.5772 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.751e-05/0.4068, allocations: 12 kB / 0.5773 GB, free: 2.395 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.0002102/0.407, allocations: 145.8 kB / 0.5774 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.924e-05/0.407, allocations: 31.88 kB / 0.5774 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/0.409, allocations: 0.554 MB / 0.578 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.409, allocations: 7.938 kB / 0.578 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.409, allocations: 3.938 kB / 0.578 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.409, allocations: 0 / 0.578 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004359/0.4094, allocations: 296.5 kB / 0.5783 GB, free: 1.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.4095, allocations: 0 / 0.5783 GB, free: 1.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.4096, allocations: 23.97 kB / 0.5783 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001771/0.4113, allocations: 311.1 kB / 0.5786 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.4114, allocations: 8 kB / 0.5786 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008497/0.4199, allocations: 6.429 MB / 0.5849 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4199, allocations: 0 / 0.5849 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.4219, allocations: 0.605 MB / 0.5855 GB, free: 9.422 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.422, allocations: 35.69 kB / 0.5855 GB, free: 9.387 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/0.422, allocations: 11.98 kB / 0.5855 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.4222, allocations: 15.98 kB / 0.5855 GB, free: 9.359 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.4224, allocations: 35.88 kB / 0.5856 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.4224, allocations: 11.98 kB / 0.5856 GB, free: 9.312 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.4226, allocations: 169.2 kB / 0.5857 GB, free: 9.148 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4226, allocations: 0 / 0.5857 GB, free: 9.148 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005848/0.4232, allocations: 123.9 kB / 0.5858 GB, free: 9.027 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.002279/0.4254, allocations: 1.161 MB / 0.587 GB, free: 7.828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.4267, allocations: 0.7483 MB / 0.5877 GB, free: 7.027 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4268, allocations: 0 / 0.5877 GB, free: 7.027 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.4281, allocations: 0.7172 MB / 0.5884 GB, free: 6.258 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.4285, allocations: 19.16 kB / 0.5884 GB, free: 6.242 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007056/0.4355, allocations: 3.187 MB / 0.5915 GB, free: 2.93 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.4357, allocations: 167.7 kB / 0.5917 GB, free: 2.746 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.516e-05/0.4358, allocations: 13.95 kB / 0.5917 GB, free: 2.734 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.4359, allocations: 83.41 kB / 0.5918 GB, free: 2.652 MB / 430.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4359, allocations: 0 / 0.5918 GB, free: 2.652 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0615/0.4974, allocations: 11.91 MB / 0.6034 GB, free: 6.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.65, allocations: 4.062 kB / 0.6034 GB, free: 6.926 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.718120980018284]