Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 179 kB / 8.517 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 221.4 MB / 230.3 MB, free: 7.723 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008993/0.0008992, allocations: 87.41 kB / 281.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1595/0.1595, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.253e-06/7.283e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.09917, allocations: 61.91 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2779/0.3771, allocations: 107.8 MB / 0.5993 GB, free: 4.973 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.3774, allocations: 71.95 kB / 0.5994 GB, free: 4.902 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1961/0.5735, allocations: 75.22 MB / 0.6729 GB, free: 9.125 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.5737, allocations: 72 kB / 0.6729 GB, free: 9.055 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.008832/0.5826, allocations: 3.557 MB / 0.6764 GB, free: 5.438 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.5826, allocations: 21.47 kB / 0.6764 GB, free: 5.418 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01651/0.5991, allocations: 3.914 MB / 0.6803 GB, free: 1.492 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.6106, allocations: 4.382 MB / 0.6845 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.6108, allocations: 116 kB / 0.6846 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001103/0.6119, allocations: 215.9 kB / 0.6849 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008729/0.6206, allocations: 5.312 MB / 0.69 GB, free: 7.406 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.6338, allocations: 8.373 MB / 0.6982 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001527/0.634, allocations: 63.39 kB / 0.6983 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004587/0.6345, allocations: 35.94 kB / 0.6983 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001087/0.6355, allocations: 0.9426 MB / 0.6992 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2001/0.8357, allocations: 44.28 MB / 0.7425 GB, free: 165.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002605/0.8383, allocations: 2.582 MB / 0.745 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.8398, allocations: 1.649 MB / 0.7466 GB, free: 165 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006748/0.8466, allocations: 5.527 MB / 0.752 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.8466, allocations: 54.28 kB / 0.7521 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=151): time 3.416e-06/0.8466, allocations: 0 / 0.7521 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=188): time 0.03864/0.8853, allocations: 17.07 MB / 0.7687 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.8854, allocations: 199.5 kB / 0.7689 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003645/0.889, allocations: 2.931 MB / 0.7718 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002429/0.8893, allocations: 29.39 kB / 0.7718 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.8904, allocations: 2.695 MB / 0.7744 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005424/0.8909, allocations: 0.6943 MB / 0.7751 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/0.8912, allocations: 0 / 0.7751 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002349/0.8914, allocations: 0.5605 MB / 0.7757 GB, free: 155.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002261/0.8937, allocations: 1.952 MB / 0.7776 GB, free: 155.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003569/0.8972, allocations: 5.626 MB / 0.7831 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004742/0.902, allocations: 3.662 MB / 0.7866 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.595e-05/0.9021, allocations: 37.22 kB / 0.7867 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=792) (initialization): time 0.01831/0.9204, allocations: 8.214 MB / 0.7947 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.9205, allocations: 4.156 kB / 0.7947 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002873/0.9208, allocations: 131.5 kB / 0.7948 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00583/0.9266, allocations: 1.463 MB / 0.7963 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004609/0.9312, allocations: 1.323 MB / 0.7976 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/0.9447, allocations: 8.454 MB / 0.8058 GB, free: 139.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004532/0.9493, allocations: 171.3 kB / 0.806 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.9503, allocations: 382.3 kB / 0.8063 GB, free: 139 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (724): * Single equations (assignments): 720 * 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 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009015/0.9512, allocations: 433.3 kB / 0.8068 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005503/0.9518, allocations: 308 kB / 0.807 GB, free: 138.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00878/0.9606, allocations: 3.899 MB / 0.8109 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-05/0.9606, allocations: 16 kB / 0.8109 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.9607, allocations: 8 kB / 0.8109 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.198e-05/0.9607, allocations: 11.73 kB / 0.8109 GB, free: 135.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01502/0.9757, allocations: 7.641 MB / 0.8184 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/0.9758, allocations: 0 / 0.8184 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.977, allocations: 226.7 kB / 0.8186 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004813/0.9818, allocations: 1.241 MB / 0.8198 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002245/0.9821, allocations: 19.64 kB / 0.8198 GB, free: 128 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/0.9945, allocations: 7.961 MB / 0.8276 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.9945, allocations: 8 kB / 0.8276 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01092/1.005, allocations: 6.463 MB / 0.8339 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007166/1.006, allocations: 352.5 kB / 0.8342 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004139/1.007, allocations: 0 / 0.8342 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/1.008, allocations: 46.88 kB / 0.8343 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/1.008, allocations: 83.39 kB / 0.8344 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/1.008, allocations: 63.64 kB / 0.8344 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002377/1.011, allocations: 1.957 MB / 0.8363 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004105/1.015, allocations: 0.8275 MB / 0.8371 GB, free: 112.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 122 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004248/1.015, allocations: 164.5 kB / 0.8373 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006038/1.021, allocations: 4.795 MB / 0.842 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/1.021, allocations: 4.125 kB / 0.842 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001794/1.023, allocations: 1.562 MB / 0.8435 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/1.025, allocations: 290.1 kB / 0.8438 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/1.037, allocations: 6.97 MB / 0.8506 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003599/1.041, allocations: 3.278 MB / 0.8538 GB, free: 97.61 MB / 0.5105 GB Notification: Performance of SimCode: time 8.31e-07/1.041, allocations: 0 / 0.8538 GB, free: 97.61 MB / 0.5105 GB Notification: Performance of Templates: time 0.06009/1.101, allocations: 37.95 MB / 0.8908 GB, free: 60.73 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches