Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",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.001044/0.001044, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001185/0.001185, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.305/1.305, allocations: 222.9 MB / 242.3 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2014/0.2014, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.52 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1218, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01049/0.1324, allocations: 10.25 MB / 479.6 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007544/0.1399, allocations: 3.802 MB / 483.4 MB, free: 148 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.1416, allocations: 59.81 kB / 483.5 MB, free: 88 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00389/0.1455, allocations: 1.943 MB / 485.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004458/0.15, allocations: 1.657 MB / 487.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.1516, allocations: 0.6121 MB / 487.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004472/0.1561, allocations: 3.33 MB / 491 MB, free: 8.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003622/0.1597, allocations: 2.576 MB / 493.6 MB, free: 5.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002181/0.1619, allocations: 1.242 MB / 494.8 MB, free: 4.648 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.1645, allocations: 1.674 MB / 496.5 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001015/0.1656, allocations: 260 kB / 496.8 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.1681, allocations: 1.03 MB / 497.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001892/0.17, allocations: 1.562 MB / 499.3 MB, free: 120 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002969/0.173, allocations: 1.833 MB / 0.4894 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00718/0.1802, allocations: 5.627 MB / 0.4949 GB, free: 8.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1802, allocations: 0 / 0.4949 GB, free: 8.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1802, allocations: 0 / 0.4949 GB, free: 8.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002243/0.1804, allocations: 0 / 0.4949 GB, free: 8.629 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.00896/0.1894, allocations: 4.03 MB / 0.4989 GB, free: 4.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.1895, allocations: 8.031 kB / 0.4989 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001255/0.1907, allocations: 0.6082 MB / 0.4995 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006754/0.1975, allocations: 1.782 MB / 0.5012 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2081/0.4056, allocations: 2.224 MB / 0.5034 GB, free: 45.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.4059, allocations: 191.7 kB / 0.5036 GB, free: 45.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009964/0.4069, allocations: 258.2 kB / 0.5038 GB, free: 45.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/0.422, allocations: 8.437 MB / 0.512 GB, free: 42.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001223/0.4221, allocations: 48.19 kB / 0.5121 GB, free: 41.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004378/0.4226, allocations: 126 kB / 0.5122 GB, free: 41.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003325/0.4259, allocations: 1.695 MB / 0.5139 GB, free: 41.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01526/0.4412, allocations: 7.099 MB / 0.5208 GB, free: 39.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03298/0.4742, allocations: 34.15 MB / 0.5542 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006403/0.4807, allocations: 3.282 MB / 0.5574 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.4822, allocations: 1.458 MB / 0.5588 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006489/0.4887, allocations: 4.372 MB / 0.5631 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.857e-05/0.4888, allocations: 51.06 kB / 0.5631 GB, free: 13.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.187e-06/0.4888, allocations: 0 / 0.5631 GB, free: 13.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03034/0.5192, allocations: 11.51 MB / 0.5743 GB, free: 1.492 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.5193, allocations: 166.9 kB / 0.5745 GB, free: 1.293 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006424/0.5258, allocations: 3.73 MB / 0.5781 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002427/0.5261, allocations: 41.7 kB / 0.5782 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001921/0.528, allocations: 2.76 MB / 0.5809 GB, free: 10.72 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006639/0.5287, allocations: 0.5209 MB / 0.5814 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/0.5305, allocations: 1.079 MB / 0.5824 GB, free: 9.105 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.5306, allocations: 301.1 kB / 0.5827 GB, free: 8.809 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/0.5333, allocations: 1.697 MB / 0.5844 GB, free: 7.105 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005042/0.5383, allocations: 5.119 MB / 0.5894 GB, free: 264 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00821/0.5465, allocations: 7.397 MB / 0.5966 GB, free: 7.148 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/0.5467, allocations: 40 kB / 0.5966 GB, free: 7.109 MB / 430.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01204/0.5588, allocations: 6.702 MB / 0.6032 GB, free: 408 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.5589, allocations: 59.94 kB / 0.6032 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001661/0.5591, allocations: 124 kB / 0.6034 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006871/0.5598, allocations: 316.7 kB / 0.6037 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003868/0.5637, allocations: 1.24 MB / 0.6049 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00277/0.5665, allocations: 2.499 MB / 0.6073 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003743/0.5702, allocations: 291.6 kB / 0.6076 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007291/0.571, allocations: 332 kB / 0.6079 GB, free: 11.42 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002988/0.574, allocations: 1.783 MB / 0.6097 GB, free: 9.621 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006477/0.5746, allocations: 323.8 kB / 0.61 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004888/0.5795, allocations: 2.359 MB / 0.6123 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.269e-05/0.5796, allocations: 19.91 kB / 0.6123 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.5796, allocations: 4 kB / 0.6123 GB, free: 6.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5796, allocations: 3.984 kB / 0.6123 GB, free: 6.906 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/0.5918, allocations: 5.925 MB / 0.6181 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.5918, allocations: 0 / 0.6181 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008569/0.5927, allocations: 179.7 kB / 0.6183 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/0.5949, allocations: 0.7148 MB / 0.6189 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.5951, allocations: 16 kB / 0.619 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005955/0.6011, allocations: 4.818 MB / 0.6237 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.6011, allocations: 0 / 0.6237 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006935/0.608, allocations: 4.328 MB / 0.6279 GB, free: 6.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008701/0.6089, allocations: 368.9 kB / 0.6282 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006304/0.6096, allocations: 23.98 kB / 0.6283 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/0.611, allocations: 71.89 kB / 0.6283 GB, free: 6.203 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.6112, allocations: 69.72 kB / 0.6284 GB, free: 6.137 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.425e-05/0.6113, allocations: 36 kB / 0.6284 GB, free: 6.102 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004119/0.6155, allocations: 2.327 MB / 0.6307 GB, free: 3.789 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6155, allocations: 4.062 kB / 0.6307 GB, free: 3.785 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004959/0.6204, allocations: 0.8151 MB / 0.6315 GB, free: 2.973 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007863/0.6283, allocations: 4.961 MB / 0.6364 GB, free: 13.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007199/0.6356, allocations: 4.408 MB / 0.6407 GB, free: 9.59 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.6356, allocations: 4.375 kB / 0.6407 GB, free: 9.586 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.6373, allocations: 1.107 MB / 0.6417 GB, free: 8.465 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/0.6402, allocations: 389.1 kB / 0.6421 GB, free: 8.086 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05956/0.6997, allocations: 42.23 MB / 0.6834 GB, free: 6.984 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003742/0.7035, allocations: 2.781 MB / 0.6861 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004207/0.7078, allocations: 1.668 MB / 0.6877 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/0.7101, allocations: 1.526 MB / 0.6892 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/0.7102, allocations: 0 / 0.6892 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2848/0.995, allocations: 61.23 MB / 0.749 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/12, allocations: 15.05 kB / 0.749 GB, free: 165.4 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches