Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization") translateModel(ModelicaTest.MultiBody.Joints.RevoluteInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002809/0.002813, allocations: 182.1 kB / 8.146 MB, free: 0.8672 MB / 6.77 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.2 MB / 213.7 MB, free: 8.602 MB / 178.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001248/0.001247, allocations: 89.7 kB / 261.8 MB, free: 5.102 MB / 210.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2641/0.2641, allocations: 43.5 MB / 353.2 MB, free: 11.42 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 8.426e-06/8.906e-06, allocations: 0 / 417.7 MB, free: 68.59 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09827, allocations: 58.85 MB / 476.5 MB, free: 9.695 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.5077, allocations: 106.8 MB / 0.5697 GB, free: 6.312 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.508, allocations: 79.89 kB / 0.5698 GB, free: 6.273 MB / 386.8 MB Notification: Performance of FrontEnd: time 0.3471/0.8552, allocations: 70.88 MB / 0.639 GB, free: 7.188 MB / 450.8 MB Notification: Performance of Transformations before backend: time 0.0002412/0.8555, allocations: 67.98 kB / 0.639 GB, free: 7.121 MB / 450.8 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.01319/0.8687, allocations: 3.369 MB / 0.6423 GB, free: 3.691 MB / 450.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.8688, allocations: 8.031 kB / 0.6423 GB, free: 3.684 MB / 450.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01537/0.8841, allocations: 1.703 MB / 0.644 GB, free: 1.973 MB / 450.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01669/0.9009, allocations: 4.151 MB / 0.6481 GB, free: 13.76 MB / 466.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.9011, allocations: 112 kB / 0.6482 GB, free: 13.65 MB / 466.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001698/0.9028, allocations: 203.9 kB / 0.6484 GB, free: 13.45 MB / 466.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01521/0.9181, allocations: 5.272 MB / 0.6535 GB, free: 8.168 MB / 466.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02172/0.9398, allocations: 8.192 MB / 0.6615 GB, free: 14.99 MB / 482.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000201/0.9401, allocations: 59.41 kB / 0.6616 GB, free: 14.93 MB / 482.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009557/0.941, allocations: 32 kB / 0.6616 GB, free: 14.9 MB / 482.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002091/0.9432, allocations: 0.946 MB / 0.6625 GB, free: 13.95 MB / 482.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2379/1.181, allocations: 41.93 MB / 0.7035 GB, free: 156.4 MB / 498.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004725/1.186, allocations: 2.571 MB / 0.706 GB, free: 155.8 MB / 498.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003178/1.189, allocations: 1.559 MB / 0.7075 GB, free: 155.7 MB / 498.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01261/1.202, allocations: 5.515 MB / 0.7129 GB, free: 153.8 MB / 498.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/1.202, allocations: 44.25 kB / 0.7129 GB, free: 153.8 MB / 498.8 MB Notification: Performance of pre-optimization done (n=121): time 6.191e-06/1.202, allocations: 3.938 kB / 0.7129 GB, free: 153.8 MB / 498.8 MB Notification: Performance of matching and sorting (n=130): time 0.03425/1.236, allocations: 10.85 MB / 0.7235 GB, free: 151.3 MB / 498.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/1.236, allocations: 168.6 kB / 0.7237 GB, free: 151.1 MB / 498.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006522/1.243, allocations: 2.861 MB / 0.7265 GB, free: 150.8 MB / 498.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003688/1.243, allocations: 25.7 kB / 0.7265 GB, free: 150.8 MB / 498.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/1.245, allocations: 2.619 MB / 0.7291 GB, free: 149.2 MB / 498.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008208/1.246, allocations: 0.5199 MB / 0.7296 GB, free: 149 MB / 498.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004606/1.247, allocations: 0 / 0.7296 GB, free: 149 MB / 498.8 MB Notification: Performance of setup shared object (initialization): time 0.0003635/1.247, allocations: 0.5435 MB / 0.7301 GB, free: 148.6 MB / 498.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003871/1.251, allocations: 1.634 MB / 0.7317 GB, free: 148.6 MB / 498.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006309/1.257, allocations: 5.175 MB / 0.7368 GB, free: 144 MB / 498.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006167/1.263, allocations: 2.912 MB / 0.7396 GB, free: 144 MB / 498.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-05/1.264, allocations: 37.41 kB / 0.7396 GB, free: 144 MB / 498.8 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01524/1.279, allocations: 5.984 MB / 0.7455 GB, free: 142.4 MB / 498.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/1.279, allocations: 10 kB / 0.7455 GB, free: 142.4 MB / 498.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000184/1.279, allocations: 125 kB / 0.7456 GB, free: 142.4 MB / 498.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009786/1.28, allocations: 342.9 kB / 0.7459 GB, free: 142.4 MB / 498.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008608/1.289, allocations: 1.303 MB / 0.7472 GB, free: 142.2 MB / 498.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003232/1.292, allocations: 2.194 MB / 0.7493 GB, free: 140.7 MB / 498.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005162/1.297, allocations: 162 kB / 0.7495 GB, free: 140.6 MB / 498.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/1.298, allocations: 346.7 kB / 0.7498 GB, free: 140.6 MB / 498.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (691): * Single equations (assignments): 687 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001019/1.299, allocations: 352.2 kB / 0.7502 GB, free: 140.3 MB / 498.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007211/1.3, allocations: 281.9 kB / 0.7504 GB, free: 140.2 MB / 498.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007806/1.308, allocations: 2.239 MB / 0.7526 GB, free: 139.5 MB / 498.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.264e-05/1.308, allocations: 11.38 kB / 0.7526 GB, free: 139.5 MB / 498.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/1.308, allocations: 3.812 kB / 0.7526 GB, free: 139.5 MB / 498.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.122e-05/1.308, allocations: 6.609 kB / 0.7526 GB, free: 139.5 MB / 498.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01736/1.326, allocations: 5.289 MB / 0.7578 GB, free: 137.6 MB / 498.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/1.326, allocations: 4.891 kB / 0.7578 GB, free: 137.6 MB / 498.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/1.327, allocations: 172.6 kB / 0.758 GB, free: 137.6 MB / 498.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004167/1.332, allocations: 0.6442 MB / 0.7586 GB, free: 137.5 MB / 498.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002753/1.332, allocations: 8.594 kB / 0.7586 GB, free: 137.5 MB / 498.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009146/1.341, allocations: 4.214 MB / 0.7627 GB, free: 135.1 MB / 498.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/1.341, allocations: 1.344 kB / 0.7627 GB, free: 135.1 MB / 498.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01098/1.352, allocations: 4.376 MB / 0.767 GB, free: 131.6 MB / 498.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/1.354, allocations: 0.5018 MB / 0.7675 GB, free: 131.1 MB / 498.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/1.354, allocations: 4 kB / 0.7675 GB, free: 131.1 MB / 498.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/1.356, allocations: 42.22 kB / 0.7675 GB, free: 131.1 MB / 498.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/1.357, allocations: 54.03 kB / 0.7676 GB, free: 131 MB / 498.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/1.357, allocations: 39.91 kB / 0.7676 GB, free: 131 MB / 498.8 MB Notification: Performance of sort global known variables: time 0.00417/1.361, allocations: 1.902 MB / 0.7695 GB, free: 129.3 MB / 498.8 MB Notification: Performance of remove unused functions: time 0.006175/1.367, allocations: 0.7084 MB / 0.7702 GB, free: 128.6 MB / 498.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 93 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005384/1.368, allocations: 142.4 kB / 0.7703 GB, free: 128.5 MB / 498.8 MB Notification: Performance of simCode: created initialization part: time 0.008462/1.376, allocations: 3.882 MB / 0.7741 GB, free: 125 MB / 498.8 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/1.376, allocations: 0 / 0.7741 GB, free: 125 MB / 498.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002192/1.379, allocations: 1.081 MB / 0.7752 GB, free: 124 MB / 498.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/1.381, allocations: 290.8 kB / 0.7754 GB, free: 123.8 MB / 498.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01732/1.399, allocations: 6.359 MB / 0.7817 GB, free: 118.1 MB / 498.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005785/1.405, allocations: 3.107 MB / 0.7847 GB, free: 115.7 MB / 498.8 MB Notification: Performance of SimCode: time 1.774e-06/1.405, allocations: 3.938 kB / 0.7847 GB, free: 115.7 MB / 498.8 MB Notification: Performance of Templates: time 0.1047/1.509, allocations: 60.48 MB / 0.8438 GB, free: 61.8 MB / 498.8 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches