Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 243.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007579/0.0007579, allocations: 100.2 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3117/0.3117, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002627, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2877, allocations: 62.95 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0275/0.3152, allocations: 36.92 MB / 0.552 GB, free: 10.73 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0162/0.3315, allocations: 8.391 MB / 0.5602 GB, free: 5.035 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007649/0.3392, allocations: 166.6 kB / 0.5604 GB, free: 5.012 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00626/0.3455, allocations: 1.921 MB / 0.5622 GB, free: 4.332 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01635/0.3618, allocations: 5.797 MB / 0.5679 GB, free: 1.879 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003079/0.3649, allocations: 0.5405 MB / 0.5684 GB, free: 1.535 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04009/0.405, allocations: 31.83 MB / 0.5995 GB, free: 3.719 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004505/0.4096, allocations: 3.195 MB / 0.6026 GB, free: 468 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.4115, allocations: 1.008 MB / 0.6036 GB, free: 15.44 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002015/0.4135, allocations: 1.601 MB / 0.6052 GB, free: 13.84 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003921/0.4139, allocations: 116 kB / 0.6053 GB, free: 13.72 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.4158, allocations: 1.045 MB / 0.6063 GB, free: 12.68 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001296/0.4171, allocations: 1.414 MB / 0.6077 GB, free: 11.26 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.4187, allocations: 1.605 MB / 0.6093 GB, free: 9.637 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004661/0.4233, allocations: 4.672 MB / 0.6138 GB, free: 4.957 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4234, allocations: 0 / 0.6138 GB, free: 4.957 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.4234, allocations: 4 kB / 0.6138 GB, free: 4.953 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001116/0.4235, allocations: 0 / 0.6138 GB, free: 4.953 MB / 426.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.007094/0.4306, allocations: 3.379 MB / 0.6171 GB, free: 1.508 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.4306, allocations: 12.03 kB / 0.6171 GB, free: 1.496 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001008/0.4317, allocations: 0.604 MB / 0.6177 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07971/0.5114, allocations: 7.186 MB / 0.6247 GB, free: 9.684 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005174/0.5166, allocations: 2.471 MB / 0.6272 GB, free: 7.148 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.5168, allocations: 184.7 kB / 0.6273 GB, free: 6.965 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005031/0.5173, allocations: 251.8 kB / 0.6276 GB, free: 6.719 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/0.5289, allocations: 8.087 MB / 0.6355 GB, free: 13.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.338e-05/0.529, allocations: 35.66 kB / 0.6355 GB, free: 13.95 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002989/0.5293, allocations: 119.9 kB / 0.6356 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002663/0.532, allocations: 1.707 MB / 0.6373 GB, free: 12.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01124/0.5432, allocations: 6.748 MB / 0.6439 GB, free: 5.363 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03476/0.578, allocations: 32.2 MB / 0.6753 GB, free: 4.156 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004399/0.5824, allocations: 2.415 MB / 0.6777 GB, free: 1.598 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.5838, allocations: 1.058 MB / 0.6787 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003298/0.5841, allocations: 327.2 kB / 0.679 GB, free: 156 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.5842, allocations: 54.42 kB / 0.6791 GB, free: 92 kB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 4.097e-06/0.5842, allocations: 4 kB / 0.6791 GB, free: 88 kB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.2123/0.7965, allocations: 8.441 MB / 0.6873 GB, free: 131.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.7966, allocations: 195.7 kB / 0.6875 GB, free: 131.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003696/0.8003, allocations: 3.798 MB / 0.6912 GB, free: 130.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-05/0.8004, allocations: 41.33 kB / 0.6913 GB, free: 130.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.8015, allocations: 2.809 MB / 0.694 GB, free: 128 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002876/0.8018, allocations: 495.6 kB / 0.6945 GB, free: 127.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.802, allocations: 112.4 kB / 0.6946 GB, free: 127.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.8022, allocations: 0.536 MB / 0.6951 GB, free: 127.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/0.804, allocations: 1.574 MB / 0.6966 GB, free: 126.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002755/0.8067, allocations: 5.186 MB / 0.7017 GB, free: 121.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00562/0.8124, allocations: 7.38 MB / 0.7089 GB, free: 114.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.935e-05/0.8125, allocations: 43.44 kB / 0.709 GB, free: 114.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.009703/0.8222, allocations: 6.658 MB / 0.7155 GB, free: 112 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.27e-05/0.8223, allocations: 64 kB / 0.7155 GB, free: 112 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/0.8224, allocations: 128.6 kB / 0.7156 GB, free: 112 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008694/0.8233, allocations: 405.4 kB / 0.716 GB, free: 112 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003115/0.8265, allocations: 1.242 MB / 0.7172 GB, free: 111.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003134/0.8296, allocations: 3.096 MB / 0.7203 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003261/0.8329, allocations: 297.2 kB / 0.7205 GB, free: 109.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004517/0.8333, allocations: 342.7 kB / 0.7209 GB, free: 109.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (672): * Single equations (assignments): 668 * 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.002388/0.8357, allocations: 1.837 MB / 0.7227 GB, free: 108.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004534/0.8362, allocations: 313 kB / 0.723 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002302/0.8385, allocations: 1.473 MB / 0.7244 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/0.8385, allocations: 12.77 kB / 0.7244 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.8385, allocations: 7.875 kB / 0.7244 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.8386, allocations: 4.406 kB / 0.7244 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007005/0.8456, allocations: 4.981 MB / 0.7293 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.8456, allocations: 9.859 kB / 0.7293 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006808/0.8463, allocations: 159.8 kB / 0.7295 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006004/0.8469, allocations: 225.1 kB / 0.7297 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.93e-05/0.847, allocations: 20.39 kB / 0.7297 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.8492, allocations: 2.523 MB / 0.7322 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.8492, allocations: 3.938 kB / 0.7322 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003535/0.8528, allocations: 3.272 MB / 0.7354 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006614/0.8534, allocations: 374.9 kB / 0.7357 GB, free: 100.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/0.8537, allocations: 24.56 kB / 0.7357 GB, free: 100.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008969/0.8546, allocations: 55.7 kB / 0.7358 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.8548, allocations: 58.77 kB / 0.7358 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.04e-05/0.8549, allocations: 37.08 kB / 0.7359 GB, free: 100.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002646/0.8576, allocations: 2.358 MB / 0.7382 GB, free: 98.31 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8576, allocations: 0 / 0.7382 GB, free: 98.31 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003674/0.8612, allocations: 0.7981 MB / 0.739 GB, free: 97.52 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.003671/0.8649, allocations: 3.894 MB / 0.7428 GB, free: 93.97 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00496/0.8699, allocations: 3.824 MB / 0.7465 GB, free: 90.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.8699, allocations: 480 / 0.7465 GB, free: 90.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.8711, allocations: 0.9508 MB / 0.7474 GB, free: 89.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/0.8734, allocations: 365.5 kB / 0.7478 GB, free: 88.95 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03393/0.9073, allocations: 28.4 MB / 0.7755 GB, free: 57.24 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002553/0.9099, allocations: 2.81 MB / 0.7783 GB, free: 54.41 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001622/0.9116, allocations: 1.565 MB / 0.7798 GB, free: 52.84 MB / 490.7 MB Notification: Performance of SimCode: time 1.312e-06/0.9116, allocations: 0 / 0.7798 GB, free: 52.84 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.073/6.984, allocations: 76.46 MB / 0.8545 GB, free: 8.336 MB / 0.5105 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches