Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.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.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.2 MB / 245 MB, free: 5.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009215/0.0009216, allocations: 104.1 kB / 297.3 MB, free: 5.984 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4126/0.4126, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003232, allocations: 11.98 kB / 468.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3658, allocations: 63.25 MB / 0.5193 GB, free: 37.7 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.5183, allocations: 107.4 MB / 0.6241 GB, free: 12.01 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.5186, allocations: 87.92 kB / 0.6242 GB, free: 11.93 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.629/1.148, allocations: 118.2 MB / 0.7397 GB, free: 95.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.375e-06/1.148, allocations: 0 / 0.7397 GB, free: 95.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005613/1.148, allocations: 109 kB / 0.7398 GB, free: 95.54 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02663/1.175, allocations: 7 MB / 0.7466 GB, free: 91.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/1.175, allocations: 7.562 kB / 0.7466 GB, free: 91.09 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005112/1.18, allocations: 0.7594 MB / 0.7473 GB, free: 90.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03789/1.218, allocations: 10.12 MB / 0.7572 GB, free: 85.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0235/1.242, allocations: 8.386 MB / 0.7654 GB, free: 77.38 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005327/1.242, allocations: 367.9 kB / 0.7658 GB, free: 77.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003001/1.245, allocations: 471.7 kB / 0.7662 GB, free: 76.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02663/1.272, allocations: 10.75 MB / 0.7767 GB, free: 65.28 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002623/1.272, allocations: 59.55 kB / 0.7768 GB, free: 65.22 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000621/1.273, allocations: 199.9 kB / 0.777 GB, free: 65.03 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001177/1.274, allocations: 1.007 MB / 0.7779 GB, free: 64.02 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01931/1.293, allocations: 9.059 MB / 0.7868 GB, free: 54.93 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06229/1.356, allocations: 43.97 MB / 0.8297 GB, free: 9.738 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02116/1.377, allocations: 7.927 MB / 0.8375 GB, free: 1.793 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/1.378, allocations: 1.118 MB / 0.8386 GB, free: 0.5078 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.877e-05/1.378, allocations: 60.81 kB / 0.8386 GB, free: 448 kB / 490.7 MB Notification: Performance of pre-optimization done (n=286): time 4.919e-06/1.378, allocations: 4 kB / 0.8386 GB, free: 444 kB / 490.7 MB Notification: Performance of matching and sorting (n=415): time 0.6095/1.988, allocations: 76.29 MB / 0.9131 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01617/2.004, allocations: 11.34 MB / 0.9242 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006335/2.01, allocations: 3.685 MB / 0.9278 GB, free: 122 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00121/2.011, allocations: 97.19 kB / 0.9279 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002625/2.014, allocations: 3 MB / 0.9308 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00297/2.017, allocations: 1.438 MB / 0.9322 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005663/2.018, allocations: 110.8 kB / 0.9323 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003991/2.018, allocations: 0.535 MB / 0.9329 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005684/2.024, allocations: 4.484 MB / 0.9372 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006599/2.03, allocations: 6.529 MB / 0.9436 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006909/2.037, allocations: 5.457 MB / 0.9489 GB, free: 110 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-05/2.037, allocations: 20.25 kB / 0.949 GB, free: 110 MB / 0.5261 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.03532/2.073, allocations: 18.59 MB / 0.9671 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.915e-05/2.073, allocations: 36.38 kB / 0.9671 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.263e-05/2.073, allocations: 67.41 kB / 0.9672 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02318/2.096, allocations: 8.617 MB / 0.9756 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004614/2.101, allocations: 1.042 MB / 0.9766 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06674/2.168, allocations: 50.53 MB / 1.026 GB, free: 52.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007419/2.175, allocations: 499.1 kB / 1.026 GB, free: 52.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001775/2.177, allocations: 279.9 kB / 1.027 GB, free: 51.88 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 57 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (531): * Single equations (assignments): 526 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,51.4%) 103,(3,88.9%) 23} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.007482/2.184, allocations: 2.278 MB / 1.029 GB, free: 49.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00213/2.186, allocations: 485.8 kB / 1.029 GB, free: 49.11 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.037/2.223, allocations: 17.6 MB / 1.047 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03372/2.257, allocations: 16.11 MB / 1.062 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001198/2.257, allocations: 31.95 kB / 1.062 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001481/2.258, allocations: 25.73 kB / 1.062 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4663/2.724, allocations: 34.74 MB / 1.096 GB, free: 133.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-05/2.724, allocations: 4.25 kB / 1.096 GB, free: 133.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00271/2.727, allocations: 445.5 kB / 1.097 GB, free: 133.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02545/2.752, allocations: 8.058 MB / 1.105 GB, free: 133.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001314/2.754, allocations: 80.47 kB / 1.105 GB, free: 133.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06991/2.824, allocations: 49.78 MB / 1.153 GB, free: 118.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01316/2.837, allocations: 10.13 MB / 1.163 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03866/2.875, allocations: 23.94 MB / 1.187 GB, free: 99.12 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002412/2.878, allocations: 0.5083 MB / 1.187 GB, free: 98.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002136/2.88, allocations: 83.61 kB / 1.187 GB, free: 98.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004262/2.884, allocations: 352.5 kB / 1.187 GB, free: 98.41 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001677/2.886, allocations: 338.2 kB / 1.188 GB, free: 98.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003468/2.886, allocations: 103.7 kB / 1.188 GB, free: 98.11 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004517/2.891, allocations: 2.74 MB / 1.191 GB, free: 95.86 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/2.891, allocations: 0 / 1.191 GB, free: 95.86 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00832/2.899, allocations: 1.969 MB / 1.193 GB, free: 93.89 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * 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 (226): * Single equations (assignments): 223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,51.4%) 96,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.03868/2.938, allocations: 25.84 MB / 1.218 GB, free: 70.24 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0206/2.959, allocations: 12.35 MB / 1.23 GB, free: 57.88 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/2.959, allocations: 0 / 1.23 GB, free: 57.88 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01349/2.972, allocations: 7.123 MB / 1.237 GB, free: 50.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006039/2.978, allocations: 0.7562 MB / 1.237 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.485/3.463, allocations: 108.9 MB / 1.344 GB, free: 130.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00522/3.469, allocations: 4.284 MB / 1.348 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005233/3.474, allocations: 1.682 MB / 1.35 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005019/3.479, allocations: 2.598 MB / 1.352 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.984e-06/3.479, allocations: 0 / 1.352 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5947/4.074, allocations: 161.8 MB / 1.51 GB, free: 119.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/4.074, allocations: 221.8 kB / 1.51 GB, free: 119.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.4/10.47, allocations: 3.25 kB / 1.51 GB, free: 119.2 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat