Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.001831/0.001831, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.00236/0.00236, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.481/1.481, allocations: 230.6 MB / 258.3 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2295/0.2295, allocations: 44.91 MB / 359.6 MB, free: 6.277 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 63.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3226, allocations: 65.48 MB / 0.5578 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01574/0.3384, allocations: 12 MB / 0.5695 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00899/0.3474, allocations: 4.101 MB / 0.5735 GB, free: 7.613 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001953/0.3493, allocations: 87.69 kB / 0.5736 GB, free: 7.527 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003984/0.3533, allocations: 1.701 MB / 0.5753 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004377/0.3577, allocations: 1.565 MB / 0.5768 GB, free: 4.25 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.3606, allocations: 1.2 MB / 0.578 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005717/0.3663, allocations: 3.506 MB / 0.5814 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002856/0.3692, allocations: 1.992 MB / 0.5833 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.3711, allocations: 1.176 MB / 0.5845 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002722/0.3739, allocations: 1.728 MB / 0.5862 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006449/0.3745, allocations: 240 kB / 0.5864 GB, free: 10.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.376, allocations: 0.7333 MB / 0.5871 GB, free: 9.602 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001843/0.3778, allocations: 1.589 MB / 0.5887 GB, free: 8.008 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.3806, allocations: 1.867 MB / 0.5905 GB, free: 6.129 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00855/0.3891, allocations: 6.144 MB / 0.5965 GB, free: 15.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3891, allocations: 0 / 0.5965 GB, free: 15.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3891, allocations: 0 / 0.5965 GB, free: 15.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001791/0.3893, allocations: 0 / 0.5965 GB, free: 15.96 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.008675/0.398, allocations: 4.026 MB / 0.6004 GB, free: 11.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.398, allocations: 11.97 kB / 0.6004 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001246/0.3981, allocations: 93.11 kB / 0.6005 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00128/0.3994, allocations: 0.7202 MB / 0.6012 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/0.4102, allocations: 2.997 MB / 0.6041 GB, free: 8.035 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004686/0.4149, allocations: 1.755 MB / 0.6059 GB, free: 6.246 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.4151, allocations: 192.7 kB / 0.606 GB, free: 6.055 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009596/0.4161, allocations: 247.8 kB / 0.6063 GB, free: 5.812 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01777/0.4338, allocations: 10.04 MB / 0.6161 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-05/0.4339, allocations: 31.73 kB / 0.6161 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004957/0.4344, allocations: 123.8 kB / 0.6162 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00415/0.4386, allocations: 2.314 MB / 0.6185 GB, free: 8.645 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.4557, allocations: 8.929 MB / 0.6272 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0571/0.5128, allocations: 37.47 MB / 0.6638 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005991/0.5188, allocations: 2.349 MB / 0.6661 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001964/0.5208, allocations: 1.132 MB / 0.6672 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009548/0.5303, allocations: 4.724 MB / 0.6718 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/0.5304, allocations: 47.16 kB / 0.6719 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 4.759e-06/0.5304, allocations: 0 / 0.6719 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.007873/0.5383, allocations: 3.341 MB / 0.6751 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.5384, allocations: 166.9 kB / 0.6753 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007597/0.546, allocations: 3.841 MB / 0.679 GB, free: 9.355 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003204/0.5463, allocations: 45.69 kB / 0.6791 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003511/0.5498, allocations: 3.321 MB / 0.6823 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001156/0.551, allocations: 0.6321 MB / 0.6829 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003321/0.5543, allocations: 1.306 MB / 0.6842 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.5544, allocations: 301.4 kB / 0.6845 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003775/0.5582, allocations: 1.957 MB / 0.6864 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008036/0.5663, allocations: 6.112 MB / 0.6924 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/0.5785, allocations: 8.796 MB / 0.701 GB, free: 14.68 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000174/0.5787, allocations: 40 kB / 0.701 GB, free: 14.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01779/0.5965, allocations: 7.718 MB / 0.7085 GB, free: 6.918 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002062/0.5967, allocations: 68 kB / 0.7086 GB, free: 6.852 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002934/0.597, allocations: 152 kB / 0.7088 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002789/0.5973, allocations: 196 kB / 0.7089 GB, free: 6.512 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005078/0.6024, allocations: 1.454 MB / 0.7104 GB, free: 5.055 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003276/0.6027, allocations: 286.9 kB / 0.7106 GB, free: 4.773 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004839/0.6075, allocations: 0.9388 MB / 0.7116 GB, free: 3.828 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/0.6086, allocations: 400 kB / 0.7119 GB, free: 3.438 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 783 * Array equations: 8 * 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.004078/0.6127, allocations: 2.207 MB / 0.7141 GB, free: 1.219 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007438/0.6134, allocations: 325.7 kB / 0.7144 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.6144, allocations: 407.1 kB / 0.7148 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.746e-05/0.6145, allocations: 35.98 kB / 0.7148 GB, free: 472 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.6145, allocations: 4 kB / 0.7148 GB, free: 468 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.6145, allocations: 7.984 kB / 0.7148 GB, free: 460 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.6265, allocations: 5.447 MB / 0.7202 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.332e-05/0.6266, allocations: 4 kB / 0.7202 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.6277, allocations: 211.6 kB / 0.7204 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.105e-05/0.6277, allocations: 11.94 kB / 0.7204 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001689/0.6279, allocations: 32 kB / 0.7204 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.2e-05/0.6279, allocations: 15.92 kB / 0.7204 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.6279, allocations: 8 kB / 0.7204 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003679/0.6316, allocations: 2.553 MB / 0.7229 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009668/0.6325, allocations: 321.4 kB / 0.7232 GB, free: 7.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006892/0.6332, allocations: 20.19 kB / 0.7232 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.6344, allocations: 63.92 kB / 0.7233 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.6346, allocations: 88.17 kB / 0.7234 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.6348, allocations: 47.98 kB / 0.7234 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004287/0.639, allocations: 2.334 MB / 0.7257 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.639, allocations: 3.938 kB / 0.7257 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005215/0.6443, allocations: 1.079 MB / 0.7268 GB, free: 4.031 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (108): * Single equations (assignments): 102 * Array equations: 6 * 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.004153/0.6484, allocations: 3.168 MB / 0.7299 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2423/0.8907, allocations: 4.256 MB / 0.734 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.8907, allocations: 0 / 0.734 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.8918, allocations: 0.8742 MB / 0.7349 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/0.8941, allocations: 353.4 kB / 0.7352 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04796/0.9421, allocations: 41.8 MB / 0.776 GB, free: 117.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00405/0.9461, allocations: 3.169 MB / 0.7791 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004674/0.9508, allocations: 2.224 MB / 0.7813 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002528/0.9533, allocations: 1.655 MB / 0.7829 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.353e-06/0.9533, allocations: 0 / 0.7829 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08824/1.042, allocations: 56.62 MB / 0.8382 GB, free: 54.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 23/24.04, allocations: 11.86 kB / 0.8382 GB, free: 54.44 MB / 0.5606 GB " [Timeout remaining time 636] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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: 27.584142451989464]