Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001319/0.001319, allocations: 94.78 kB / 16.94 MB, free: 6.441 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.001548/0.001548, allocations: 183.7 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004493/0.0004496, allocations: 15.44 kB / 280.8 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1137, allocations: 47.58 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04331/0.1571, allocations: 45.73 MB / 374.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2591/0.4163, allocations: 11.08 MB / 385.1 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009979/0.4263, allocations: 230.5 kB / 385.4 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.4364, allocations: 2.283 MB / 387.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0275/0.4639, allocations: 6.681 MB / 394.3 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004668/0.4686, allocations: 0.8486 MB / 395.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04106/0.5097, allocations: 28.07 MB / 423.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008792/0.5186, allocations: 5.014 MB / 428.3 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004521/0.5231, allocations: 1.562 MB / 429.8 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004774/0.528, allocations: 2.261 MB / 432.1 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.5291, allocations: 236 kB / 432.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002976/0.5321, allocations: 1.093 MB / 433.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003046/0.5351, allocations: 2.406 MB / 435.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002125/0.5373, allocations: 1.201 MB / 437 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01098/0.5483, allocations: 8.097 MB / 445.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.5483, allocations: 0 / 445.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5483, allocations: 0 / 445.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003456/0.5487, allocations: 0 / 445.1 MB, free: 11.67 MB / 350.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.01713/0.5658, allocations: 6.459 MB / 451.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.5659, allocations: 8.031 kB / 451.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05103/0.6169, allocations: 9.761 MB / 461.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/0.6296, allocations: 4.644 MB / 466 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002565/0.6299, allocations: 314.5 kB / 466.3 MB, free: 8.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001438/0.6314, allocations: 426.7 kB / 466.7 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02751/0.6589, allocations: 15.74 MB / 482.5 MB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001932/0.6591, allocations: 63.38 kB / 482.5 MB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005987/0.6598, allocations: 204 kB / 482.7 MB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004884/0.6646, allocations: 3.22 MB / 485.9 MB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02858/0.6932, allocations: 14.05 MB / 500 MB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.297/0.9903, allocations: 57.54 MB / 0.5445 GB, free: 144.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/1.005, allocations: 6.571 MB / 0.5509 GB, free: 143.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02213/1.028, allocations: 14.45 MB / 0.565 GB, free: 139.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.129e-05/1.028, allocations: 61.33 kB / 0.565 GB, free: 139.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=286): time 5.971e-06/1.028, allocations: 0 / 0.565 GB, free: 139.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=336): time 0.1327/1.16, allocations: 42.84 MB / 0.6069 GB, free: 111 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.712e-05/1.16, allocations: 213.3 kB / 0.6071 GB, free: 110.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006742/1.167, allocations: 5.744 MB / 0.6127 GB, free: 105.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006424/1.168, allocations: 69.7 kB / 0.6128 GB, free: 105 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001931/1.17, allocations: 4.422 MB / 0.6171 GB, free: 100.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/1.171, allocations: 1.241 MB / 0.6183 GB, free: 99.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004101/1.171, allocations: 173.3 kB / 0.6185 GB, free: 99.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003224/1.172, allocations: 0.6857 MB / 0.6191 GB, free: 98.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005095/1.177, allocations: 4.585 MB / 0.6236 GB, free: 93.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006788/1.184, allocations: 9.531 MB / 0.6329 GB, free: 82.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007233/1.191, allocations: 6.457 MB / 0.6392 GB, free: 75.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.956e-05/1.191, allocations: 50.73 kB / 0.6393 GB, free: 75.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.03701/1.228, allocations: 18.9 MB / 0.6577 GB, free: 56.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/1.228, allocations: 80 kB / 0.6578 GB, free: 56.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001717/1.228, allocations: 176 kB / 0.658 GB, free: 56.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02136/1.25, allocations: 5.835 MB / 0.6637 GB, free: 50.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007292/1.257, allocations: 2.051 MB / 0.6657 GB, free: 48.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02667/1.284, allocations: 24.93 MB / 0.69 GB, free: 23.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007795/1.292, allocations: 0.5519 MB / 0.6906 GB, free: 22.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001208/1.293, allocations: 0.5 MB / 0.691 GB, free: 22.22 MB / 446.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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005631/1.298, allocations: 3.104 MB / 0.6941 GB, free: 19.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/1.3, allocations: 0.4936 MB / 0.6946 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2846/1.584, allocations: 12.6 MB / 0.7069 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001516/1.584, allocations: 53.66 kB / 0.7069 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.188e-05/1.584, allocations: 12.53 kB / 0.7069 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-05/1.584, allocations: 16.16 kB / 0.7069 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05099/1.635, allocations: 24.34 MB / 0.7307 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.334e-05/1.636, allocations: 7.344 kB / 0.7307 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003079/1.639, allocations: 0.5741 MB / 0.7313 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01807/1.657, allocations: 4.84 MB / 0.736 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007898/1.658, allocations: 55.12 kB / 0.7361 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02141/1.679, allocations: 20.22 MB / 0.7558 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/1.679, allocations: 12.64 kB / 0.7558 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03102/1.71, allocations: 17.7 MB / 0.7731 GB, free: 96.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003754/1.714, allocations: 1.246 MB / 0.7743 GB, free: 95.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/1.715, allocations: 59.75 kB / 0.7744 GB, free: 95.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002919/1.718, allocations: 259.9 kB / 0.7746 GB, free: 95.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006071/1.719, allocations: 200.4 kB / 0.7748 GB, free: 94.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000245/1.719, allocations: 87.98 kB / 0.7749 GB, free: 94.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004943/1.724, allocations: 3.612 MB / 0.7784 GB, free: 91.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 4e-07/1.724, allocations: 0 / 0.7784 GB, free: 91.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007644/1.731, allocations: 1.732 MB / 0.7801 GB, free: 89.45 MB / 446.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007954/1.732, allocations: 223.4 kB / 0.7803 GB, free: 89.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01371/1.746, allocations: 10.53 MB / 0.7906 GB, free: 78.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.746, allocations: 4 kB / 0.7906 GB, free: 78.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004826/1.751, allocations: 3.997 MB / 0.7945 GB, free: 74.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/1.754, allocations: 0.5802 MB / 0.7951 GB, free: 74.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/1.781, allocations: 18.37 MB / 0.813 GB, free: 55.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004524/1.785, allocations: 4.751 MB / 0.8177 GB, free: 51.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006596/1.792, allocations: 2.99 MB / 0.8206 GB, free: 48.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/1.793, allocations: 357.1 kB / 0.8209 GB, free: 47.76 MB / 446.1 MB Notification: Performance of SimCode: time 1.196e-05/1.793, allocations: 4 kB / 0.8209 GB, free: 47.76 MB / 446.1 MB Notification: Performance of Templates: time 0.315/2.108, allocations: 75.38 MB / 0.8945 GB, free: 123.8 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches