Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 216.9 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.5 MB / 258.2 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2317/0.2317, allocations: 46.93 MB / 361.6 MB, free: 4.18 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002324, allocations: 75.89 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2955, allocations: 66.09 MB / 0.5615 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.003439/0.2989, allocations: 1.952 MB / 0.5634 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.3001, allocations: 0.6115 MB / 0.564 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.222e-05/0.3002, allocations: 4 kB / 0.564 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.3004, allocations: 31.72 kB / 0.564 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.3005, allocations: 35.7 kB / 0.5641 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001674/0.3007, allocations: 51.94 kB / 0.5641 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002086/0.3009, allocations: 143.5 kB / 0.5643 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.301, allocations: 51.53 kB / 0.5643 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.3011, allocations: 59.78 kB / 0.5644 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.3012, allocations: 63.7 kB / 0.5644 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.3013, allocations: 15.94 kB / 0.5644 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.401e-05/0.3013, allocations: 12 kB / 0.5644 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.9e-05/0.3013, allocations: 27.92 kB / 0.5645 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.189e-05/0.3014, allocations: 71.66 kB / 0.5645 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.3017, allocations: 155.3 kB / 0.5647 GB, free: 1.031 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3017, allocations: 4 kB / 0.5647 GB, free: 1.027 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3017, allocations: 0 / 0.5647 GB, free: 1.027 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.3017, allocations: 3.938 kB / 0.5647 GB, free: 1.023 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006828/0.3024, allocations: 377.9 kB / 0.5651 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3024, allocations: 8.031 kB / 0.5651 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.966e-05/0.3024, allocations: 4.469 kB / 0.5651 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.408e-05/0.3025, allocations: 50.73 kB / 0.5651 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.402e-05/0.3025, allocations: 16.84 kB / 0.5651 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/0.3028, allocations: 150.3 kB / 0.5653 GB, free: 372 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.3028, allocations: 12.64 kB / 0.5653 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.028e-05/0.3028, allocations: 12.38 kB / 0.5653 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.3032, allocations: 143.8 kB / 0.5654 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.3032, allocations: 0 / 0.5654 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.3032, allocations: 4 kB / 0.5654 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.3032, allocations: 4 kB / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003157/0.3035, allocations: 116.6 kB / 0.5656 GB, free: 76 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.3046, allocations: 0.5744 MB / 0.5661 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.3049, allocations: 70.56 kB / 0.5662 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.305, allocations: 24.97 kB / 0.5662 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.305, allocations: 4 kB / 0.5662 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.305, allocations: 30.56 kB / 0.5662 GB, free: 15.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 1.372e-06/0.305, allocations: 0 / 0.5662 GB, free: 15.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005135/0.3056, allocations: 113.6 kB / 0.5663 GB, free: 15.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.3056, allocations: 63.28 kB / 0.5664 GB, free: 15.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.3058, allocations: 146.4 kB / 0.5665 GB, free: 14.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.3058, allocations: 29.7 kB / 0.5666 GB, free: 14.9 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.968e-05/0.3059, allocations: 135.8 kB / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.3059, allocations: 15.84 kB / 0.5667 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-05/0.306, allocations: 33.66 kB / 0.5668 GB, free: 14.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.3061, allocations: 318.8 kB / 0.5671 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.3063, allocations: 27.98 kB / 0.5671 GB, free: 14.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.3064, allocations: 64.2 kB / 0.5671 GB, free: 14.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002496/0.3066, allocations: 100.2 kB / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3066, allocations: 0 / 0.5672 GB, free: 14.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003054/0.307, allocations: 121.5 kB / 0.5674 GB, free: 14.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.307, allocations: 12.11 kB / 0.5674 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.307, allocations: 4 kB / 0.5674 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.307, allocations: 7.938 kB / 0.5674 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.3071, allocations: 23.98 kB / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3071, allocations: 0 / 0.5674 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.3072, allocations: 19.94 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.3073, allocations: 4 kB / 0.5674 GB, free: 13.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.3074, allocations: 121.8 kB / 0.5675 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.042e-05/0.3074, allocations: 11.95 kB / 0.5676 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.091e-05/0.3074, allocations: 16.34 kB / 0.5676 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.3074, allocations: 0 / 0.5676 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3074, allocations: 0 / 0.5676 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3074, allocations: 3.984 kB / 0.5676 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002255/0.3077, allocations: 180.6 kB / 0.5677 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3077, allocations: 0 / 0.5677 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.165e-05/0.3078, allocations: 15.98 kB / 0.5678 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3078, allocations: 0 / 0.5678 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.3078, allocations: 3.938 kB / 0.5678 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3078, allocations: 256 / 0.5678 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3078, allocations: 4 kB / 0.5678 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.3081, allocations: 199.4 kB / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.85e-05/0.3081, allocations: 7.953 kB / 0.568 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.3081, allocations: 7.875 kB / 0.568 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.569e-05/0.3082, allocations: 4 kB / 0.568 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.3082, allocations: 7.984 kB / 0.568 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.3083, allocations: 4 kB / 0.568 GB, free: 13.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.166e-05/0.3083, allocations: 114.2 kB / 0.5681 GB, free: 13.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3083, allocations: 0 / 0.5681 GB, free: 13.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.3086, allocations: 27.95 kB / 0.5681 GB, free: 13.19 MB / 414.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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006195/0.3092, allocations: 0.7239 MB / 0.5688 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.3095, allocations: 67.89 kB / 0.5689 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3095, allocations: 0 / 0.5689 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.3096, allocations: 31.91 kB / 0.5689 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.3099, allocations: 8 kB / 0.5689 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.3121, allocations: 1.644 MB / 0.5705 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.3124, allocations: 0.7118 MB / 0.5712 GB, free: 9.852 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.355e-05/0.3125, allocations: 8.672 kB / 0.5712 GB, free: 9.844 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.465e-05/0.3125, allocations: 43.36 kB / 0.5713 GB, free: 9.801 MB / 414.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3125, allocations: 0 / 0.5713 GB, free: 9.801 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.3346, allocations: 2.347 MB / 0.5736 GB, free: 7.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.83, allocations: 5.375 kB / 0.5736 GB, free: 7.566 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.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: 14.736668859957717]