Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001055/0.001055, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00088/0.0008801, allocations: 85.16 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1871/0.1871, allocations: 45.14 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.489e-05/3.491e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 63.25 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.4729, allocations: 110.1 MB / 0.619 GB, free: 15.94 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.4731, allocations: 73.72 kB / 0.619 GB, free: 15.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1554/0.6285, allocations: 67.74 MB / 0.6852 GB, free: 4.379 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.6285, allocations: 0 / 0.6852 GB, free: 4.379 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001978/0.6287, allocations: 68 kB / 0.6852 GB, free: 4.312 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.008777/0.6375, allocations: 3.254 MB / 0.6884 GB, free: 1 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.6376, allocations: 11.97 kB / 0.6884 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001697/0.6393, allocations: 0.5562 MB / 0.689 GB, free: 432 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002792/0.6421, allocations: 0.5652 MB / 0.6895 GB, free: 15.85 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004634/0.6468, allocations: 2.032 MB / 0.6915 GB, free: 13.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002017/0.647, allocations: 246.7 kB / 0.6917 GB, free: 13.53 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009445/0.6479, allocations: 331.9 kB / 0.6921 GB, free: 13.21 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/0.665, allocations: 7.561 MB / 0.6994 GB, free: 5.27 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.6652, allocations: 11.88 kB / 0.6995 GB, free: 5.258 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000883/0.6661, allocations: 152 kB / 0.6996 GB, free: 5.109 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009162/0.667, allocations: 0.6026 MB / 0.7002 GB, free: 4.504 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01373/0.6807, allocations: 6.214 MB / 0.7063 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03057/0.7113, allocations: 24.14 MB / 0.7298 GB, free: 5.523 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005263/0.7167, allocations: 1.823 MB / 0.7316 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.7178, allocations: 0.788 MB / 0.7324 GB, free: 2.895 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006977/0.7248, allocations: 5.826 MB / 0.7381 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.7248, allocations: 47.23 kB / 0.7381 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=75): time 2.655e-06/0.7248, allocations: 0 / 0.7381 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=93): time 0.0121/0.7369, allocations: 4.005 MB / 0.742 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.737, allocations: 68.19 kB / 0.7421 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002939/0.74, allocations: 2.004 MB / 0.7441 GB, free: 6.34 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.085e-05/0.74, allocations: 45.64 kB / 0.7441 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.7413, allocations: 2.042 MB / 0.7461 GB, free: 4.215 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002691/0.7416, allocations: 371.4 kB / 0.7464 GB, free: 3.848 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.7417, allocations: 68 kB / 0.7465 GB, free: 3.781 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002104/0.7419, allocations: 445.2 kB / 0.7469 GB, free: 3.34 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.7432, allocations: 0.8501 MB / 0.7478 GB, free: 2.488 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.237/0.9802, allocations: 2.907 MB / 0.7506 GB, free: 145 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.9827, allocations: 1.554 MB / 0.7521 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-05/0.9828, allocations: 21.09 kB / 0.7521 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.00541/0.9882, allocations: 3.682 MB / 0.7557 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.634e-05/0.9883, allocations: 40.02 kB / 0.7558 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.059e-05/0.9884, allocations: 73.94 kB / 0.7558 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001286/0.9885, allocations: 112 kB / 0.756 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002213/0.9907, allocations: 0.7852 MB / 0.7567 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001298/0.9909, allocations: 147.7 kB / 0.7569 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/0.9926, allocations: 155.4 kB / 0.757 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002589/0.9929, allocations: 202.4 kB / 0.7572 GB, free: 144.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 336 * Number of states: 0 () * Number of discrete variables: 50 (jointUSP.prismatic.positiveBranch,prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,prism.color[3],prism.color[2],prism.color[1],rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 436 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003826/0.9933, allocations: 394.2 kB / 0.7576 GB, free: 144.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.9935, allocations: 201.8 kB / 0.7578 GB, free: 144.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001819/0.9954, allocations: 1.116 MB / 0.7589 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.9954, allocations: 10.88 kB / 0.7589 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.9954, allocations: 1.156 kB / 0.7589 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.9954, allocations: 4.594 kB / 0.7589 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008227/1.004, allocations: 5.383 MB / 0.7641 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-05/1.004, allocations: 21.75 kB / 0.7642 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007262/1.004, allocations: 235.3 kB / 0.7644 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.433e-05/1.004, allocations: 28.81 kB / 0.7644 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-05/1.005, allocations: 45.45 kB / 0.7644 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.352e-05/1.005, allocations: 39.31 kB / 0.7645 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.189e-05/1.005, allocations: 28.88 kB / 0.7645 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/1.007, allocations: 3.464 MB / 0.7679 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/1.008, allocations: 307.5 kB / 0.7682 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/1.008, allocations: 51.36 kB / 0.7682 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006872/1.009, allocations: 48.39 kB / 0.7683 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/1.009, allocations: 138.8 kB / 0.7684 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.679e-05/1.009, allocations: 54.53 kB / 0.7685 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002235/1.011, allocations: 1.439 MB / 0.7699 GB, free: 140 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.71e-07/1.011, allocations: 3.156 kB / 0.7699 GB, free: 140 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00273/1.014, allocations: 0.5766 MB / 0.7704 GB, free: 140 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 131 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002884/1.017, allocations: 9.136 MB / 0.7794 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003458/1.02, allocations: 2.121 MB / 0.7814 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/1.02, allocations: 6.781 kB / 0.7814 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006272/1.021, allocations: 0.5527 MB / 0.782 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/1.022, allocations: 325.5 kB / 0.7823 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009026/1.031, allocations: 5.863 MB / 0.788 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001836/1.033, allocations: 2.525 MB / 0.7905 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002038/1.035, allocations: 0.9279 MB / 0.7914 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/1.036, allocations: 1.254 MB / 0.7926 GB, free: 128 MB / 0.5261 GB Notification: Performance of SimCode: time 8.22e-07/1.036, allocations: 0 / 0.7926 GB, free: 128 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05548/1.092, allocations: 44.27 MB / 0.8358 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/1.092, allocations: 152.8 kB / 0.836 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.723/3.815, allocations: 0 / 0.836 GB, free: 112.5 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat