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.001661/0.001661, allocations: 107.5 kB / 21.21 MB, free: 0.6523 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.002145/0.002145, allocations: 212.5 kB / 24.51 MB, free: 3.941 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.491/1.491, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.233/0.233, allocations: 46.97 MB / 361.7 MB, free: 4.031 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.001984/0.001984, allocations: 75.89 kB / 0.4969 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3293, allocations: 66.02 MB / 0.5613 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004433/0.3337, allocations: 2.352 MB / 0.5636 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.3353, allocations: 0.7906 MB / 0.5644 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.3354, allocations: 7.938 kB / 0.5644 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002087/0.3356, allocations: 51.52 kB / 0.5645 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.3359, allocations: 113.1 kB / 0.5646 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.3362, allocations: 99.81 kB / 0.5647 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.3366, allocations: 362.7 kB / 0.565 GB, free: 496 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.3368, allocations: 60.92 kB / 0.5651 GB, free: 432 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.337, allocations: 155.5 kB / 0.5652 GB, free: 276 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.3373, allocations: 159.3 kB / 0.5654 GB, free: 116 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.3373, allocations: 28 kB / 0.5654 GB, free: 88 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.798e-05/0.3374, allocations: 32 kB / 0.5654 GB, free: 56 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.416e-05/0.3375, allocations: 67.7 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.3377, allocations: 135.4 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.3381, allocations: 374.4 kB / 0.566 GB, free: 15.49 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3381, allocations: 0 / 0.566 GB, free: 15.49 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3381, allocations: 0 / 0.566 GB, free: 15.49 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.3381, allocations: 0 / 0.566 GB, free: 15.49 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.001178/0.3393, allocations: 0.5674 MB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3394, allocations: 15.97 kB / 0.5666 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.573e-05/0.3394, allocations: 8.688 kB / 0.5666 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.224e-05/0.3395, allocations: 62.72 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.3396, allocations: 40.7 kB / 0.5667 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.34, allocations: 209 kB / 0.5669 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.34, allocations: 20.88 kB / 0.5669 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.499e-05/0.3401, allocations: 24.38 kB / 0.5669 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005485/0.3406, allocations: 248 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.3406, allocations: 4 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.3407, allocations: 12 kB / 0.5672 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.3407, allocations: 4 kB / 0.5672 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005658/0.3412, allocations: 233.9 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.3427, allocations: 0.7846 MB / 0.5682 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005804/0.3433, allocations: 282.4 kB / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002786/0.3436, allocations: 128.8 kB / 0.5685 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.3436, allocations: 4 kB / 0.5685 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.3437, allocations: 34.55 kB / 0.5686 GB, free: 12.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.3437, allocations: 0 / 0.5686 GB, free: 12.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.004837/0.3485, allocations: 0.965 MB / 0.5695 GB, free: 11.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.002e-05/0.3486, allocations: 55.41 kB / 0.5696 GB, free: 11.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.3489, allocations: 229.1 kB / 0.5698 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.494e-05/0.3489, allocations: 33.7 kB / 0.5698 GB, free: 11.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.3491, allocations: 173.3 kB / 0.57 GB, free: 11.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.3492, allocations: 107 kB / 0.5701 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.3493, allocations: 53.7 kB / 0.5701 GB, free: 11.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3495, allocations: 330.8 kB / 0.5705 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.3497, allocations: 99.95 kB / 0.5706 GB, free: 10.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002633/0.35, allocations: 122.8 kB / 0.5707 GB, free: 10.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004935/0.3505, allocations: 227.3 kB / 0.5709 GB, free: 10.24 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3505, allocations: 0 / 0.5709 GB, free: 10.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001923/0.3524, allocations: 0.5412 MB / 0.5714 GB, free: 9.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3524, allocations: 8 kB / 0.5714 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3524, allocations: 0 / 0.5714 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/0.3542, allocations: 319.1 kB / 0.5717 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.3544, allocations: 31.97 kB / 0.5718 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008377/0.3628, allocations: 6.384 MB / 0.578 GB, free: 2.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.363, allocations: 27.81 kB / 0.578 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.3631, allocations: 12 kB / 0.578 GB, free: 2.43 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.0002231/0.3633, allocations: 153.8 kB / 0.5782 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.446e-05/0.3634, allocations: 27.81 kB / 0.5782 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001968/0.3653, allocations: 0.5423 MB / 0.5787 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.3653, allocations: 7.938 kB / 0.5787 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.3653, allocations: 0 / 0.5787 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3653, allocations: 4 kB / 0.5787 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000439/0.3658, allocations: 292.5 kB / 0.579 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3658, allocations: 0 / 0.579 GB, free: 1.344 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.3659, allocations: 31.91 kB / 0.5791 GB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00171/0.3676, allocations: 303.2 kB / 0.5793 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.3676, allocations: 8 kB / 0.5794 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008419/0.3761, allocations: 6.441 MB / 0.5856 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3761, allocations: 0 / 0.5856 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.3781, allocations: 0.6206 MB / 0.5862 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.624e-05/0.3781, allocations: 27.75 kB / 0.5863 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.3782, allocations: 4 kB / 0.5863 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.3784, allocations: 19.98 kB / 0.5863 GB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.3785, allocations: 27.94 kB / 0.5863 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.3785, allocations: 15.98 kB / 0.5863 GB, free: 9.348 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000201/0.3787, allocations: 165.2 kB / 0.5865 GB, free: 9.188 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3787, allocations: 0 / 0.5865 GB, free: 9.188 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005738/0.3793, allocations: 127.8 kB / 0.5866 GB, free: 9.062 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.002313/0.3816, allocations: 1.156 MB / 0.5877 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.3829, allocations: 0.7444 MB / 0.5885 GB, free: 7.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3829, allocations: 0 / 0.5885 GB, free: 7.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.3843, allocations: 0.7177 MB / 0.5892 GB, free: 6.301 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.3847, allocations: 27.16 kB / 0.5892 GB, free: 6.273 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006945/0.3916, allocations: 3.179 MB / 0.5923 GB, free: 2.973 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.3918, allocations: 167.8 kB / 0.5925 GB, free: 2.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.4e-05/0.3919, allocations: 13.95 kB / 0.5925 GB, free: 2.777 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.3921, allocations: 79.41 kB / 0.5926 GB, free: 2.699 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3921, allocations: 0 / 0.5926 GB, free: 2.699 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06364/0.4557, allocations: 11.48 MB / 0.6038 GB, free: 7.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.42, allocations: 10.39 kB / 0.6038 GB, free: 7.406 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.456151779042557]