Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.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.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008444/0.0008443, allocations: 99.5 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1933/0.1933, allocations: 45.14 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.816e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4151/0.5218, allocations: 112.5 MB / 0.6143 GB, free: 6.336 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.5221, allocations: 81.08 kB / 0.6144 GB, free: 6.297 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.888/1.41, allocations: 222.5 MB / 0.8316 GB, free: 98.13 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.864e-06/1.41, allocations: 0 / 0.8316 GB, free: 98.13 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0007661/1.411, allocations: 242.2 kB / 0.8319 GB, free: 98.12 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.04365/1.455, allocations: 11.7 MB / 0.8433 GB, free: 93.75 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/1.455, allocations: 10.69 kB / 0.8433 GB, free: 93.75 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0501/1.505, allocations: 12.61 MB / 0.8556 GB, free: 91.64 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03072/1.536, allocations: 11.31 MB / 0.8667 GB, free: 85.06 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000671/1.536, allocations: 384 kB / 0.867 GB, free: 84.69 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005628/1.542, allocations: 0.6872 MB / 0.8677 GB, free: 84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03047/1.572, allocations: 15.77 MB / 0.8831 GB, free: 68.24 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05123/1.624, allocations: 23.77 MB / 0.9063 GB, free: 42.36 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006254/1.624, allocations: 146.6 kB / 0.9065 GB, free: 42.21 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004034/1.628, allocations: 68 kB / 0.9065 GB, free: 42.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003196/1.632, allocations: 2.533 MB / 0.909 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5331/2.165, allocations: 114 MB / 1.02 GB, free: 41.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01416/2.179, allocations: 9.695 MB / 1.03 GB, free: 40.42 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008984/2.188, allocations: 6.691 MB / 1.036 GB, free: 40.35 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001409/2.189, allocations: 1.071 MB / 1.037 GB, free: 39.5 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.435e-05/2.19, allocations: 84.16 kB / 1.037 GB, free: 39.46 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=438): time 7.985e-06/2.19, allocations: 2.219 kB / 1.037 GB, free: 39.46 MB / 0.5417 GB Notification: Performance of matching and sorting (n=526): time 0.1272/2.317, allocations: 57.4 MB / 1.093 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/2.317, allocations: 373.6 kB / 1.094 GB, free: 18.69 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01755/2.335, allocations: 7.522 MB / 1.101 GB, free: 16.06 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001895/2.337, allocations: 29.45 kB / 1.101 GB, free: 16.03 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006469/2.343, allocations: 8.011 MB / 1.109 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003413/2.346, allocations: 1.908 MB / 1.111 GB, free: 8.52 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00244/2.349, allocations: 1.156 kB / 1.111 GB, free: 8.52 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001246/2.35, allocations: 0.9064 MB / 1.112 GB, free: 7.957 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01062/2.361, allocations: 5.532 MB / 1.117 GB, free: 5.035 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01851/2.379, allocations: 13.46 MB / 1.13 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01751/2.397, allocations: 8.632 MB / 1.139 GB, free: 14.38 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003877/2.397, allocations: 80 kB / 1.139 GB, free: 14.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=1846) (initialization): time 0.0475/2.445, allocations: 20.27 MB / 1.159 GB, free: 13.35 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002076/2.445, allocations: 135.2 kB / 1.159 GB, free: 13.22 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004275/2.446, allocations: 280 kB / 1.159 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008731/2.454, allocations: 3.284 MB / 1.162 GB, free: 10.51 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01298/2.467, allocations: 3.415 MB / 1.166 GB, free: 7.633 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02832/2.496, allocations: 21.34 MB / 1.186 GB, free: 4.613 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01232/2.508, allocations: 0.5616 MB / 1.187 GB, free: 4.188 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004563/2.513, allocations: 0.8256 MB / 1.188 GB, free: 3.395 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1282 * Number of states: 0 () * Number of discrete variables: 132 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1726): * Single equations (assignments): 1719 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006598/2.519, allocations: 0.8489 MB / 1.189 GB, free: 2.551 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3523/2.872, allocations: 11.52 MB / 1.2 GB, free: 150.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00331/2.875, allocations: 0.8327 MB / 1.201 GB, free: 150.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.023/2.898, allocations: 11.82 MB / 1.212 GB, free: 150.4 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/2.898, allocations: 54.12 kB / 1.212 GB, free: 150.4 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.568e-05/2.898, allocations: 19.58 kB / 1.212 GB, free: 150.4 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001088/2.898, allocations: 33.27 kB / 1.212 GB, free: 150.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05073/2.949, allocations: 25.05 MB / 1.237 GB, free: 148.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.588e-05/2.949, allocations: 7.719 kB / 1.237 GB, free: 148.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005244/2.954, allocations: 0.9875 MB / 1.238 GB, free: 148.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007067/2.962, allocations: 2.8 MB / 1.24 GB, free: 148.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001239/2.963, allocations: 14.38 kB / 1.24 GB, free: 148.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02221/2.985, allocations: 19.74 MB / 1.26 GB, free: 137.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/2.985, allocations: 6.906 kB / 1.26 GB, free: 137.7 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03205/3.017, allocations: 19.36 MB / 1.279 GB, free: 129.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002348/3.02, allocations: 0.816 MB / 1.279 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003269/3.023, allocations: 16.86 kB / 1.28 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00604/3.029, allocations: 290.5 kB / 1.28 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001568/3.031, allocations: 319 kB / 1.28 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001086/3.032, allocations: 130 kB / 1.28 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.009955/3.042, allocations: 5.085 MB / 1.285 GB, free: 127.4 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5.51e-07/3.042, allocations: 0 / 1.285 GB, free: 127.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01529/3.057, allocations: 2.41 MB / 1.288 GB, free: 127.4 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (434): * Single equations (assignments): 427 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02657/3.084, allocations: 20.5 MB / 1.308 GB, free: 115 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.02159/3.105, allocations: 14.25 MB / 1.321 GB, free: 102.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/3.105, allocations: 2.375 kB / 1.321 GB, free: 102.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.008678/3.114, allocations: 5.863 MB / 1.327 GB, free: 97.62 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005721/3.12, allocations: 1.005 MB / 1.328 GB, free: 96.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04825/3.168, allocations: 25.77 MB / 1.353 GB, free: 74.83 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01208/3.18, allocations: 8.189 MB / 1.361 GB, free: 68.95 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01158/3.192, allocations: 4.533 MB / 1.366 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007984/3.2, allocations: 5.734 MB / 1.371 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of SimCode: time 8.52e-07/3.2, allocations: 0 / 1.371 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5852/3.785, allocations: 197.9 MB / 1.565 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000144/3.785, allocations: 130.3 kB / 1.565 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.425/12.21, allocations: 0 / 1.565 GB, free: 57.91 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat