Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001232/0.001232, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2262/0.2262, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 81.5 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1232, allocations: 62.43 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01369/0.1369, allocations: 11.93 MB / 492 MB, free: 9.203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009669/0.1467, allocations: 4.086 MB / 496.1 MB, free: 5.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002412/0.1491, allocations: 79.81 kB / 496.2 MB, free: 5.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003965/0.1532, allocations: 1.654 MB / 497.9 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004209/0.1574, allocations: 1.522 MB / 499.4 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002859/0.1603, allocations: 1.177 MB / 0.4888 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005057/0.1654, allocations: 3.502 MB / 0.4923 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003955/0.1694, allocations: 2.454 MB / 0.4946 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002624/0.172, allocations: 1.156 MB / 0.4958 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002612/0.1747, allocations: 1.561 MB / 0.4973 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001293/0.176, allocations: 236 kB / 0.4975 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002602/0.1786, allocations: 0.7138 MB / 0.4982 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002463/0.1811, allocations: 1.531 MB / 0.4997 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004771/0.1859, allocations: 1.867 MB / 0.5015 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2923/0.4782, allocations: 5.823 MB / 0.5072 GB, free: 18.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.491e-05/0.4782, allocations: 0.7188 kB / 0.5072 GB, free: 18.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.079e-06/0.4783, allocations: 0 / 0.5072 GB, free: 18.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004111/0.4787, allocations: 1.625 kB / 0.5072 GB, free: 18.62 MB / 382.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.01606/0.4947, allocations: 3.977 MB / 0.5111 GB, free: 16.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.276e-05/0.4949, allocations: 9.938 kB / 0.5111 GB, free: 16.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00233/0.4972, allocations: 0.7144 MB / 0.5118 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01149/0.5087, allocations: 2.97 MB / 0.5147 GB, free: 16.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006403/0.5151, allocations: 1.792 MB / 0.5165 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.5154, allocations: 192.7 kB / 0.5167 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009211/0.5163, allocations: 249.1 kB / 0.5169 GB, free: 16.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.5353, allocations: 10.04 MB / 0.5267 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.636e-05/0.5354, allocations: 29.56 kB / 0.5267 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005206/0.5359, allocations: 128.3 kB / 0.5268 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003766/0.5397, allocations: 2.315 MB / 0.5291 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01461/0.5543, allocations: 8.935 MB / 0.5378 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04913/0.6035, allocations: 37.7 MB / 0.5747 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006151/0.6097, allocations: 3.377 MB / 0.578 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.6117, allocations: 1.226 MB / 0.5792 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008763/0.6204, allocations: 5.181 MB / 0.5842 GB, free: 8.113 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.6205, allocations: 46.03 kB / 0.5843 GB, free: 8.062 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 4.899e-06/0.6205, allocations: 0 / 0.5843 GB, free: 8.062 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.007361/0.6279, allocations: 3.327 MB / 0.5875 GB, free: 4.746 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.628, allocations: 170.5 kB / 0.5877 GB, free: 4.547 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006257/0.6343, allocations: 3.828 MB / 0.5914 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002639/0.6346, allocations: 48.03 kB / 0.5914 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002779/0.6374, allocations: 3.173 MB / 0.5945 GB, free: 13.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009536/0.6384, allocations: 0.6106 MB / 0.5951 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002036/0.6404, allocations: 1.298 MB / 0.5964 GB, free: 11.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.6406, allocations: 305.1 kB / 0.5967 GB, free: 11.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00303/0.6436, allocations: 1.957 MB / 0.5986 GB, free: 9.348 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006613/0.6502, allocations: 6.104 MB / 0.6046 GB, free: 1.242 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/0.6607, allocations: 8.799 MB / 0.6132 GB, free: 6.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/0.6609, allocations: 44 kB / 0.6132 GB, free: 6.938 MB / 462.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01465/0.6755, allocations: 7.705 MB / 0.6207 GB, free: 15.47 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000168/0.6757, allocations: 71.94 kB / 0.6208 GB, free: 15.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002439/0.676, allocations: 148 kB / 0.6209 GB, free: 15.26 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000221/0.6762, allocations: 192 kB / 0.6211 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00471/0.6809, allocations: 1.458 MB / 0.6226 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003075/0.6813, allocations: 287.4 kB / 0.6228 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005194/0.6865, allocations: 0.9131 MB / 0.6237 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001053/0.6875, allocations: 396 kB / 0.6241 GB, free: 12.02 MB / 478.1 MB 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.004632/0.6922, allocations: 2.197 MB / 0.6262 GB, free: 9.816 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007581/0.693, allocations: 310.1 kB / 0.6265 GB, free: 9.512 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.694, allocations: 407 kB / 0.6269 GB, free: 9.109 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.517e-05/0.6941, allocations: 39.28 kB / 0.627 GB, free: 9.074 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/0.6941, allocations: 4 kB / 0.627 GB, free: 9.07 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.6941, allocations: 11.97 kB / 0.627 GB, free: 9.059 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.7057, allocations: 5.462 MB / 0.6323 GB, free: 3.496 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.216e-05/0.7058, allocations: 4 kB / 0.6323 GB, free: 3.492 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.7069, allocations: 207.7 kB / 0.6325 GB, free: 3.289 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.676e-05/0.7069, allocations: 8 kB / 0.6325 GB, free: 3.281 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.707, allocations: 39.92 kB / 0.6326 GB, free: 3.242 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.239e-05/0.707, allocations: 11.94 kB / 0.6326 GB, free: 3.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.7071, allocations: 8 kB / 0.6326 GB, free: 3.223 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.7102, allocations: 2.528 MB / 0.635 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008888/0.7111, allocations: 372.7 kB / 0.6354 GB, free: 232 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006681/0.7118, allocations: 27.94 kB / 0.6354 GB, free: 204 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.7131, allocations: 63.91 kB / 0.6355 GB, free: 140 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/0.7133, allocations: 84.27 kB / 0.6356 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-05/0.7134, allocations: 43.98 kB / 0.6356 GB, free: 16 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004572/0.718, allocations: 2.334 MB / 0.6379 GB, free: 13.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.024e-06/0.718, allocations: 4 kB / 0.6379 GB, free: 13.69 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005574/0.7236, allocations: 1.064 MB / 0.6389 GB, free: 12.63 MB / 494.1 MB 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.00381/0.7275, allocations: 3.165 MB / 0.642 GB, free: 9.367 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008574/0.736, allocations: 5.088 MB / 0.647 GB, free: 4.316 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.7361, allocations: 0 / 0.647 GB, free: 4.316 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.7373, allocations: 0.9545 MB / 0.6479 GB, free: 3.363 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002676/0.74, allocations: 362.9 kB / 0.6483 GB, free: 3.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06854/0.8086, allocations: 45.56 MB / 0.6928 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004157/0.8128, allocations: 3.166 MB / 0.6958 GB, free: 10.47 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00539/0.8182, allocations: 2.223 MB / 0.698 GB, free: 8.234 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00261/0.8208, allocations: 1.659 MB / 0.6996 GB, free: 6.574 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/0.8208, allocations: 0 / 0.6996 GB, free: 6.574 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3687/1.19, allocations: 54.82 MB / 0.7532 GB, free: 170.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.211/10.4, allocations: 15.81 kB / 0.7532 GB, free: 170.6 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv","/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_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches