Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001476/0.001476, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.966/1.966, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001061/0.001061, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.12e-05/3.137e-05, allocations: 7.984 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.09832, allocations: 47.56 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5337, allocations: 99.68 MB / 468.8 MB, free: 9.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.534, allocations: 90.52 kB / 468.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.804/1.338, allocations: 126.9 MB / 0.5818 GB, free: 89.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.338, allocations: 0 / 0.5818 GB, free: 89.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003899/1.339, allocations: 121.8 kB / 0.5819 GB, free: 89.38 MB / 410.7 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.02645/1.365, allocations: 6.335 MB / 0.5881 GB, free: 86.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/1.365, allocations: 11.56 kB / 0.5881 GB, free: 86.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05959/1.425, allocations: 8.315 MB / 0.5963 GB, free: 83.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02747/1.452, allocations: 7.286 MB / 0.6034 GB, free: 78.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005839/1.453, allocations: 448.4 kB / 0.6038 GB, free: 77.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004077/1.457, allocations: 0.5882 MB / 0.6044 GB, free: 77.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04709/1.504, allocations: 15.6 MB / 0.6196 GB, free: 60.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003782/1.505, allocations: 71.39 kB / 0.6197 GB, free: 60.63 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003479/1.508, allocations: 279.4 kB / 0.6199 GB, free: 60.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003496/1.512, allocations: 1.618 MB / 0.6215 GB, free: 58.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03984/1.551, allocations: 13.76 MB / 0.635 GB, free: 45.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4469/1.998, allocations: 64.08 MB / 0.6975 GB, free: 56.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0235/2.022, allocations: 6.39 MB / 0.7038 GB, free: 55.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007991/2.03, allocations: 3.46 MB / 0.7072 GB, free: 55.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03612/2.066, allocations: 14.33 MB / 0.7212 GB, free: 52.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.846e-05/2.066, allocations: 66.53 kB / 0.7212 GB, free: 52.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.083e-06/2.066, allocations: 0 / 0.7212 GB, free: 52.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.1533/2.22, allocations: 29.66 MB / 0.7502 GB, free: 46.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/2.22, allocations: 207.7 kB / 0.7504 GB, free: 46.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01169/2.231, allocations: 4.805 MB / 0.7551 GB, free: 44.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009041/2.232, allocations: 73.83 kB / 0.7552 GB, free: 44.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003934/2.236, allocations: 4.309 MB / 0.7594 GB, free: 40.86 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002193/2.239, allocations: 1.245 MB / 0.7606 GB, free: 39.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/2.24, allocations: 172.3 kB / 0.7607 GB, free: 39.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006612/2.241, allocations: 0.6811 MB / 0.7614 GB, free: 39.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01049/2.251, allocations: 4.463 MB / 0.7658 GB, free: 37.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01369/2.265, allocations: 9.424 MB / 0.775 GB, free: 29.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01371/2.279, allocations: 6.404 MB / 0.7812 GB, free: 26 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000183/2.279, allocations: 48 kB / 0.7813 GB, free: 25.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.06903/2.348, allocations: 18.35 MB / 0.7992 GB, free: 12.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/2.348, allocations: 80 kB / 0.7993 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002859/2.348, allocations: 176 kB / 0.7994 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0394/2.388, allocations: 5.634 MB / 0.8049 GB, free: 8.219 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01361/2.401, allocations: 2.043 MB / 0.8069 GB, free: 6.172 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05389/2.455, allocations: 23.64 MB / 0.83 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01219/2.468, allocations: 0.541 MB / 0.8305 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002485/2.47, allocations: 0.5062 MB / 0.831 GB, free: 13.23 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1060): * Single equations (assignments): 1052 * 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.003735/2.474, allocations: 0.769 MB / 0.8318 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001711/2.476, allocations: 0.4936 MB / 0.8323 GB, free: 11.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05876/2.535, allocations: 12.27 MB / 0.8442 GB, free: 15.62 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001458/2.535, allocations: 58.95 kB / 0.8443 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.373e-05/2.535, allocations: 8 kB / 0.8443 GB, free: 15.56 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.863e-05/2.535, allocations: 19.89 kB / 0.8443 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09725/2.632, allocations: 23.85 MB / 0.8676 GB, free: 7.211 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.712e-05/2.632, allocations: 12.12 kB / 0.8676 GB, free: 7.199 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006324/2.639, allocations: 0.5655 MB / 0.8682 GB, free: 6.633 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03725/2.676, allocations: 4.642 MB / 0.8727 GB, free: 1.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001001/2.677, allocations: 56 kB / 0.8728 GB, free: 1.926 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.359/3.036, allocations: 18.92 MB / 0.8912 GB, free: 146.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.539e-05/3.036, allocations: 8.062 kB / 0.8913 GB, free: 146.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05791/3.094, allocations: 17.27 MB / 0.9081 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00477/3.099, allocations: 1.224 MB / 0.9093 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0022/3.101, allocations: 49.11 kB / 0.9094 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006353/3.107, allocations: 250.6 kB / 0.9096 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001424/3.109, allocations: 189.5 kB / 0.9098 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006742/3.11, allocations: 84.72 kB / 0.9099 GB, free: 140.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009022/3.119, allocations: 3.329 MB / 0.9131 GB, free: 139.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.62e-07/3.119, allocations: 0 / 0.9131 GB, free: 139.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0114/3.13, allocations: 1.708 MB / 0.9148 GB, free: 139.6 MB / 490.7 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 () * 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.00128/3.131, allocations: 213.6 kB / 0.915 GB, free: 139.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02338/3.155, allocations: 10.33 MB / 0.9251 GB, free: 136 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/3.155, allocations: 1.062 kB / 0.9251 GB, free: 136 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009382/3.164, allocations: 3.921 MB / 0.9289 GB, free: 134.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005418/3.17, allocations: 0.5824 MB / 0.9295 GB, free: 134.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03903/3.209, allocations: 14.17 MB / 0.9433 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01153/3.22, allocations: 4.762 MB / 0.948 GB, free: 125.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003156/3.224, allocations: 417.6 kB / 0.9484 GB, free: 125.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/3.224, allocations: 0 / 0.9484 GB, free: 125.2 MB / 490.7 MB Notification: Performance of Templates: time 0.5884/3.812, allocations: 142.6 MB / 1.088 GB, free: 139.6 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches