Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009784/0.0009782, allocations: 199 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 226.5 MB / 243.4 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000756/0.000756, allocations: 90.47 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2851/0.2851, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002521/0.0002522, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2696, allocations: 62.97 MB / 0.516 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.05795/0.3276, allocations: 81 MB / 0.5951 GB, free: 7.684 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03787/0.3655, allocations: 16.35 MB / 0.611 GB, free: 7.855 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01397/0.3795, allocations: 383.1 kB / 0.6114 GB, free: 7.48 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01143/0.391, allocations: 4.281 MB / 0.6156 GB, free: 3.18 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02801/0.419, allocations: 12.42 MB / 0.6277 GB, free: 6.711 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004651/0.4237, allocations: 0.9167 MB / 0.6286 GB, free: 5.793 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.2931/0.7168, allocations: 63.19 MB / 0.6903 GB, free: 55.03 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0105/0.7273, allocations: 7.783 MB / 0.6979 GB, free: 54.15 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004136/0.7315, allocations: 1.914 MB / 0.6998 GB, free: 54.15 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004894/0.7364, allocations: 2.967 MB / 0.7027 GB, free: 54.14 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001035/0.7375, allocations: 211.5 kB / 0.7029 GB, free: 54.14 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002647/0.7401, allocations: 1.15 MB / 0.704 GB, free: 54.14 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002418/0.7426, allocations: 2.662 MB / 0.7066 GB, free: 54.14 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002829/0.7454, allocations: 2.905 MB / 0.7094 GB, free: 54.11 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007848/0.7533, allocations: 8.299 MB / 0.7175 GB, free: 51.47 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.7533, allocations: 0 / 0.7175 GB, free: 51.47 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.7533, allocations: 0 / 0.7175 GB, free: 51.47 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003867/0.7537, allocations: 0 / 0.7175 GB, free: 51.47 MB / 490.7 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.01323/0.7669, allocations: 6.366 MB / 0.7238 GB, free: 47.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.767, allocations: 10.06 kB / 0.7238 GB, free: 47.68 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00248/0.7695, allocations: 1.046 MB / 0.7248 GB, free: 47.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03626/0.8058, allocations: 6.339 MB / 0.731 GB, free: 42.89 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00853/0.8143, allocations: 4.617 MB / 0.7355 GB, free: 39.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.8146, allocations: 367.6 kB / 0.7358 GB, free: 39.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001478/0.8161, allocations: 495.8 kB / 0.7363 GB, free: 38.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02204/0.8381, allocations: 14.48 MB / 0.7505 GB, free: 27.58 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002103/0.8384, allocations: 69.89 kB / 0.7505 GB, free: 27.54 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008287/0.8392, allocations: 223.3 kB / 0.7507 GB, free: 27.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004155/0.8434, allocations: 2.831 MB / 0.7535 GB, free: 25.13 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02003/0.8635, allocations: 12.05 MB / 0.7653 GB, free: 16.72 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06332/0.9268, allocations: 57.95 MB / 0.8219 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01408/0.9409, allocations: 6.159 MB / 0.8279 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004279/0.9453, allocations: 3.581 MB / 0.8314 GB, free: 8.285 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01417/0.9595, allocations: 8.313 MB / 0.8395 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.593e-05/0.9596, allocations: 58.75 kB / 0.8396 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=236): time 6.292e-06/0.9596, allocations: 0 / 0.8396 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=278): time 0.07124/1.031, allocations: 28.87 MB / 0.8677 GB, free: 2.781 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/1.031, allocations: 235.6 kB / 0.868 GB, free: 2.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/1.042, allocations: 6.727 MB / 0.8745 GB, free: 11.79 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005771/1.042, allocations: 64.8 kB / 0.8746 GB, free: 11.72 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00328/1.045, allocations: 4.546 MB / 0.879 GB, free: 7.199 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001359/1.047, allocations: 1.073 MB / 0.8801 GB, free: 6.137 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005778/1.047, allocations: 164 kB / 0.8802 GB, free: 5.977 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0004595/1.048, allocations: 0.6658 MB / 0.8809 GB, free: 5.301 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004927/1.053, allocations: 3.331 MB / 0.8841 GB, free: 1.961 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008162/1.061, allocations: 8.415 MB / 0.8924 GB, free: 7.113 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2344/1.295, allocations: 12.77 MB / 0.9048 GB, free: 214.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/1.296, allocations: 53.5 kB / 0.9049 GB, free: 214.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.02094/1.317, allocations: 13 MB / 0.9176 GB, free: 210.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/1.317, allocations: 80.91 kB / 0.9177 GB, free: 210.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001983/1.317, allocations: 177.8 kB / 0.9178 GB, free: 210.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004365/1.321, allocations: 1.78 MB / 0.9196 GB, free: 210.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006567/1.328, allocations: 1.956 MB / 0.9215 GB, free: 209.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01497/1.343, allocations: 12 MB / 0.9332 GB, free: 203.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006568/1.349, allocations: 497.2 kB / 0.9337 GB, free: 203.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001466/1.351, allocations: 0.5123 MB / 0.9342 GB, free: 203.5 MB / 0.5886 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.005751/1.357, allocations: 3.044 MB / 0.9371 GB, free: 202.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/1.358, allocations: 0.5641 MB / 0.9377 GB, free: 202.2 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/1.368, allocations: 6.335 MB / 0.9439 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.276e-05/1.368, allocations: 27.78 kB / 0.9439 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.956e-05/1.369, allocations: 14.97 kB / 0.9439 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.233e-05/1.369, allocations: 11.91 kB / 0.9439 GB, free: 200 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02356/1.392, allocations: 14.27 MB / 0.9579 GB, free: 194.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.824e-05/1.392, allocations: 5.938 kB / 0.9579 GB, free: 194.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002175/1.394, allocations: 463.5 kB / 0.9583 GB, free: 194.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003674/1.398, allocations: 1.522 MB / 0.9598 GB, free: 194.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003542/1.398, allocations: 48.06 kB / 0.9598 GB, free: 194.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/1.411, allocations: 11.2 MB / 0.9708 GB, free: 184.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/1.411, allocations: 7.938 kB / 0.9708 GB, free: 184.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01316/1.424, allocations: 10.29 MB / 0.9808 GB, free: 175.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001609/1.425, allocations: 0.6458 MB / 0.9815 GB, free: 174.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009337/1.426, allocations: 55.52 kB / 0.9815 GB, free: 174.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/1.429, allocations: 176.8 kB / 0.9817 GB, free: 174.6 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000676/1.429, allocations: 181.6 kB / 0.9819 GB, free: 174.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/1.43, allocations: 73.75 kB / 0.9819 GB, free: 174.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.005626/1.435, allocations: 4.299 MB / 0.9861 GB, free: 170.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.3e-07/1.435, allocations: 2.625 kB / 0.9861 GB, free: 170.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006437/1.442, allocations: 1.546 MB / 0.9876 GB, free: 168.5 MB / 0.5886 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.01308/1.455, allocations: 10.97 MB / 0.9984 GB, free: 157.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01014/1.465, allocations: 8.222 MB / 1.006 GB, free: 149.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/1.465, allocations: 0 / 1.006 GB, free: 149.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004404/1.469, allocations: 3.228 MB / 1.01 GB, free: 145.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00759/1.477, allocations: 0.7231 MB / 1.01 GB, free: 145.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08625/1.563, allocations: 63.47 MB / 1.072 GB, free: 75.91 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004692/1.568, allocations: 4.631 MB / 1.077 GB, free: 71.24 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003869/1.572, allocations: 3.064 MB / 1.08 GB, free: 68.18 MB / 0.5886 GB Notification: Performance of SimCode: time 1.002e-06/1.572, allocations: 0 / 1.08 GB, free: 68.18 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.18/11.75, allocations: 167.9 MB / 1.244 GB, free: 152.6 MB / 0.5886 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches