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.001403/0.001403, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001495/0.001495, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.507/1.507, allocations: 230.6 MB / 254.8 MB, free: 15.26 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.2382/0.2382, allocations: 46.92 MB / 357.8 MB, free: 10.36 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 67.91 kB / 0.4916 GB, free: 8.016 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1199, allocations: 65.98 MB / 0.556 GB, free: 5.906 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004123/0.124, allocations: 2.506 MB / 0.5585 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1256, allocations: 0.8372 MB / 0.5593 GB, free: 2.543 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.1258, allocations: 4 kB / 0.5593 GB, free: 2.539 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.126, allocations: 59.5 kB / 0.5594 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003288/0.1264, allocations: 107.2 kB / 0.5595 GB, free: 2.375 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.1267, allocations: 99.81 kB / 0.5596 GB, free: 2.277 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000472/0.1272, allocations: 366.7 kB / 0.5599 GB, free: 1.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.1274, allocations: 68.72 kB / 0.56 GB, free: 1.852 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.1277, allocations: 143.5 kB / 0.5601 GB, free: 1.711 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.128, allocations: 163.2 kB / 0.5603 GB, free: 1.551 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.788e-05/0.128, allocations: 28 kB / 0.5603 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.905e-05/0.1281, allocations: 36 kB / 0.5603 GB, free: 1.488 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.854e-05/0.1282, allocations: 75.73 kB / 0.5604 GB, free: 1.414 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.1284, allocations: 151.2 kB / 0.5606 GB, free: 1.266 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000492/0.1289, allocations: 374.4 kB / 0.5609 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1289, allocations: 0 / 0.5609 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1289, allocations: 0 / 0.5609 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.1289, allocations: 0 / 0.5609 GB, free: 0.8984 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.001327/0.1302, allocations: 0.6349 MB / 0.5615 GB, free: 216 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1303, allocations: 12.03 kB / 0.5615 GB, free: 204 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.027e-05/0.1303, allocations: 8.75 kB / 0.5616 GB, free: 196 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.995e-05/0.1304, allocations: 58.73 kB / 0.5616 GB, free: 128 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.1306, allocations: 44.69 kB / 0.5617 GB, free: 84 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.131, allocations: 278.7 kB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.131, allocations: 24.88 kB / 0.5619 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.378e-05/0.1311, allocations: 20.38 kB / 0.562 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005568/0.1316, allocations: 252.8 kB / 0.5622 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.1316, allocations: 0 / 0.5622 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.1317, allocations: 16 kB / 0.5622 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1317, allocations: 4 kB / 0.5622 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005594/0.1322, allocations: 234.1 kB / 0.5624 GB, free: 15.22 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.1339, allocations: 0.8756 MB / 0.5633 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006241/0.1345, allocations: 286.6 kB / 0.5636 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003055/0.1348, allocations: 128.8 kB / 0.5637 GB, free: 13.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.025e-05/0.1349, allocations: 0 / 0.5637 GB, free: 13.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.1349, allocations: 42.56 kB / 0.5637 GB, free: 13.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 1.633e-06/0.1349, allocations: 0 / 0.5637 GB, free: 13.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.005013/0.1399, allocations: 1.254 MB / 0.565 GB, free: 12.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.14, allocations: 59.41 kB / 0.565 GB, free: 12.4 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.1403, allocations: 229 kB / 0.5652 GB, free: 12.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.1403, allocations: 33.7 kB / 0.5653 GB, free: 12.12 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.1405, allocations: 173.3 kB / 0.5654 GB, free: 11.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.1406, allocations: 103.1 kB / 0.5655 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.1407, allocations: 57.64 kB / 0.5656 GB, free: 11.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1409, allocations: 338.8 kB / 0.5659 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.1411, allocations: 95.95 kB / 0.566 GB, free: 11.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.1414, allocations: 125.8 kB / 0.5661 GB, free: 11.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005207/0.1419, allocations: 231.2 kB / 0.5663 GB, free: 10.99 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1419, allocations: 0 / 0.5663 GB, free: 10.99 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00196/0.1439, allocations: 0.5412 MB / 0.5669 GB, free: 10.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1439, allocations: 4 kB / 0.5669 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.1439, allocations: 3.984 kB / 0.5669 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/0.1457, allocations: 319.1 kB / 0.5672 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.1459, allocations: 27.98 kB / 0.5672 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008536/0.1545, allocations: 6.848 MB / 0.5739 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.1547, allocations: 23.86 kB / 0.5739 GB, free: 2.637 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.1547, allocations: 12 kB / 0.5739 GB, free: 2.625 MB / 430.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.0001855/0.1549, allocations: 149.8 kB / 0.5741 GB, free: 2.469 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.796e-05/0.155, allocations: 27.81 kB / 0.5741 GB, free: 2.441 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001955/0.1569, allocations: 0.5473 MB / 0.5746 GB, free: 1.879 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.157, allocations: 7.938 kB / 0.5746 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.157, allocations: 0 / 0.5746 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.157, allocations: 3.984 kB / 0.5746 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005073/0.1575, allocations: 357.3 kB / 0.575 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.1575, allocations: 0 / 0.575 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.1576, allocations: 27.95 kB / 0.575 GB, free: 1.441 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001656/0.1593, allocations: 311.2 kB / 0.5753 GB, free: 1.125 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.1593, allocations: 4 kB / 0.5753 GB, free: 1.121 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008837/0.1681, allocations: 6.91 MB / 0.5821 GB, free: 9.648 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.1681, allocations: 3.984 kB / 0.5821 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.1701, allocations: 0.6156 MB / 0.5827 GB, free: 9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1703, allocations: 100.9 kB / 0.5828 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.1703, allocations: 8 kB / 0.5828 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.1705, allocations: 11.98 kB / 0.5828 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.1706, allocations: 35.89 kB / 0.5828 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.1707, allocations: 12 kB / 0.5828 GB, free: 8.816 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.1709, allocations: 170 kB / 0.583 GB, free: 8.648 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1709, allocations: 0 / 0.583 GB, free: 8.648 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005604/0.1714, allocations: 123.9 kB / 0.5831 GB, free: 8.527 MB / 446.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.002262/0.1737, allocations: 1.163 MB / 0.5842 GB, free: 7.328 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.175, allocations: 0.7527 MB / 0.585 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.175, allocations: 3.938 kB / 0.585 GB, free: 6.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.1764, allocations: 0.725 MB / 0.5857 GB, free: 5.742 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.1767, allocations: 20.55 kB / 0.5857 GB, free: 5.723 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006722/0.1834, allocations: 3.155 MB / 0.5888 GB, free: 2.441 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.1839, allocations: 0.7795 MB / 0.5896 GB, free: 1.637 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.099e-05/0.1839, allocations: 13.95 kB / 0.5896 GB, free: 1.621 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.1841, allocations: 79.34 kB / 0.5896 GB, free: 1.543 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1841, allocations: 0 / 0.5896 GB, free: 1.543 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2684/0.4524, allocations: 11.09 MB / 0.6005 GB, free: 35.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.36, allocations: 13.67 kB / 0.6005 GB, free: 35.01 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.424942239013035]