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.001058/0.001058, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1997/0.1997, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 81.73 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.1006, allocations: 62.43 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01511/0.1157, allocations: 15.51 MB / 495.6 MB, free: 5.586 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008781/0.1245, allocations: 4.933 MB / 0.4888 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001908/0.1265, allocations: 99.75 kB / 0.4889 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00804/0.1345, allocations: 5 MB / 0.4938 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005656/0.1403, allocations: 2.466 MB / 0.4962 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.1426, allocations: 1.076 MB / 0.4973 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008231/0.1508, allocations: 6.841 MB / 0.504 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2079/0.3587, allocations: 5.759 MB / 0.5096 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003284/0.3621, allocations: 2.375 MB / 0.5119 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004104/0.3662, allocations: 3.209 MB / 0.515 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001455/0.3677, allocations: 0.4994 MB / 0.5155 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003187/0.3709, allocations: 1.382 MB / 0.5169 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003003/0.3739, allocations: 2.972 MB / 0.5198 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003801/0.3777, allocations: 3.396 MB / 0.5231 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009989/0.3877, allocations: 10.17 MB / 0.533 GB, free: 6.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3877, allocations: 6.906 kB / 0.533 GB, free: 6.605 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3878, allocations: 0 / 0.533 GB, free: 6.605 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003345/0.3881, allocations: 0 / 0.533 GB, free: 6.605 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.0171/0.4052, allocations: 7.575 MB / 0.5404 GB, free: 1.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.4052, allocations: 7.312 kB / 0.5404 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001722/0.407, allocations: 1.025 MB / 0.5414 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03866/0.4456, allocations: 6.191 MB / 0.5475 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009598/0.4553, allocations: 4.579 MB / 0.552 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/0.4555, allocations: 359 kB / 0.5523 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.4566, allocations: 481.9 kB / 0.5528 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02353/0.4801, allocations: 14.12 MB / 0.5665 GB, free: 9.293 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001646/0.4803, allocations: 65.48 kB / 0.5666 GB, free: 9.254 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005638/0.4809, allocations: 228.3 kB / 0.5668 GB, free: 9.078 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004581/0.4855, allocations: 2.699 MB / 0.5695 GB, free: 6.418 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02179/0.5073, allocations: 11.79 MB / 0.581 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06491/0.5722, allocations: 57.06 MB / 0.6367 GB, free: 1.086 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01464/0.5869, allocations: 6.15 MB / 0.6427 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00411/0.591, allocations: 3.585 MB / 0.6462 GB, free: 7.188 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.6034, allocations: 8.306 MB / 0.6543 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.6034, allocations: 54.94 kB / 0.6544 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 4.669e-06/0.6035, allocations: 0 / 0.6544 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=278): time 0.07427/0.6777, allocations: 28.77 MB / 0.6825 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.6779, allocations: 233.9 kB / 0.6827 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008995/0.6869, allocations: 6.694 MB / 0.6892 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005019/0.6874, allocations: 73.7 kB / 0.6893 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002885/0.6903, allocations: 4.458 MB / 0.6937 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.6915, allocations: 1.067 MB / 0.6947 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002175/0.6936, allocations: 1.712 MB / 0.6964 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.6937, allocations: 314 kB / 0.6967 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004694/0.6984, allocations: 3.354 MB / 0.6999 GB, free: 15.81 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008003/0.7065, allocations: 8.412 MB / 0.7082 GB, free: 4.988 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2102/0.9166, allocations: 12.73 MB / 0.7206 GB, free: 158.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/0.9168, allocations: 50.41 kB / 0.7206 GB, free: 158.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.02088/0.9377, allocations: 13.03 MB / 0.7334 GB, free: 158.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-05/0.9378, allocations: 80.25 kB / 0.7334 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002181/0.938, allocations: 179.2 kB / 0.7336 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004256/0.9423, allocations: 1.791 MB / 0.7354 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005881/0.9482, allocations: 1.945 MB / 0.7373 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/0.9612, allocations: 12.87 MB / 0.7498 GB, free: 151.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006302/0.9676, allocations: 484.4 kB / 0.7503 GB, free: 151.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009702/0.9686, allocations: 0.5075 MB / 0.7508 GB, free: 151.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.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 (1020): * Single equations (assignments): 1013 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004141/0.9727, allocations: 2.989 MB / 0.7537 GB, free: 149.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000871/0.9736, allocations: 0.5586 MB / 0.7542 GB, free: 149.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009257/0.9828, allocations: 6.34 MB / 0.7604 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.481e-05/0.9829, allocations: 32 kB / 0.7605 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.019e-05/0.9829, allocations: 8 kB / 0.7605 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.43e-05/0.983, allocations: 11.95 kB / 0.7605 GB, free: 146.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02084/1.004, allocations: 14.18 MB / 0.7743 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/1.004, allocations: 4 kB / 0.7743 GB, free: 134.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002118/1.006, allocations: 463.3 kB / 0.7748 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003539/1.01, allocations: 1.532 MB / 0.7763 GB, free: 132.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003394/1.01, allocations: 51.98 kB / 0.7763 GB, free: 132.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/1.022, allocations: 12.08 MB / 0.7881 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/1.022, allocations: 8 kB / 0.7881 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.035, allocations: 10.31 MB / 0.7982 GB, free: 110.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/1.037, allocations: 0.6302 MB / 0.7988 GB, free: 109.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009439/1.038, allocations: 48 kB / 0.7988 GB, free: 109.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002346/1.04, allocations: 182.4 kB / 0.799 GB, free: 109.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/1.041, allocations: 177.6 kB / 0.7992 GB, free: 109.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001804/1.041, allocations: 75.94 kB / 0.7993 GB, free: 109 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00566/1.047, allocations: 4.302 MB / 0.8035 GB, free: 104.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.463e-06/1.047, allocations: 8 kB / 0.8035 GB, free: 104.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007136/1.054, allocations: 1.508 MB / 0.8049 GB, free: 103.2 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01293/1.067, allocations: 10.98 MB / 0.8157 GB, free: 92.06 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01376/1.08, allocations: 9.841 MB / 0.8253 GB, free: 82.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.451e-05/1.081, allocations: 0 / 0.8253 GB, free: 82.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004878/1.085, allocations: 3.245 MB / 0.8285 GB, free: 78.98 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004565/1.09, allocations: 0.7533 MB / 0.8292 GB, free: 78.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1078/1.198, allocations: 94.03 MB / 0.921 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.216/1.414, allocations: 4.521 MB / 0.9254 GB, free: 214.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.007638/1.422, allocations: 2.777 MB / 0.9281 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004/1.426, allocations: 2.933 MB / 0.931 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/1.426, allocations: 0 / 0.931 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1594/1.585, allocations: 122.2 MB / 1.05 GB, free: 116 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/13.46, allocations: 8.047 kB / 1.05 GB, free: 116 MB / 0.5762 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches