Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009778/0.0009782, allocations: 90.72 kB / 17 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 186.5 kB / 17.89 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.3 MB / 241.9 MB, free: 316 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2055/0.2055, allocations: 44.23 MB / 337.2 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 12 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 61.92 MB / 471.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3269/0.4406, allocations: 80.97 MB / 0.5397 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04367/0.4843, allocations: 16.35 MB / 0.5556 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02121/0.5056, allocations: 386.5 kB / 0.556 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01818/0.5238, allocations: 4.273 MB / 0.5602 GB, free: 8.449 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.05067/0.5746, allocations: 12.41 MB / 0.5723 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008655/0.5832, allocations: 0.8621 MB / 0.5731 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.09866/0.682, allocations: 63.01 MB / 0.6347 GB, free: 13.48 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01092/0.6929, allocations: 7.304 MB / 0.6418 GB, free: 6.094 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004203/0.6972, allocations: 1.915 MB / 0.6437 GB, free: 4.172 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004997/0.7022, allocations: 2.967 MB / 0.6466 GB, free: 1.195 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.7035, allocations: 215.9 kB / 0.6468 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003029/0.7066, allocations: 1.01 MB / 0.6478 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003436/0.71, allocations: 2.669 MB / 0.6504 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002228/0.7123, allocations: 1.255 MB / 0.6516 GB, free: 12.03 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00943/0.7217, allocations: 8.298 MB / 0.6597 GB, free: 3.715 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.7218, allocations: 0 / 0.6597 GB, free: 3.715 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.7218, allocations: 0 / 0.6597 GB, free: 3.715 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0003905/0.7222, allocations: 0 / 0.6597 GB, free: 3.715 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.01407/0.7363, allocations: 6.417 MB / 0.666 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.7363, allocations: 11.97 kB / 0.666 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002862/0.7392, allocations: 1.042 MB / 0.667 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03235/0.7716, allocations: 6.341 MB / 0.6732 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009543/0.7812, allocations: 4.746 MB / 0.6778 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002967/0.7815, allocations: 369.3 kB / 0.6782 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001459/0.783, allocations: 487.6 kB / 0.6786 GB, free: 124 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02431/0.8073, allocations: 14.48 MB / 0.6928 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001819/0.8075, allocations: 71.36 kB / 0.6928 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00057/0.8081, allocations: 231.8 kB / 0.6931 GB, free: 340 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004302/0.8124, allocations: 2.82 MB / 0.6958 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02259/0.835, allocations: 12.05 MB / 0.7076 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3459/1.181, allocations: 57.92 MB / 0.7642 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01276/1.194, allocations: 6.146 MB / 0.7702 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004094/1.198, allocations: 3.573 MB / 0.7736 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01279/1.211, allocations: 8.336 MB / 0.7818 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/1.211, allocations: 58.84 kB / 0.7818 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.51e-06/1.211, allocations: 3.781 kB / 0.7818 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.06402/1.275, allocations: 28.85 MB / 0.81 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.375e-05/1.275, allocations: 241.6 kB / 0.8102 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008793/1.284, allocations: 6.716 MB / 0.8168 GB, free: 98.19 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008304/1.285, allocations: 69.64 kB / 0.8169 GB, free: 98.12 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002589/1.287, allocations: 4.556 MB / 0.8213 GB, free: 93.57 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001488/1.289, allocations: 1.06 MB / 0.8224 GB, free: 92.52 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000431/1.289, allocations: 164 kB / 0.8225 GB, free: 92.36 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003546/1.29, allocations: 0.6694 MB / 0.8232 GB, free: 91.68 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004359/1.294, allocations: 3.331 MB / 0.8264 GB, free: 88.34 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007103/1.301, allocations: 8.42 MB / 0.8346 GB, free: 77.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007029/1.308, allocations: 5.159 MB / 0.8397 GB, free: 72.24 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/1.308, allocations: 52 kB / 0.8397 GB, free: 72.19 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.02476/1.333, allocations: 12.99 MB / 0.8524 GB, free: 59.18 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/1.333, allocations: 80 kB / 0.8525 GB, free: 59.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002627/1.334, allocations: 180.8 kB / 0.8527 GB, free: 58.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004093/1.338, allocations: 1.821 MB / 0.8544 GB, free: 57.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006786/1.344, allocations: 1.949 MB / 0.8564 GB, free: 55.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/1.359, allocations: 12 MB / 0.8681 GB, free: 42.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007801/1.366, allocations: 491.9 kB / 0.8685 GB, free: 42.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002018/1.368, allocations: 0.5085 MB / 0.869 GB, free: 41.89 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.007239/1.376, allocations: 3.045 MB / 0.872 GB, free: 38.83 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002138/1.378, allocations: 0.563 MB / 0.8726 GB, free: 38.26 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/1.39, allocations: 6.331 MB / 0.8787 GB, free: 31.91 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.295e-05/1.39, allocations: 33.09 kB / 0.8788 GB, free: 31.88 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.43e-05/1.39, allocations: 8 kB / 0.8788 GB, free: 31.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.182e-05/1.39, allocations: 19.91 kB / 0.8788 GB, free: 31.86 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02528/1.415, allocations: 14.26 MB / 0.8927 GB, free: 17.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/1.415, allocations: 4 kB / 0.8927 GB, free: 17.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/1.417, allocations: 461.1 kB / 0.8932 GB, free: 17.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003361/1.421, allocations: 1.527 MB / 0.8947 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002954/1.421, allocations: 56.92 kB / 0.8947 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/1.434, allocations: 11.21 MB / 0.9057 GB, free: 4.039 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/1.434, allocations: 11.94 kB / 0.9057 GB, free: 4.027 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3203/1.754, allocations: 10.28 MB / 0.9157 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002119/1.756, allocations: 0.6429 MB / 0.9163 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/1.758, allocations: 49.84 kB / 0.9164 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002992/1.761, allocations: 183.5 kB / 0.9166 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006973/1.762, allocations: 171.8 kB / 0.9167 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002286/1.762, allocations: 74.67 kB / 0.9168 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.01001/1.772, allocations: 4.3 MB / 0.921 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.51e-07/1.772, allocations: 0 / 0.921 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0105/1.783, allocations: 1.553 MB / 0.9225 GB, free: 171.8 MB / 0.5294 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.01568/1.798, allocations: 10.96 MB / 0.9332 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01204/1.81, allocations: 8.231 MB / 0.9412 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.81, allocations: 3.5 kB / 0.9413 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005012/1.815, allocations: 3.226 MB / 0.9444 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006167/1.822, allocations: 0.7349 MB / 0.9451 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1024/1.924, allocations: 62.74 MB / 1.006 GB, free: 96.77 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00499/1.929, allocations: 4.625 MB / 1.011 GB, free: 92.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00673/1.936, allocations: 2.787 MB / 1.014 GB, free: 89.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003455/1.939, allocations: 3.01 MB / 1.017 GB, free: 86.29 MB / 0.5294 GB Notification: Performance of SimCode: time 6.91e-07/1.939, allocations: 0 / 1.017 GB, free: 86.29 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4582/2.398, allocations: 126.5 MB / 1.14 GB, free: 171.3 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/2.398, allocations: 192.8 kB / 1.14 GB, free: 171.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.549/7.947, allocations: 4 kB / 1.14 GB, free: 171 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat