Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 172.3 kB / 8.517 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 221.4 MB / 230.3 MB, free: 7.715 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009893/0.0009892, allocations: 80.75 kB / 281.2 MB, free: 5.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.173/0.173, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.324e-06/7.585e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 61.9 MB / 0.4941 GB, free: 1.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2986/0.4091, allocations: 105 MB / 0.5966 GB, free: 7.777 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4094, allocations: 76.61 kB / 0.5967 GB, free: 7.703 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1971/0.6066, allocations: 73.33 MB / 0.6683 GB, free: 13.85 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000188/0.6068, allocations: 71.92 kB / 0.6684 GB, free: 13.78 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.009073/0.6159, allocations: 3.326 MB / 0.6716 GB, free: 10.39 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.616, allocations: 13.47 kB / 0.6716 GB, free: 10.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01652/0.6325, allocations: 3.93 MB / 0.6755 GB, free: 6.438 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/0.6433, allocations: 4.162 MB / 0.6795 GB, free: 2.211 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.6434, allocations: 116 kB / 0.6796 GB, free: 2.098 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008714/0.6443, allocations: 203.9 kB / 0.6798 GB, free: 1.898 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008266/0.6526, allocations: 4.948 MB / 0.6847 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.6655, allocations: 7.965 MB / 0.6924 GB, free: 4.008 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/0.6657, allocations: 55.47 kB / 0.6925 GB, free: 3.953 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004462/0.6661, allocations: 28 kB / 0.6925 GB, free: 3.926 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009555/0.6671, allocations: 0.8836 MB / 0.6934 GB, free: 3.039 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1873/0.8543, allocations: 40.04 MB / 0.7325 GB, free: 170.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002514/0.8569, allocations: 2.459 MB / 0.7349 GB, free: 169.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.8582, allocations: 1.136 MB / 0.736 GB, free: 169.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005729/0.8639, allocations: 4.057 MB / 0.74 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.864, allocations: 51.52 kB / 0.74 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=97): time 3.397e-06/0.864, allocations: 3.5 kB / 0.74 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=112): time 0.01555/0.8795, allocations: 8.384 MB / 0.7482 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/0.8796, allocations: 194.4 kB / 0.7484 GB, free: 165 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003807/0.8834, allocations: 2.95 MB / 0.7513 GB, free: 164.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001442/0.8836, allocations: 25.7 kB / 0.7513 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.8848, allocations: 2.715 MB / 0.7539 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004102/0.8852, allocations: 468.2 kB / 0.7544 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.8853, allocations: 3.156 kB / 0.7544 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002501/0.8856, allocations: 0.5392 MB / 0.7549 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.8873, allocations: 1.469 MB / 0.7563 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003039/0.8904, allocations: 5.205 MB / 0.7614 GB, free: 157.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003061/0.8935, allocations: 2.798 MB / 0.7642 GB, free: 157 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.684e-05/0.8935, allocations: 36.28 kB / 0.7642 GB, free: 157 MB / 0.5105 GB Notification: Performance of matching and sorting (n=731) (initialization): time 0.008592/0.9021, allocations: 5.866 MB / 0.7699 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.9022, allocations: 3.938 kB / 0.7699 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/0.9023, allocations: 135.8 kB / 0.7701 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007125/0.903, allocations: 359.5 kB / 0.7704 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003677/0.9067, allocations: 1.284 MB / 0.7717 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.9092, allocations: 2.582 MB / 0.7742 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003745/0.9129, allocations: 174.2 kB / 0.7743 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005937/0.9135, allocations: 360.8 kB / 0.7747 GB, free: 153.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 692 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006401/0.9142, allocations: 428.9 kB / 0.7751 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.9146, allocations: 287.2 kB / 0.7754 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/0.9165, allocations: 1.304 MB / 0.7766 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-05/0.9166, allocations: 12.12 kB / 0.7767 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.9166, allocations: 6.391 kB / 0.7767 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.9166, allocations: 5.938 kB / 0.7767 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006113/0.9227, allocations: 3.809 MB / 0.7804 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.9227, allocations: 8.438 kB / 0.7804 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008358/0.9236, allocations: 151.3 kB / 0.7805 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004556/0.924, allocations: 159.2 kB / 0.7807 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.918e-05/0.9241, allocations: 3.875 kB / 0.7807 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.9259, allocations: 2.03 MB / 0.7827 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.9259, allocations: 0 / 0.7827 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003625/0.9295, allocations: 3.066 MB / 0.7857 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006649/0.9302, allocations: 330.6 kB / 0.786 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003328/0.9306, allocations: 2 kB / 0.786 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000903/0.9315, allocations: 25.11 kB / 0.786 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.9316, allocations: 45.61 kB / 0.7861 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/0.9317, allocations: 35.47 kB / 0.7861 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003012/0.9347, allocations: 1.958 MB / 0.788 GB, free: 147 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004639/0.9394, allocations: 0.669 MB / 0.7887 GB, free: 147 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 78 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003913/0.9398, allocations: 136.8 kB / 0.7888 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00611/0.9459, allocations: 3.531 MB / 0.7922 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.946, allocations: 4 kB / 0.7922 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009699/0.9469, allocations: 0.8354 MB / 0.7931 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.9486, allocations: 295.9 kB / 0.7933 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009742/0.9583, allocations: 5.813 MB / 0.799 GB, free: 138.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003062/0.9614, allocations: 3.114 MB / 0.8021 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of SimCode: time 7.62e-07/0.9614, allocations: 0 / 0.8021 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.04846/1.01, allocations: 25.94 MB / 0.8274 GB, free: 118.6 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches