Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 97.86 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.001451, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2532/0.2532, allocations: 45.91 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003262, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1452, allocations: 63.46 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3297/0.475, allocations: 76.43 MB / 0.5449 GB, free: 284 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04406/0.5191, allocations: 17.17 MB / 0.5616 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0215/0.5406, allocations: 382.4 kB / 0.562 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01463/0.5553, allocations: 3.864 MB / 0.5658 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03723/0.5926, allocations: 10.9 MB / 0.5764 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005475/0.5981, allocations: 0.8466 MB / 0.5773 GB, free: 5.266 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.06608/0.6642, allocations: 49.08 MB / 0.6252 GB, free: 4.133 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009756/0.674, allocations: 7.232 MB / 0.6323 GB, free: 12.82 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002459/0.6765, allocations: 1.545 MB / 0.6338 GB, free: 11.27 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002359/0.6789, allocations: 2.033 MB / 0.6357 GB, free: 9.234 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006074/0.6795, allocations: 212 kB / 0.6359 GB, free: 9.027 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.6814, allocations: 0.9598 MB / 0.6369 GB, free: 8.066 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002052/0.6834, allocations: 2.47 MB / 0.6393 GB, free: 5.59 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001274/0.6847, allocations: 1.259 MB / 0.6405 GB, free: 4.32 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007548/0.6923, allocations: 8.291 MB / 0.6486 GB, free: 12.01 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.6923, allocations: 0 / 0.6486 GB, free: 12.01 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6923, allocations: 0 / 0.6486 GB, free: 12.01 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0002841/0.6926, allocations: 0 / 0.6486 GB, free: 12.01 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01469/0.7073, allocations: 6.7 MB / 0.6552 GB, free: 5.227 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.7074, allocations: 8.031 kB / 0.6552 GB, free: 5.219 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003422/0.7108, allocations: 1.05 MB / 0.6562 GB, free: 4.156 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04284/0.7536, allocations: 8.202 MB / 0.6642 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01128/0.765, allocations: 4.344 MB / 0.6685 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003282/0.7653, allocations: 369.3 kB / 0.6688 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001828/0.7672, allocations: 487.6 kB / 0.6693 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02903/0.7962, allocations: 14.69 MB / 0.6836 GB, free: 6.965 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002362/0.7965, allocations: 67.44 kB / 0.6837 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008206/0.7973, allocations: 223.8 kB / 0.6839 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005006/0.8023, allocations: 2.828 MB / 0.6867 GB, free: 3.844 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02535/0.8277, allocations: 12.28 MB / 0.6987 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3651/1.193, allocations: 58.08 MB / 0.7554 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01434/1.207, allocations: 6.372 MB / 0.7616 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/1.222, allocations: 8.406 MB / 0.7698 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.77e-05/1.222, allocations: 64.45 kB / 0.7699 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 4.889e-06/1.222, allocations: 0 / 0.7699 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.06804/1.291, allocations: 29.98 MB / 0.7991 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/1.291, allocations: 231.6 kB / 0.7994 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007929/1.299, allocations: 6.978 MB / 0.8062 GB, free: 98.34 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007416/1.299, allocations: 66.41 kB / 0.8062 GB, free: 98.27 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002384/1.302, allocations: 4.55 MB / 0.8107 GB, free: 93.73 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001281/1.303, allocations: 1.063 MB / 0.8117 GB, free: 92.67 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004238/1.303, allocations: 169.3 kB / 0.8119 GB, free: 92.51 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003364/1.304, allocations: 0.6675 MB / 0.8125 GB, free: 91.83 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00402/1.308, allocations: 3.339 MB / 0.8158 GB, free: 88.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005961/1.314, allocations: 8.381 MB / 0.824 GB, free: 77.59 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006092/1.32, allocations: 5.158 MB / 0.829 GB, free: 72.43 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.935e-05/1.32, allocations: 52 kB / 0.8291 GB, free: 72.38 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.02163/1.342, allocations: 13.01 MB / 0.8418 GB, free: 59.36 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.342, allocations: 80 kB / 0.8418 GB, free: 59.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002308/1.342, allocations: 180 kB / 0.842 GB, free: 59.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004145/1.346, allocations: 1.805 MB / 0.8438 GB, free: 57.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007027/1.353, allocations: 1.957 MB / 0.8457 GB, free: 55.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/1.367, allocations: 12.32 MB / 0.8577 GB, free: 42.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009332/1.376, allocations: 496.1 kB / 0.8582 GB, free: 42.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001913/1.378, allocations: 0.509 MB / 0.8587 GB, free: 41.76 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1026): * Single equations (assignments): 1019 * Array equations: 5 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006047/1.384, allocations: 3.048 MB / 0.8617 GB, free: 38.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001436/1.386, allocations: 0.563 MB / 0.8622 GB, free: 38.13 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009754/1.396, allocations: 6.327 MB / 0.8684 GB, free: 31.78 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.234e-05/1.396, allocations: 28.55 kB / 0.8684 GB, free: 31.75 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.402e-05/1.396, allocations: 11.95 kB / 0.8684 GB, free: 31.74 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.05e-05/1.396, allocations: 15.95 kB / 0.8684 GB, free: 31.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02667/1.423, allocations: 14.29 MB / 0.8824 GB, free: 17.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.232e-05/1.423, allocations: 4.562 kB / 0.8824 GB, free: 17.39 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002128/1.425, allocations: 459.3 kB / 0.8828 GB, free: 16.94 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003595/1.428, allocations: 1.527 MB / 0.8843 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005378/1.429, allocations: 53.34 kB / 0.8844 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/1.442, allocations: 11.52 MB / 0.8956 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/1.442, allocations: 11.94 kB / 0.8956 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01615/1.458, allocations: 11.11 MB / 0.9065 GB, free: 8.211 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/1.46, allocations: 0.6614 MB / 0.9071 GB, free: 7.523 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00207/1.462, allocations: 51.95 kB / 0.9072 GB, free: 7.473 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003817/1.466, allocations: 175.8 kB / 0.9074 GB, free: 7.301 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008991/1.467, allocations: 173.7 kB / 0.9075 GB, free: 7.129 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005127/1.468, allocations: 79.94 kB / 0.9076 GB, free: 7.051 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009036/1.477, allocations: 4.499 MB / 0.912 GB, free: 2.566 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.024e-06/1.477, allocations: 0 / 0.912 GB, free: 2.566 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009489/1.486, allocations: 1.566 MB / 0.9135 GB, free: 1.004 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (220): * Single equations (assignments): 215 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.277/1.763, allocations: 12.5 MB / 0.9257 GB, free: 179.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01509/1.778, allocations: 8.217 MB / 0.9338 GB, free: 176.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.778, allocations: 8.688 kB / 0.9338 GB, free: 176.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005118/1.783, allocations: 3.226 MB / 0.9369 GB, free: 175.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004059/1.788, allocations: 0.6987 MB / 0.9376 GB, free: 174.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0718/1.859, allocations: 156.3 MB / 1.09 GB, free: 22.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007421/1.867, allocations: 4.765 MB / 1.095 GB, free: 18.79 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00716/1.874, allocations: 2.791 MB / 1.098 GB, free: 15.98 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004874/1.879, allocations: 3.01 MB / 1.101 GB, free: 12.97 MB / 0.545 GB Notification: Performance of SimCode: time 1.493e-06/1.879, allocations: 0 / 1.101 GB, free: 12.97 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5067/2.386, allocations: 125.2 MB / 1.223 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/2.386, allocations: 187.9 kB / 1.223 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.731/8.117, allocations: 0 / 1.223 GB, free: 122.1 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat