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.001251/0.001251, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002781/0.002781, allocations: 79.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3618, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01723/0.379, allocations: 15.52 MB / 0.5457 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01222/0.3913, allocations: 4.946 MB / 0.5505 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003479/0.3948, allocations: 107.7 kB / 0.5506 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.4051, allocations: 4.98 MB / 0.5555 GB, free: 8.184 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00789/0.4131, allocations: 2.478 MB / 0.5579 GB, free: 5.699 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00316/0.4163, allocations: 1.076 MB / 0.5589 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.4272, allocations: 6.854 MB / 0.5656 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008019/0.4353, allocations: 5.755 MB / 0.5712 GB, free: 7.918 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004356/0.4397, allocations: 2.383 MB / 0.5736 GB, free: 5.527 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004965/0.4447, allocations: 3.201 MB / 0.5767 GB, free: 2.316 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00175/0.4465, allocations: 0.5 MB / 0.5772 GB, free: 1.816 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003879/0.4504, allocations: 1.393 MB / 0.5785 GB, free: 432 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004149/0.4546, allocations: 2.993 MB / 0.5815 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006057/0.4607, allocations: 3.395 MB / 0.5848 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01337/0.4741, allocations: 10.47 MB / 0.595 GB, free: 15.5 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.4741, allocations: 0 / 0.595 GB, free: 15.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.4741, allocations: 4 kB / 0.595 GB, free: 15.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003719/0.4745, allocations: 0 / 0.595 GB, free: 15.5 MB / 462.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.01998/0.4945, allocations: 7.576 MB / 0.6024 GB, free: 7.836 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4945, allocations: 8.031 kB / 0.6024 GB, free: 7.828 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002659/0.4972, allocations: 1.029 MB / 0.6034 GB, free: 6.789 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0369/0.5341, allocations: 6.19 MB / 0.6095 GB, free: 0.582 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.5449, allocations: 4.664 MB / 0.614 GB, free: 11.84 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003629/0.5453, allocations: 361.3 kB / 0.6144 GB, free: 11.48 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.547, allocations: 475.6 kB / 0.6148 GB, free: 11.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02784/0.5748, allocations: 14.12 MB / 0.6286 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002921/0.5752, allocations: 67.38 kB / 0.6287 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001497/0.5767, allocations: 227.8 kB / 0.6289 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00507/0.5818, allocations: 2.703 MB / 0.6315 GB, free: 8.879 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/0.6061, allocations: 11.78 MB / 0.643 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07499/0.6811, allocations: 56.82 MB / 0.6985 GB, free: 2.777 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01541/0.6965, allocations: 6.156 MB / 0.7045 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004912/0.7015, allocations: 3.586 MB / 0.708 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01458/0.7161, allocations: 8.285 MB / 0.7161 GB, free: 412 kB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.267e-05/0.7162, allocations: 60.22 kB / 0.7162 GB, free: 344 kB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 4.849e-06/0.7162, allocations: 0 / 0.7162 GB, free: 344 kB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.3284/1.045, allocations: 28.76 MB / 0.7443 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.811e-05/1.045, allocations: 239.6 kB / 0.7445 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008223/1.053, allocations: 6.7 MB / 0.751 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000661/1.054, allocations: 65.7 kB / 0.7511 GB, free: 145.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002212/1.056, allocations: 4.462 MB / 0.7555 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001165/1.057, allocations: 1.065 MB / 0.7565 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002131/1.059, allocations: 1.717 MB / 0.7582 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.487e-05/1.059, allocations: 301.1 kB / 0.7585 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003798/1.063, allocations: 3.358 MB / 0.7618 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005689/1.069, allocations: 8.397 MB / 0.77 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0106/1.079, allocations: 12.75 MB / 0.7824 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/1.08, allocations: 52 kB / 0.7825 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.02081/1.1, allocations: 13.02 MB / 0.7952 GB, free: 95.59 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.652e-05/1.101, allocations: 82.03 kB / 0.7953 GB, free: 95.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/1.101, allocations: 180 kB / 0.7954 GB, free: 95.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/1.105, allocations: 1.785 MB / 0.7972 GB, free: 93.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006113/1.111, allocations: 1.942 MB / 0.7991 GB, free: 91.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01249/1.123, allocations: 12.86 MB / 0.8116 GB, free: 78.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006424/1.13, allocations: 487.2 kB / 0.8121 GB, free: 77.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.131, allocations: 0.5077 MB / 0.8126 GB, free: 77.48 MB / 0.5606 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.004203/1.135, allocations: 2.984 MB / 0.8155 GB, free: 74.49 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00097/1.136, allocations: 0.5553 MB / 0.816 GB, free: 73.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009232/1.145, allocations: 6.346 MB / 0.8222 GB, free: 67.56 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.042e-05/1.146, allocations: 28 kB / 0.8223 GB, free: 67.53 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.82e-05/1.146, allocations: 8 kB / 0.8223 GB, free: 67.52 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-05/1.146, allocations: 15.95 kB / 0.8223 GB, free: 67.51 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02082/1.166, allocations: 13.99 MB / 0.836 GB, free: 53.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.206e-05/1.166, allocations: 5.406 kB / 0.836 GB, free: 53.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002124/1.169, allocations: 459.3 kB / 0.8364 GB, free: 53.03 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003497/1.172, allocations: 1.53 MB / 0.8379 GB, free: 51.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004205/1.173, allocations: 55.94 kB / 0.8379 GB, free: 51.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/1.185, allocations: 12.17 MB / 0.8498 GB, free: 39 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.185, allocations: 4 kB / 0.8498 GB, free: 39 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01356/1.199, allocations: 10.33 MB / 0.8599 GB, free: 28.53 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00183/1.201, allocations: 0.6263 MB / 0.8605 GB, free: 27.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00129/1.202, allocations: 55.94 kB / 0.8606 GB, free: 27.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/1.205, allocations: 175.8 kB / 0.8608 GB, free: 27.65 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006423/1.205, allocations: 173.6 kB / 0.8609 GB, free: 27.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002257/1.205, allocations: 72 kB / 0.861 GB, free: 27.41 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006121/1.212, allocations: 4.302 MB / 0.8652 GB, free: 23.11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/1.212, allocations: 0 / 0.8652 GB, free: 23.11 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007358/1.219, allocations: 1.517 MB / 0.8667 GB, free: 21.6 MB / 0.5606 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.01344/1.232, allocations: 11 MB / 0.8774 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0104/1.243, allocations: 8.292 MB / 0.8855 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.243, allocations: 0 / 0.8855 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004742/1.248, allocations: 3.251 MB / 0.8887 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004505/1.252, allocations: 0.7499 MB / 0.8894 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3837/1.636, allocations: 75.45 MB / 0.9631 GB, free: 220.9 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004953/1.641, allocations: 4.53 MB / 0.9675 GB, free: 220 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005748/1.647, allocations: 2.775 MB / 0.9702 GB, free: 219.9 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004053/1.651, allocations: 2.935 MB / 0.9731 GB, free: 218.2 MB / 0.6387 GB Notification: Performance of SimCode: time 1.062e-06/1.651, allocations: 0 / 0.9731 GB, free: 218.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1554/1.806, allocations: 118.3 MB / 1.089 GB, free: 108.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.89/25.7, allocations: 12.81 kB / 1.089 GB, free: 108.3 MB / 0.6387 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