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.001882/0.001882, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002392/0.002392, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.556/1.556, 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.251/0.251, allocations: 46.97 MB / 360.9 MB, free: 4.016 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.002284/0.002284, allocations: 71.89 kB / 0.4961 GB, free: 7.699 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3775, allocations: 66.03 MB / 0.5606 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004285/0.3818, allocations: 2.356 MB / 0.5629 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.3835, allocations: 0.7828 MB / 0.5636 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.3836, allocations: 4 kB / 0.5637 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002163/0.3838, allocations: 55.5 kB / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.3841, allocations: 113 kB / 0.5638 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.3844, allocations: 99.86 kB / 0.5639 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.3848, allocations: 358.7 kB / 0.5643 GB, free: 444 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3849, allocations: 64.89 kB / 0.5643 GB, free: 376 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002551/0.3852, allocations: 147.5 kB / 0.5645 GB, free: 228 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.3854, allocations: 139.3 kB / 0.5646 GB, free: 88 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.082e-05/0.3855, allocations: 32 kB / 0.5646 GB, free: 56 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.937e-05/0.3855, allocations: 36 kB / 0.5647 GB, free: 20 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.187e-05/0.3856, allocations: 67.75 kB / 0.5647 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.3858, allocations: 123.3 kB / 0.5648 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004608/0.3862, allocations: 382.4 kB / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3862, allocations: 7.984 kB / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3862, allocations: 0 / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.3862, allocations: 0 / 0.5652 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.001125/0.3874, allocations: 0.5596 MB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3874, allocations: 16.03 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.45e-05/0.3875, allocations: 54.73 kB / 0.5658 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.3876, allocations: 44.69 kB / 0.5659 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.388, allocations: 209 kB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.388, allocations: 20.88 kB / 0.5661 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.3881, allocations: 28.31 kB / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.3886, allocations: 244.2 kB / 0.5663 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3886, allocations: 0 / 0.5663 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.3886, allocations: 16 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3886, allocations: 4 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005297/0.3892, allocations: 237.8 kB / 0.5666 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.3907, allocations: 0.7845 MB / 0.5674 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005784/0.3912, allocations: 288.1 kB / 0.5676 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.3915, allocations: 120.8 kB / 0.5677 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.3916, allocations: 11.98 kB / 0.5678 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.3916, allocations: 38.55 kB / 0.5678 GB, free: 12.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.723e-06/0.3916, allocations: 3.938 kB / 0.5678 GB, free: 12.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004342/0.3959, allocations: 0.9494 MB / 0.5687 GB, free: 11.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.396, allocations: 59.41 kB / 0.5688 GB, free: 11.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.3963, allocations: 233.1 kB / 0.569 GB, free: 11.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.3963, allocations: 33.64 kB / 0.569 GB, free: 11.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3964, allocations: 169.3 kB / 0.5692 GB, free: 11.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.913e-05/0.3965, allocations: 115 kB / 0.5693 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.419e-05/0.3966, allocations: 45.7 kB / 0.5693 GB, free: 11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3968, allocations: 342.8 kB / 0.5697 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.397, allocations: 95.95 kB / 0.5698 GB, free: 10.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.3973, allocations: 122.8 kB / 0.5699 GB, free: 10.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000469/0.3977, allocations: 227.3 kB / 0.5701 GB, free: 10.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3977, allocations: 0 / 0.5701 GB, free: 10.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001786/0.3995, allocations: 0.545 MB / 0.5706 GB, free: 9.645 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3995, allocations: 4 kB / 0.5706 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3996, allocations: 0 / 0.5706 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.4011, allocations: 323.1 kB / 0.5709 GB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.4013, allocations: 23.97 kB / 0.571 GB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007944/0.4092, allocations: 6.388 MB / 0.5772 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002645/0.4095, allocations: 23.88 kB / 0.5772 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.4095, allocations: 8 kB / 0.5772 GB, free: 2.41 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.0002211/0.4098, allocations: 144.5 kB / 0.5774 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-05/0.4098, allocations: 39.86 kB / 0.5774 GB, free: 2.223 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00182/0.4116, allocations: 0.5501 MB / 0.5779 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.4116, allocations: 0 / 0.5779 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.4116, allocations: 7.938 kB / 0.578 GB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.4117, allocations: 3.938 kB / 0.578 GB, free: 1.645 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004786/0.4121, allocations: 300.5 kB / 0.5782 GB, free: 1.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4121, allocations: 192 / 0.5782 GB, free: 1.309 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.4122, allocations: 19.98 kB / 0.5783 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.4139, allocations: 311.2 kB / 0.5786 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.4139, allocations: 4 kB / 0.5786 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008858/0.4228, allocations: 6.437 MB / 0.5849 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4228, allocations: 0 / 0.5849 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/0.4248, allocations: 0.6051 MB / 0.5854 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.41e-05/0.4249, allocations: 39.67 kB / 0.5855 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.4249, allocations: 8 kB / 0.5855 GB, free: 9.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.4251, allocations: 12 kB / 0.5855 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4252, allocations: 35.92 kB / 0.5855 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.4252, allocations: 4 kB / 0.5855 GB, free: 9.336 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.4254, allocations: 173.2 kB / 0.5857 GB, free: 9.168 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.4254, allocations: 0 / 0.5857 GB, free: 9.168 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005823/0.426, allocations: 123.9 kB / 0.5858 GB, free: 9.047 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.002189/0.4282, allocations: 1.161 MB / 0.587 GB, free: 7.848 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.4295, allocations: 0.7406 MB / 0.5877 GB, free: 7.055 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4295, allocations: 4 kB / 0.5877 GB, free: 7.051 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.4308, allocations: 0.721 MB / 0.5884 GB, free: 6.277 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.4312, allocations: 28.62 kB / 0.5884 GB, free: 6.25 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006667/0.4378, allocations: 3.175 MB / 0.5915 GB, free: 2.953 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.438, allocations: 175.7 kB / 0.5917 GB, free: 2.762 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.848e-05/0.4381, allocations: 17.94 kB / 0.5917 GB, free: 2.746 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.4382, allocations: 75.41 kB / 0.5918 GB, free: 2.672 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4382, allocations: 0 / 0.5918 GB, free: 2.672 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05146/0.4897, allocations: 11.81 MB / 0.6033 GB, free: 7.047 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.82, allocations: 7.75 kB / 0.6033 GB, free: 7.043 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.922714873682708]