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.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009409/0.0009411, allocations: 99.98 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 181.7 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.2 MB / 241.9 MB, free: 336 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1983/0.1983, allocations: 44.22 MB / 337.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003405, allocations: 8 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1251, allocations: 61.92 MB / 471.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02275/0.1479, allocations: 23.34 MB / 495 MB, free: 6.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01275/0.1607, allocations: 5.934 MB / 0.4892 GB, free: 248 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004624/0.1654, allocations: 119.7 kB / 0.4893 GB, free: 128 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00322/0.1686, allocations: 1.112 MB / 0.4904 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008527/0.1772, allocations: 3.335 MB / 0.4936 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.1783, allocations: 215.5 kB / 0.4938 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00508/0.1834, allocations: 3.851 MB / 0.4976 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00426/0.1877, allocations: 2.798 MB / 0.5003 GB, free: 4.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.1895, allocations: 1.008 MB / 0.5013 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.1916, allocations: 1.53 MB / 0.5028 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004338/0.192, allocations: 124 kB / 0.5029 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001194/0.1932, allocations: 0.5383 MB / 0.5035 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00131/0.1946, allocations: 1.441 MB / 0.5049 GB, free: 92 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2476/0.4422, allocations: 0.7683 MB / 0.5056 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00745/0.4497, allocations: 4.786 MB / 0.5103 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.4497, allocations: 1.5 kB / 0.5103 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4497, allocations: 0 / 0.5103 GB, free: 13.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002188/0.45, allocations: 0 / 0.5103 GB, free: 13.81 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.008722/0.4587, allocations: 3.36 MB / 0.5136 GB, free: 12.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.898e-05/0.4588, allocations: 10.16 kB / 0.5136 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001688/0.4605, allocations: 0.7254 MB / 0.5143 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009741/0.4702, allocations: 3.083 MB / 0.5173 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00639/0.4766, allocations: 1.792 MB / 0.5191 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003354/0.477, allocations: 198.8 kB / 0.5192 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001813/0.4789, allocations: 252.4 kB / 0.5195 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0245/0.5034, allocations: 10.21 MB / 0.5295 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.281e-05/0.5035, allocations: 29.34 kB / 0.5295 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004314/0.5039, allocations: 128.3 kB / 0.5296 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003369/0.5073, allocations: 2.376 MB / 0.5319 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02157/0.5289, allocations: 9.039 MB / 0.5408 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0705/0.5994, allocations: 38.16 MB / 0.578 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008074/0.6076, allocations: 3.369 MB / 0.5813 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002702/0.6103, allocations: 1.232 MB / 0.5825 GB, free: 14.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/0.6231, allocations: 5.179 MB / 0.5876 GB, free: 9.059 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.6232, allocations: 50.31 kB / 0.5876 GB, free: 9.004 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 7.344e-06/0.6232, allocations: 0 / 0.5876 GB, free: 9.004 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.01046/0.6336, allocations: 3.323 MB / 0.5909 GB, free: 5.691 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.822e-05/0.6338, allocations: 169.9 kB / 0.591 GB, free: 5.492 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008527/0.6423, allocations: 3.84 MB / 0.5948 GB, free: 1.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003287/0.6427, allocations: 41.7 kB / 0.5948 GB, free: 1.613 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003362/0.6461, allocations: 3.23 MB / 0.598 GB, free: 14.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001163/0.6472, allocations: 0.6012 MB / 0.5986 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005613/0.6478, allocations: 128 kB / 0.5987 GB, free: 13.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005776/0.6484, allocations: 0.5946 MB / 0.5993 GB, free: 13.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004676/0.6531, allocations: 1.941 MB / 0.6012 GB, free: 11.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008692/0.6618, allocations: 6.13 MB / 0.6071 GB, free: 2.988 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007871/0.6697, allocations: 3.45 MB / 0.6105 GB, free: 15.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/0.6699, allocations: 44 kB / 0.6106 GB, free: 15.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.02411/0.694, allocations: 7.703 MB / 0.6181 GB, free: 8.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003569/0.6944, allocations: 68 kB / 0.6181 GB, free: 8.754 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004075/0.6948, allocations: 148 kB / 0.6183 GB, free: 8.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004005/0.6953, allocations: 216 kB / 0.6185 GB, free: 8.398 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007659/0.7029, allocations: 1.468 MB / 0.6199 GB, free: 7.051 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004803/0.7035, allocations: 286.9 kB / 0.6202 GB, free: 6.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009089/0.7126, allocations: 0.9218 MB / 0.6211 GB, free: 5.844 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001908/0.7145, allocations: 404 kB / 0.6215 GB, free: 5.449 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.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 (797): * Single equations (assignments): 789 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008035/0.7226, allocations: 2.234 MB / 0.6237 GB, free: 3.207 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.7237, allocations: 307.9 kB / 0.624 GB, free: 2.902 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.7251, allocations: 411.4 kB / 0.6244 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.66e-05/0.7252, allocations: 39.98 kB / 0.6244 GB, free: 2.461 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.7252, allocations: 0 / 0.6244 GB, free: 2.461 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.7252, allocations: 11.98 kB / 0.6244 GB, free: 2.449 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.7354, allocations: 5.529 MB / 0.6298 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/0.7355, allocations: 8 kB / 0.6298 GB, free: 12.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009444/0.7364, allocations: 207.6 kB / 0.63 GB, free: 12.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.596e-05/0.7365, allocations: 12 kB / 0.63 GB, free: 12.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.009e-05/0.7366, allocations: 27.98 kB / 0.63 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.225e-05/0.7366, allocations: 12.31 kB / 0.6301 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.7366, allocations: 11.94 kB / 0.6301 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.7398, allocations: 2.524 MB / 0.6325 GB, free: 9.938 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009349/0.7407, allocations: 390.2 kB / 0.6329 GB, free: 9.535 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003374/0.7411, allocations: 24.62 kB / 0.6329 GB, free: 9.512 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009129/0.742, allocations: 72.28 kB / 0.633 GB, free: 9.445 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.7422, allocations: 80.38 kB / 0.6331 GB, free: 9.367 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.7423, allocations: 43.98 kB / 0.6331 GB, free: 9.324 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004842/0.7471, allocations: 2.339 MB / 0.6354 GB, free: 7 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7471, allocations: 0 / 0.6354 GB, free: 7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008054/0.7552, allocations: 1.109 MB / 0.6365 GB, free: 5.895 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00456/0.7598, allocations: 3.154 MB / 0.6396 GB, free: 2.645 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008045/0.7679, allocations: 4.404 MB / 0.6439 GB, free: 14.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/0.7679, allocations: 4 kB / 0.6439 GB, free: 14.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.7694, allocations: 0.9479 MB / 0.6448 GB, free: 13.33 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.7718, allocations: 343.7 kB / 0.6451 GB, free: 13 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05191/0.8237, allocations: 29.8 MB / 0.6742 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003051/0.8268, allocations: 3.215 MB / 0.6774 GB, free: 8.398 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004648/0.8315, allocations: 2.234 MB / 0.6795 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00192/0.8334, allocations: 1.702 MB / 0.6812 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of SimCode: time 7.41e-07/0.8334, allocations: 0 / 0.6812 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3608/1.194, allocations: 63.87 MB / 0.7436 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/1.194, allocations: 192.2 kB / 0.7438 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.069/5.264, allocations: 0 / 0.7438 GB, free: 164.7 MB / 0.5294 GB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat does not exist to compare? outputFormat=mat