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.001811/0.001811, allocations: 113.4 kB / 17.33 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002346/0.002346, allocations: 208 kB / 18.27 MB, free: 4.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2228/0.2228, allocations: 46.11 MB / 343.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001439, allocations: 80.48 kB / 417.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1192, allocations: 62.44 MB / 479.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.314/0.4333, allocations: 81.44 MB / 0.5479 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03802/0.4714, allocations: 15.55 MB / 0.5631 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01817/0.4896, allocations: 358.2 kB / 0.5634 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009758/0.4994, allocations: 4.82 MB / 0.5681 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007221/0.5067, allocations: 2.324 MB / 0.5704 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002771/0.5095, allocations: 1.003 MB / 0.5714 GB, free: 9.227 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009993/0.5195, allocations: 7.253 MB / 0.5784 GB, free: 1.961 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008787/0.5283, allocations: 6.062 MB / 0.5844 GB, free: 11.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004488/0.5328, allocations: 2.434 MB / 0.5867 GB, free: 9.398 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005349/0.5382, allocations: 3.564 MB / 0.5902 GB, free: 5.824 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001801/0.54, allocations: 0.4961 MB / 0.5907 GB, free: 5.328 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003605/0.5437, allocations: 1.42 MB / 0.5921 GB, free: 3.906 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003966/0.5476, allocations: 3.008 MB / 0.595 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006468/0.5541, allocations: 3.437 MB / 0.5984 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01364/0.5678, allocations: 10.23 MB / 0.6084 GB, free: 3.176 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5678, allocations: 0 / 0.6084 GB, free: 3.176 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5678, allocations: 0 / 0.6084 GB, free: 3.176 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004003/0.5682, allocations: 0 / 0.6084 GB, free: 3.176 MB / 446.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.02142/0.5897, allocations: 7.572 MB / 0.6158 GB, free: 11.52 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.5897, allocations: 8.031 kB / 0.6158 GB, free: 11.51 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002946/0.5927, allocations: 1.021 MB / 0.6168 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03985/0.6326, allocations: 6.186 MB / 0.6228 GB, free: 4.273 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.6431, allocations: 4.589 MB / 0.6273 GB, free: 15.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003996/0.6436, allocations: 357.6 kB / 0.6276 GB, free: 15.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002003/0.6456, allocations: 479.7 kB / 0.6281 GB, free: 14.78 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02923/0.6748, allocations: 14.12 MB / 0.6419 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000301/0.6752, allocations: 71.31 kB / 0.642 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002049/0.6772, allocations: 223.8 kB / 0.6422 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008055/0.6853, allocations: 2.699 MB / 0.6448 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03822/0.7236, allocations: 11.79 MB / 0.6563 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08476/0.8084, allocations: 57.05 MB / 0.712 GB, free: 6.312 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2736/1.082, allocations: 6.157 MB / 0.718 GB, free: 196.4 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005511/1.088, allocations: 3.577 MB / 0.7215 GB, free: 196 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.102, allocations: 8.303 MB / 0.7296 GB, free: 192.4 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/1.103, allocations: 59.45 kB / 0.7297 GB, free: 192.3 MB / 0.545 GB Notification: Performance of pre-optimization done (n=236): time 5.991e-06/1.103, allocations: 5.453 kB / 0.7297 GB, free: 192.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=278): time 0.07027/1.173, allocations: 28.77 MB / 0.7578 GB, free: 181.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/1.173, allocations: 235.6 kB / 0.758 GB, free: 181 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006791/1.18, allocations: 6.693 MB / 0.7646 GB, free: 174.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004498/1.18, allocations: 73.45 kB / 0.7646 GB, free: 174.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002232/1.182, allocations: 4.461 MB / 0.769 GB, free: 169.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001355/1.184, allocations: 1.059 MB / 0.77 GB, free: 168.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002127/1.186, allocations: 1.716 MB / 0.7717 GB, free: 167 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.978e-05/1.186, allocations: 309.1 kB / 0.772 GB, free: 166.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00372/1.19, allocations: 3.354 MB / 0.7753 GB, free: 163.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005334/1.195, allocations: 8.411 MB / 0.7835 GB, free: 152.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01065/1.206, allocations: 12.75 MB / 0.7959 GB, free: 137.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001319/1.206, allocations: 48 kB / 0.796 GB, free: 137.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.0215/1.227, allocations: 13.03 MB / 0.8087 GB, free: 124.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.746e-05/1.228, allocations: 80 kB / 0.8088 GB, free: 124.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/1.228, allocations: 176 kB / 0.8089 GB, free: 124 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003831/1.232, allocations: 1.789 MB / 0.8107 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005953/1.237, allocations: 1.942 MB / 0.8126 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/1.25, allocations: 12.88 MB / 0.8252 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008659/1.259, allocations: 487.2 kB / 0.8256 GB, free: 106.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001582/1.261, allocations: 0.5078 MB / 0.8261 GB, free: 106.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.004734/1.265, allocations: 2.985 MB / 0.829 GB, free: 103.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.267, allocations: 0.5591 MB / 0.8296 GB, free: 102.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009364/1.276, allocations: 6.343 MB / 0.8358 GB, free: 96.21 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.981e-05/1.276, allocations: 28 kB / 0.8358 GB, free: 96.18 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/1.276, allocations: 12 kB / 0.8358 GB, free: 96.17 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.16e-05/1.276, allocations: 19.94 kB / 0.8358 GB, free: 96.15 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02163/1.298, allocations: 14.18 MB / 0.8497 GB, free: 81.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/1.298, allocations: 8.031 kB / 0.8497 GB, free: 81.92 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/1.3, allocations: 455.3 kB / 0.8501 GB, free: 81.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003698/1.304, allocations: 1.534 MB / 0.8516 GB, free: 79.94 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005255/1.304, allocations: 55.88 kB / 0.8517 GB, free: 79.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01351/1.318, allocations: 12.07 MB / 0.8635 GB, free: 67.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/1.318, allocations: 7.938 kB / 0.8635 GB, free: 67.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01381/1.332, allocations: 10.3 MB / 0.8735 GB, free: 57.09 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001628/1.333, allocations: 0.6264 MB / 0.8742 GB, free: 56.44 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009752/1.334, allocations: 55.61 kB / 0.8742 GB, free: 56.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002452/1.337, allocations: 178.9 kB / 0.8744 GB, free: 56.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005336/1.337, allocations: 181.6 kB / 0.8745 GB, free: 56.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/1.337, allocations: 71.98 kB / 0.8746 GB, free: 55.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005729/1.343, allocations: 4.298 MB / 0.8788 GB, free: 51.68 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/1.343, allocations: 0 / 0.8788 GB, free: 51.68 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007139/1.35, allocations: 1.514 MB / 0.8803 GB, free: 50.17 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.01273/1.363, allocations: 10.99 MB / 0.891 GB, free: 39.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01289/1.376, allocations: 9.842 MB / 0.9006 GB, free: 29.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/1.376, allocations: 0 / 0.9006 GB, free: 29.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004465/1.381, allocations: 3.229 MB / 0.9038 GB, free: 25.97 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004609/1.385, allocations: 0.7566 MB / 0.9045 GB, free: 25.22 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3656/1.751, allocations: 96.56 MB / 0.9988 GB, free: 112.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007902/1.759, allocations: 4.52 MB / 1.003 GB, free: 108.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007531/1.766, allocations: 2.783 MB / 1.006 GB, free: 105.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004795/1.771, allocations: 2.936 MB / 1.009 GB, free: 102.6 MB / 0.545 GB Notification: Performance of SimCode: time 7.41e-07/1.771, allocations: 0 / 1.009 GB, free: 102.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4125/2.184, allocations: 122 MB / 1.128 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/2.184, allocations: 209.1 kB / 1.128 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.383/7.567, allocations: 0 / 1.128 GB, free: 173.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/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