Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",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.001292/0.001292, allocations: 92.91 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 175.3 kB / 16.57 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.36/0.36, allocations: 43.55 MB / 314.5 MB, free: 9.043 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000607/0.0006071, allocations: 12 kB / 384 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1382, allocations: 58.86 MB / 442.8 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3239/0.4622, allocations: 79.75 MB / 0.5103 GB, free: 14.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05228/0.5145, allocations: 19.61 MB / 0.5295 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02363/0.5382, allocations: 429.6 kB / 0.5299 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0195/0.5578, allocations: 4.245 MB / 0.5341 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04895/0.6068, allocations: 10.65 MB / 0.5445 GB, free: 7.965 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00983/0.6166, allocations: 1.837 MB / 0.5462 GB, free: 6.125 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.05013/0.6668, allocations: 29.37 MB / 0.5749 GB, free: 8.734 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06077/0.7276, allocations: 39.54 MB / 0.6135 GB, free: 1.098 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007541/0.7352, allocations: 3.069 MB / 0.6165 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008661/0.7439, allocations: 3.897 MB / 0.6203 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003264/0.7472, allocations: 0.5469 MB / 0.6209 GB, free: 9.559 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005851/0.7531, allocations: 1.682 MB / 0.6225 GB, free: 7.879 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009341/0.7625, allocations: 6.075 MB / 0.6285 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.5806/1.343, allocations: 3.302 MB / 0.6317 GB, free: 50.12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03157/1.375, allocations: 28.2 MB / 0.6592 GB, free: 43.6 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.375, allocations: 0.9688 kB / 0.6592 GB, free: 43.6 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.466e-06/1.375, allocations: 2.078 kB / 0.6592 GB, free: 43.6 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001629/1.376, allocations: 0.75 kB / 0.6592 GB, free: 43.6 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.06264/1.439, allocations: 16.08 MB / 0.6749 GB, free: 34.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/1.439, allocations: 9.625 kB / 0.6749 GB, free: 34.82 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01652/1.456, allocations: 2.967 MB / 0.6778 GB, free: 34.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1696/1.625, allocations: 16.09 MB / 0.6935 GB, free: 28.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02971/1.655, allocations: 9.736 MB / 0.7031 GB, free: 26.14 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001221/1.656, allocations: 1.316 MB / 0.7043 GB, free: 26.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009868/1.666, allocations: 1.735 MB / 0.706 GB, free: 25.45 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1218/1.788, allocations: 41.11 MB / 0.7462 GB, free: 11.57 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001131/1.789, allocations: 96.64 kB / 0.7463 GB, free: 11.51 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01022/1.799, allocations: 0.7576 MB / 0.747 GB, free: 11.33 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007905/1.807, allocations: 4.163 MB / 0.7511 GB, free: 7.93 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0886/1.896, allocations: 33.75 MB / 0.784 GB, free: 0.5977 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6439/2.54, allocations: 119.2 MB / 0.9004 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06048/2.601, allocations: 22.31 MB / 0.9222 GB, free: 147 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04728/2.648, allocations: 27.49 MB / 0.9491 GB, free: 137 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/2.648, allocations: 70.36 kB / 0.9491 GB, free: 136.9 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=372): time 7.304e-06/2.648, allocations: 0 / 0.9491 GB, free: 136.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=486): time 1.373/4.021, allocations: 327.4 MB / 1.269 GB, free: 64.02 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.258e-05/4.021, allocations: 282.1 kB / 1.269 GB, free: 63.7 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02075/4.042, allocations: 10.44 MB / 1.279 GB, free: 53.26 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.002446/4.045, allocations: 103.3 kB / 1.279 GB, free: 53.16 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.007174/4.052, allocations: 10.81 MB / 1.29 GB, free: 42.35 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.003764/4.056, allocations: 1.893 MB / 1.292 GB, free: 40.47 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002432/4.058, allocations: 343.4 kB / 1.292 GB, free: 40.14 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0007783/4.059, allocations: 1.029 MB / 1.293 GB, free: 39.11 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3179/4.377, allocations: 15.98 MB / 1.309 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03867/4.416, allocations: 26.54 MB / 1.335 GB, free: 178.2 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03316/4.449, allocations: 19.99 MB / 1.354 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006619/4.449, allocations: 105.2 kB / 1.354 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.07849/4.528, allocations: 42.27 MB / 1.396 GB, free: 135.8 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004426/4.529, allocations: 176.5 kB / 1.396 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008738/4.529, allocations: 372 kB / 1.396 GB, free: 135.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002325/4.532, allocations: 1.007 MB / 1.397 GB, free: 134.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02406/4.556, allocations: 5.223 MB / 1.402 GB, free: 130.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007334/4.563, allocations: 6.523 MB / 1.409 GB, free: 124.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02425/4.587, allocations: 2.11 MB / 1.411 GB, free: 122.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005523/4.593, allocations: 1.022 MB / 1.412 GB, free: 121.8 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1713 * Number of states: 0 () * Number of discrete variables: 48 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2149): * Single equations (assignments): 2139 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02401/4.617, allocations: 7.848 MB / 1.419 GB, free: 114.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003403/4.621, allocations: 0.8692 MB / 1.42 GB, free: 114.5 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04456/4.665, allocations: 30.46 MB / 1.45 GB, free: 84.81 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001356/4.665, allocations: 97.45 kB / 1.45 GB, free: 84.71 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/4.665, allocations: 7.188 kB / 1.45 GB, free: 84.71 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001036/4.665, allocations: 19.92 kB / 1.45 GB, free: 84.69 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4437/5.109, allocations: 72.82 MB / 1.521 GB, free: 178.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-05/5.109, allocations: 1.938 kB / 1.521 GB, free: 178.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01472/5.124, allocations: 2.046 MB / 1.523 GB, free: 178.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/5.126, allocations: 462.3 kB / 1.524 GB, free: 178.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002433/5.128, allocations: 82.64 kB / 1.524 GB, free: 178 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006113/5.134, allocations: 5.146 MB / 1.529 GB, free: 174.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/5.134, allocations: 2.047 kB / 1.529 GB, free: 174.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06719/5.202, allocations: 51.07 MB / 1.578 GB, free: 149.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01251/5.214, allocations: 3.983 MB / 1.582 GB, free: 146.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005288/5.219, allocations: 77.56 kB / 1.582 GB, free: 146.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01337/5.233, allocations: 1.591 MB / 1.584 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003076/5.236, allocations: 252.8 kB / 1.584 GB, free: 145.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002018/5.238, allocations: 128.5 kB / 1.584 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01359/5.252, allocations: 6.507 MB / 1.591 GB, free: 140.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.51e-07/5.252, allocations: 2 kB / 1.591 GB, free: 140.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.02327/5.275, allocations: 4.304 MB / 1.595 GB, free: 135.9 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * 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 (444): * Single equations (assignments): 434 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0642/5.339, allocations: 52 MB / 1.646 GB, free: 87.07 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.05186/5.391, allocations: 35.27 MB / 1.68 GB, free: 51.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/5.391, allocations: 0.625 kB / 1.68 GB, free: 51.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.02075/5.412, allocations: 15.06 MB / 1.695 GB, free: 36.82 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009721/5.422, allocations: 1.348 MB / 1.696 GB, free: 35.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.007/6.429, allocations: 433.9 MB / 2.12 GB, free: 51.64 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0277/6.457, allocations: 11.33 MB / 2.131 GB, free: 41.16 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.3354/6.792, allocations: 7.368 MB / 2.138 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02229/6.815, allocations: 7.786 MB / 2.146 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of SimCode: time 1.693e-06/6.815, allocations: 0 / 2.146 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7562/7.571, allocations: 273.1 MB / 2.413 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/7.571, allocations: 216.4 kB / 2.413 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.04/16.61, allocations: 4 kB / 2.413 GB, free: 184.9 MB / 0.6075 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat