Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 198.8 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.359/1.359, allocations: 227.2 MB / 245 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009479/0.0009478, allocations: 114.2 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4035/0.4035, allocations: 45.23 MB / 394.6 MB, free: 31.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003302, allocations: 12.2 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3566, allocations: 63.25 MB / 0.5193 GB, free: 37.33 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1589/0.5155, allocations: 107.8 MB / 0.6246 GB, free: 11.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.5159, allocations: 79.94 kB / 0.6247 GB, free: 11.49 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6285/1.144, allocations: 133.8 MB / 0.7553 GB, free: 87.73 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.008e-06/1.144, allocations: 0 / 0.7553 GB, free: 87.73 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.00036/1.145, allocations: 117.6 kB / 0.7554 GB, free: 87.73 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02611/1.171, allocations: 6.662 MB / 0.7619 GB, free: 81.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/1.171, allocations: 12.03 kB / 0.7619 GB, free: 81.45 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006089/1.177, allocations: 1.08 MB / 0.763 GB, free: 80.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02503/1.202, allocations: 6.427 MB / 0.7693 GB, free: 73.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01771/1.22, allocations: 7.093 MB / 0.7762 GB, free: 66.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004157/1.22, allocations: 431.2 kB / 0.7766 GB, free: 66.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004375/1.225, allocations: 0.566 MB / 0.7772 GB, free: 65.77 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03477/1.26, allocations: 15.25 MB / 0.7921 GB, free: 49.8 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002332/1.26, allocations: 67.34 kB / 0.7921 GB, free: 49.74 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001021/1.261, allocations: 263.8 kB / 0.7924 GB, free: 49.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001958/1.263, allocations: 1.655 MB / 0.794 GB, free: 47.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02937/1.292, allocations: 14.76 MB / 0.8084 GB, free: 33.05 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08476/1.377, allocations: 55.44 MB / 0.8625 GB, free: 8.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01874/1.396, allocations: 8.006 MB / 0.8704 GB, free: 196 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002388/1.398, allocations: 2.212 MB / 0.8725 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.275e-05/1.398, allocations: 65.08 kB / 0.8726 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=367): time 8.476e-06/1.398, allocations: 0 / 0.8726 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=419): time 0.467/1.865, allocations: 39.45 MB / 0.9111 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/1.865, allocations: 117.9 kB / 0.9112 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008144/1.874, allocations: 3.797 MB / 0.9149 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001234/1.875, allocations: 84.39 kB / 0.915 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003281/1.878, allocations: 3.832 MB / 0.9187 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002891/1.881, allocations: 1.487 MB / 0.9202 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005242/1.882, allocations: 150.6 kB / 0.9203 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004566/1.882, allocations: 0.6378 MB / 0.921 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005695/1.888, allocations: 3.874 MB / 0.9247 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007613/1.895, allocations: 7.627 MB / 0.9322 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008694/1.904, allocations: 5.414 MB / 0.9375 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/1.904, allocations: 36.94 kB / 0.9375 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.02891/1.933, allocations: 14.02 MB / 0.9512 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.933, allocations: 61.44 kB / 0.9513 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001509/1.934, allocations: 129.1 kB / 0.9514 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007145/1.941, allocations: 2.629 MB / 0.954 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007679/1.948, allocations: 1.933 MB / 0.9558 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01737/1.966, allocations: 14.07 MB / 0.9696 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007716/1.974, allocations: 485.2 kB / 0.9701 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001898/1.975, allocations: 430.9 kB / 0.9705 GB, free: 100.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (914): * Single equations (assignments): 906 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007494/1.983, allocations: 2.871 MB / 0.9733 GB, free: 97.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/1.984, allocations: 466 kB / 0.9737 GB, free: 97.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01702/2.002, allocations: 10.42 MB / 0.9839 GB, free: 88.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-05/2.002, allocations: 63.38 kB / 0.984 GB, free: 88.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/2.002, allocations: 11.97 kB / 0.984 GB, free: 88.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.434e-05/2.002, allocations: 21.09 kB / 0.984 GB, free: 88.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03995/2.042, allocations: 20.96 MB / 1.004 GB, free: 71.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.772e-05/2.042, allocations: 12.94 kB / 1.004 GB, free: 71.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003839/2.046, allocations: 0.7888 MB / 1.005 GB, free: 71.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006548/2.052, allocations: 2.414 MB / 1.008 GB, free: 69.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008868/2.053, allocations: 72 kB / 1.008 GB, free: 69.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/2.068, allocations: 12.83 MB / 1.02 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/2.068, allocations: 19.92 kB / 1.02 GB, free: 56.87 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02256/2.09, allocations: 16.22 MB / 1.036 GB, free: 39.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002141/2.093, allocations: 499.1 kB / 1.037 GB, free: 39.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00188/2.094, allocations: 83.92 kB / 1.037 GB, free: 39.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003835/2.098, allocations: 291.6 kB / 1.037 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009297/2.099, allocations: 269.1 kB / 1.037 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003197/2.1, allocations: 112 kB / 1.037 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004365/2.104, allocations: 2.659 MB / 1.04 GB, free: 36.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/2.104, allocations: 0 / 1.04 GB, free: 36.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01001/2.114, allocations: 1.639 MB / 1.041 GB, free: 34.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02416/2.138, allocations: 19.47 MB / 1.06 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01455/2.153, allocations: 9.693 MB / 1.07 GB, free: 4.793 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.263e-05/2.153, allocations: 4 kB / 1.07 GB, free: 4.789 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005828/2.159, allocations: 4.238 MB / 1.074 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00422/2.163, allocations: 0.6385 MB / 1.075 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5133/2.676, allocations: 142.9 MB / 1.214 GB, free: 31.19 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01205/2.688, allocations: 4.675 MB / 1.219 GB, free: 30.32 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008141/2.696, allocations: 2.72 MB / 1.221 GB, free: 30.14 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00668/2.703, allocations: 2.861 MB / 1.224 GB, free: 28.98 MB / 0.5417 GB Notification: Performance of SimCode: time 1.383e-06/2.703, allocations: 3.844 kB / 1.224 GB, free: 28.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6554/3.359, allocations: 120.9 MB / 1.342 GB, free: 138.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/3.359, allocations: 195.1 kB / 1.343 GB, free: 138.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.694/9.053, allocations: 1.75 kB / 1.343 GB, free: 138.1 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat