Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [: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.001546/0.001546, allocations: 183.3 kB / 8.134 MB, free: 2.09 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.218/1.218, allocations: 221.4 MB / 229.9 MB, free: 3.129 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.0009447/0.0009447, allocations: 99.5 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.573e-06/6.603e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2258, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.3412, allocations: 104.4 MB / 491.3 MB, free: 14.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.3415, allocations: 95.88 kB / 491.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4029/0.7444, allocations: 108.9 MB / 0.5862 GB, free: 22.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002592/0.7448, allocations: 108 kB / 0.5863 GB, free: 22.25 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01465/0.7594, allocations: 4.878 MB / 0.5911 GB, free: 17.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.7595, allocations: 16.03 kB / 0.5911 GB, free: 17.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02514/0.7846, allocations: 6.493 MB / 0.5974 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01526/0.7999, allocations: 6.526 MB / 0.6038 GB, free: 4.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.8002, allocations: 172 kB / 0.6039 GB, free: 4.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002298/0.8025, allocations: 311.8 kB / 0.6042 GB, free: 3.715 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01402/0.8165, allocations: 7.736 MB / 0.6118 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02164/0.8382, allocations: 10.87 MB / 0.6224 GB, free: 132 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002656/0.8385, allocations: 63.45 kB / 0.6225 GB, free: 68 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007867/0.8393, allocations: 28 kB / 0.6225 GB, free: 40 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001486/0.8408, allocations: 1.121 MB / 0.6236 GB, free: 14.92 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1801/1.021, allocations: 49.48 MB / 0.6719 GB, free: 91.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003166/1.024, allocations: 3.053 MB / 0.6749 GB, free: 90.37 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/1.026, allocations: 1.987 MB / 0.6768 GB, free: 90.33 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009855/1.036, allocations: 7.783 MB / 0.6844 GB, free: 87.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/1.036, allocations: 57.5 kB / 0.6845 GB, free: 87.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=179): time 3.407e-06/1.036, allocations: 2.75 kB / 0.6845 GB, free: 87.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=227): time 0.03688/1.073, allocations: 15.8 MB / 0.6999 GB, free: 84.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/1.073, allocations: 203 kB / 0.7001 GB, free: 84.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/1.077, allocations: 3.503 MB / 0.7035 GB, free: 84.31 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002155/1.077, allocations: 25.7 kB / 0.7036 GB, free: 84.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/1.079, allocations: 3.284 MB / 0.7068 GB, free: 82.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005939/1.079, allocations: 0.8263 MB / 0.7076 GB, free: 81.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/1.08, allocations: 0 / 0.7076 GB, free: 81.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002536/1.08, allocations: 0.5757 MB / 0.7081 GB, free: 81.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/1.082, allocations: 2.101 MB / 0.7102 GB, free: 81.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003466/1.086, allocations: 5.963 MB / 0.716 GB, free: 76.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003885/1.09, allocations: 3.564 MB / 0.7195 GB, free: 76.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.625e-05/1.09, allocations: 44.81 kB / 0.7195 GB, free: 76.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=862) (initialization): time 0.01683/1.106, allocations: 8.037 MB / 0.7274 GB, free: 75.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/1.106, allocations: 9.062 kB / 0.7274 GB, free: 75.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001932/1.107, allocations: 137.9 kB / 0.7275 GB, free: 75.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003258/1.11, allocations: 1.017 MB / 0.7285 GB, free: 75.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005074/1.115, allocations: 1.458 MB / 0.7299 GB, free: 75.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008079/1.123, allocations: 6.279 MB / 0.7361 GB, free: 72.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00499/1.128, allocations: 187.8 kB / 0.7363 GB, free: 72.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008614/1.129, allocations: 394.4 kB / 0.7366 GB, free: 72.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (798): * Single equations (assignments): 794 * 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 prepare postOptimizeDAE: time 0.0008578/1.13, allocations: 456.5 kB / 0.7371 GB, free: 71.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004966/1.13, allocations: 384.4 kB / 0.7374 GB, free: 71.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006359/1.137, allocations: 3.513 MB / 0.7409 GB, free: 70.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-05/1.137, allocations: 22.06 kB / 0.7409 GB, free: 70.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/1.137, allocations: 7.531 kB / 0.7409 GB, free: 70.22 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.817e-05/1.137, allocations: 10.97 kB / 0.7409 GB, free: 70.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01531/1.152, allocations: 8.702 MB / 0.7494 GB, free: 66.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-05/1.152, allocations: 10 kB / 0.7494 GB, free: 66.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001839/1.154, allocations: 343 kB / 0.7497 GB, free: 66.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002788/1.157, allocations: 0.7832 MB / 0.7505 GB, free: 66.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001807/1.157, allocations: 8 kB / 0.7505 GB, free: 66.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006267/1.163, allocations: 5.096 MB / 0.7555 GB, free: 61.49 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/1.163, allocations: 12.22 kB / 0.7555 GB, free: 61.48 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008876/1.172, allocations: 6.983 MB / 0.7623 GB, free: 55.03 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/1.174, allocations: 429.7 kB / 0.7627 GB, free: 54.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005799/1.174, allocations: 9.969 kB / 0.7627 GB, free: 54.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/1.176, allocations: 49.62 kB / 0.7628 GB, free: 54.56 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/1.176, allocations: 117.2 kB / 0.7629 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/1.176, allocations: 63.14 kB / 0.763 GB, free: 54.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003232/1.179, allocations: 2.386 MB / 0.7653 GB, free: 52.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005501/1.185, allocations: 0.9997 MB / 0.7663 GB, free: 51.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 175 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005535/1.186, allocations: 205.9 kB / 0.7665 GB, free: 51.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006706/1.192, allocations: 5.123 MB / 0.7715 GB, free: 46.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/1.192, allocations: 4 kB / 0.7715 GB, free: 46.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002006/1.194, allocations: 1.694 MB / 0.7731 GB, free: 44.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/1.197, allocations: 438.8 kB / 0.7735 GB, free: 44.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/1.213, allocations: 9.085 MB / 0.7824 GB, free: 36.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006173/1.22, allocations: 4.266 MB / 0.7866 GB, free: 33.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/1.22, allocations: 0 / 0.7866 GB, free: 33.05 MB / 426.7 MB Notification: Performance of Templates: time 0.203/1.423, allocations: 42.41 MB / 0.828 GB, free: 106.5 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches