Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.001171/0.001171, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.36/1.36, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009963/0.0009963, allocations: 42.41 kB / 300 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09426, allocations: 49.46 MB / 349.4 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2102/0.3045, allocations: 53.41 MB / 402.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02742/0.332, allocations: 11.21 MB / 414 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01015/0.3422, allocations: 232.3 kB / 414.3 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005826/0.3481, allocations: 3.132 MB / 417.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006645/0.3547, allocations: 2.398 MB / 419.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002153/0.3569, allocations: 0.9244 MB / 420.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01045/0.3674, allocations: 9.889 MB / 430.6 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005624/0.373, allocations: 4.244 MB / 434.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003572/0.3766, allocations: 1.969 MB / 436.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005248/0.3819, allocations: 3.427 MB / 440.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001635/0.3835, allocations: 332 kB / 440.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003783/0.3873, allocations: 1.435 MB / 442 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003581/0.3909, allocations: 2.75 MB / 444.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005044/0.396, allocations: 3.11 MB / 447.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.407, allocations: 9.937 MB / 457.8 MB, free: 8.289 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.407, allocations: 3.938 kB / 457.8 MB, free: 8.285 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.407, allocations: 0 / 457.8 MB, free: 8.285 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000478/0.4075, allocations: 4 kB / 457.8 MB, free: 8.281 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01621/0.4237, allocations: 7.287 MB / 465.1 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4238, allocations: 12.03 kB / 465.1 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01534/0.4392, allocations: 3.939 MB / 469 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009449/0.4486, allocations: 4.103 MB / 473.2 MB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003941/0.4491, allocations: 320.6 kB / 473.5 MB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002896/0.452, allocations: 431.6 kB / 473.9 MB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02447/0.4765, allocations: 15.71 MB / 489.6 MB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.4767, allocations: 63.45 kB / 489.7 MB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005614/0.4772, allocations: 203.8 kB / 489.9 MB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004538/0.4818, allocations: 3.216 MB / 493.1 MB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0248/0.5066, allocations: 14.13 MB / 0.4953 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2545/0.7611, allocations: 57.77 MB / 0.5517 GB, free: 112.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01402/0.7751, allocations: 6.559 MB / 0.5581 GB, free: 111.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004546/0.7797, allocations: 3.688 MB / 0.5617 GB, free: 110.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02096/0.8007, allocations: 14.66 MB / 0.576 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.8008, allocations: 63.94 kB / 0.5761 GB, free: 102.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.691e-06/0.8008, allocations: 0 / 0.5761 GB, free: 102.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1326/0.9334, allocations: 42.34 MB / 0.6175 GB, free: 68.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.9335, allocations: 210 kB / 0.6177 GB, free: 68.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006266/0.9398, allocations: 5.466 MB / 0.623 GB, free: 63.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006675/0.9405, allocations: 73.7 kB / 0.6231 GB, free: 63.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001704/0.9422, allocations: 4.348 MB / 0.6273 GB, free: 58.76 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/0.9433, allocations: 1.265 MB / 0.6285 GB, free: 57.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002105/0.9454, allocations: 1.854 MB / 0.6304 GB, free: 55.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.373e-05/0.9455, allocations: 309.1 kB / 0.6307 GB, free: 55.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005188/0.9507, allocations: 4.812 MB / 0.6353 GB, free: 50.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00682/0.9575, allocations: 9.802 MB / 0.6449 GB, free: 38.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01328/0.9708, allocations: 15.57 MB / 0.6601 GB, free: 20.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.235e-05/0.9709, allocations: 52 kB / 0.6602 GB, free: 20.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03705/1.008, allocations: 19.55 MB / 0.6793 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001623/1.008, allocations: 81 kB / 0.6793 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002109/1.008, allocations: 175.2 kB / 0.6795 GB, free: 500 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02201/1.03, allocations: 5.942 MB / 0.6853 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007642/1.038, allocations: 2.117 MB / 0.6874 GB, free: 8.414 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2145/1.253, allocations: 24.77 MB / 0.7116 GB, free: 159.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007437/1.26, allocations: 0.5613 MB / 0.7121 GB, free: 159.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.261, allocations: 0.5144 MB / 0.7126 GB, free: 159.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004986/1.266, allocations: 3.094 MB / 0.7156 GB, free: 159 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009916/1.267, allocations: 498.9 kB / 0.7161 GB, free: 159 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03014/1.298, allocations: 12.94 MB / 0.7288 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-05/1.298, allocations: 51.88 kB / 0.7288 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.703e-05/1.298, allocations: 13.33 kB / 0.7288 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.999e-05/1.298, allocations: 18.02 kB / 0.7288 GB, free: 155.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04437/1.342, allocations: 24.56 MB / 0.7528 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-05/1.342, allocations: 6.281 kB / 0.7528 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00292/1.345, allocations: 0.5764 MB / 0.7534 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01795/1.363, allocations: 4.978 MB / 0.7582 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006556/1.364, allocations: 58.98 kB / 0.7583 GB, free: 141.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02109/1.385, allocations: 19.98 MB / 0.7778 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/1.385, allocations: 5.969 kB / 0.7778 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03081/1.416, allocations: 17.46 MB / 0.7949 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/1.417, allocations: 0.5327 MB / 0.7954 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009554/1.418, allocations: 62.61 kB / 0.7955 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002773/1.421, allocations: 259.6 kB / 0.7957 GB, free: 104.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007573/1.422, allocations: 189.5 kB / 0.7959 GB, free: 104.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002757/1.422, allocations: 87.98 kB / 0.796 GB, free: 104 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003929/1.426, allocations: 3.398 MB / 0.7993 GB, free: 100.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.426, allocations: 0 / 0.7993 GB, free: 100.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007185/1.433, allocations: 1.763 MB / 0.801 GB, free: 98.87 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006707/1.434, allocations: 217.6 kB / 0.8012 GB, free: 98.66 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01318/1.447, allocations: 10.93 MB / 0.8119 GB, free: 87.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/1.447, allocations: 0 / 0.8119 GB, free: 87.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004989/1.452, allocations: 4.094 MB / 0.8159 GB, free: 83.68 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004838/1.457, allocations: 0.586 MB / 0.8165 GB, free: 83.11 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02579/1.483, allocations: 19.21 MB / 0.8352 GB, free: 63.89 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006837/1.489, allocations: 4.618 MB / 0.8397 GB, free: 59.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007663/1.497, allocations: 2.97 MB / 0.8426 GB, free: 56.27 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001875/1.499, allocations: 355.4 kB / 0.843 GB, free: 55.92 MB / 478.1 MB Notification: Performance of SimCode: time 2.094e-06/1.499, allocations: 0 / 0.843 GB, free: 55.92 MB / 478.1 MB Notification: Performance of Templates: time 0.2821/1.781, allocations: 78.08 MB / 0.9192 GB, free: 139.9 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches