Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001514/0.001514, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.912/1.912, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001157/0.001157, allocations: 99.23 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003974, allocations: 11.98 kB / 327 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.327, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1646/0.4917, allocations: 102.9 MB / 477.4 MB, free: 9.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/0.4921, allocations: 95.95 kB / 477.5 MB, free: 9.746 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.772/1.264, allocations: 140.1 MB / 0.6032 GB, free: 11.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.264, allocations: 0 / 0.6032 GB, free: 11.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005602/1.265, allocations: 148 kB / 0.6033 GB, free: 11.45 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03474/1.299, allocations: 8.254 MB / 0.6114 GB, free: 3.105 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/1.3, allocations: 15.97 kB / 0.6114 GB, free: 3.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.087/1.387, allocations: 11.72 MB / 0.6229 GB, free: 7.336 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03898/1.426, allocations: 10.58 MB / 0.6332 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007584/1.426, allocations: 0.5137 MB / 0.6337 GB, free: 12.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003871/1.43, allocations: 0.7027 MB / 0.6344 GB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3619/1.792, allocations: 17.39 MB / 0.6514 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005589/1.793, allocations: 99.58 kB / 0.6514 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002996/1.796, allocations: 330.5 kB / 0.6518 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00329/1.799, allocations: 1.461 MB / 0.6532 GB, free: 59.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04654/1.846, allocations: 14.5 MB / 0.6673 GB, free: 58.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1152/1.961, allocations: 73.3 MB / 0.7389 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04029/2.001, allocations: 8.772 MB / 0.7475 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03776/2.039, allocations: 17.75 MB / 0.7648 GB, free: 2.992 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.24e-05/2.039, allocations: 64.47 kB / 0.7649 GB, free: 2.934 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 6.763e-06/2.039, allocations: 0 / 0.7649 GB, free: 2.934 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.7441/2.783, allocations: 69.81 MB / 0.8331 GB, free: 90.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/2.784, allocations: 381.4 kB / 0.8334 GB, free: 89.63 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01513/2.799, allocations: 5.546 MB / 0.8388 GB, free: 89.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001214/2.8, allocations: 78.58 kB / 0.8389 GB, free: 89.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004352/2.804, allocations: 4.651 MB / 0.8435 GB, free: 86.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002406/2.807, allocations: 1.37 MB / 0.8448 GB, free: 85.94 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001577/2.808, allocations: 180.8 kB / 0.845 GB, free: 85.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005592/2.809, allocations: 0.6876 MB / 0.8456 GB, free: 85.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01251/2.822, allocations: 5.489 MB / 0.851 GB, free: 85.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01616/2.838, allocations: 10.47 MB / 0.8612 GB, free: 78.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01653/2.854, allocations: 7.407 MB / 0.8685 GB, free: 75.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002229/2.855, allocations: 55.39 kB / 0.8685 GB, free: 75.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.07029/2.925, allocations: 21.11 MB / 0.8891 GB, free: 69.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000125/2.925, allocations: 82.41 kB / 0.8892 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000251/2.925, allocations: 176.1 kB / 0.8894 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03549/2.961, allocations: 6.523 MB / 0.8957 GB, free: 66.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01294/2.974, allocations: 2.049 MB / 0.8977 GB, free: 65.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07442/3.048, allocations: 33.56 MB / 0.9305 GB, free: 36.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01305/3.061, allocations: 0.6948 MB / 0.9312 GB, free: 35.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002404/3.064, allocations: 0.5111 MB / 0.9317 GB, free: 35.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.01278/3.077, allocations: 3.443 MB / 0.9351 GB, free: 32.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003427/3.08, allocations: 0.5873 MB / 0.9356 GB, free: 31.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07381/3.154, allocations: 15.48 MB / 0.9508 GB, free: 17.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.744e-05/3.154, allocations: 47.98 kB / 0.9508 GB, free: 17.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-05/3.154, allocations: 16 kB / 0.9508 GB, free: 17.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.359e-05/3.154, allocations: 19.94 kB / 0.9508 GB, free: 17.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.409/3.563, allocations: 30.5 MB / 0.9806 GB, free: 95.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.803e-05/3.563, allocations: 3.906 kB / 0.9806 GB, free: 95.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005914/3.569, allocations: 0.5732 MB / 0.9812 GB, free: 95.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0349/3.604, allocations: 6.154 MB / 0.9872 GB, free: 95.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001151/3.606, allocations: 62.69 kB / 0.9872 GB, free: 95.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0979/3.703, allocations: 31.92 MB / 1.018 GB, free: 89.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/3.704, allocations: 3.438 kB / 1.018 GB, free: 89.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06588/3.769, allocations: 23.14 MB / 1.041 GB, free: 80.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005704/3.775, allocations: 1.574 MB / 1.043 GB, free: 79.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002037/3.777, allocations: 64.3 kB / 1.043 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007159/3.784, allocations: 405.1 kB / 1.043 GB, free: 79.84 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001621/3.786, allocations: 251.4 kB / 1.043 GB, free: 79.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005558/3.787, allocations: 95.12 kB / 1.043 GB, free: 79.79 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00897/3.796, allocations: 3.953 MB / 1.047 GB, free: 78.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.71e-07/3.796, allocations: 0 / 1.047 GB, free: 78.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0119/3.808, allocations: 2.17 MB / 1.049 GB, free: 78.26 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001684/3.809, allocations: 280.1 kB / 1.05 GB, free: 78.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03392/3.843, allocations: 13.91 MB / 1.063 GB, free: 66.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/3.843, allocations: 4 kB / 1.063 GB, free: 66.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01826/3.862, allocations: 6.366 MB / 1.069 GB, free: 61.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006857/3.868, allocations: 0.841 MB / 1.07 GB, free: 60.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04681/3.915, allocations: 23.13 MB / 1.093 GB, free: 39.94 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01116/3.927, allocations: 5.443 MB / 1.098 GB, free: 35.94 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003745/3.93, allocations: 442 kB / 1.099 GB, free: 35.52 MB / 458.7 MB Notification: Performance of SimCode: time 1.072e-06/3.93, allocations: 3.656 kB / 1.099 GB, free: 35.52 MB / 458.7 MB Notification: Performance of Templates: time 0.6771/4.608, allocations: 198.1 MB / 1.292 GB, free: 328 kB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches