Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009845/0.0009845, allocations: 97.27 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.968e-05/1.952e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1327, allocations: 51.47 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4417/0.5744, allocations: 101.4 MB / 496.5 MB, free: 8.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.5747, allocations: 84.95 kB / 496.6 MB, free: 8.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5979/1.173, allocations: 128.5 MB / 0.6104 GB, free: 74.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.173, allocations: 1.375 kB / 0.6104 GB, free: 74.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008679/1.174, allocations: 111.7 kB / 0.6105 GB, free: 74.4 MB / 442.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.02364/1.197, allocations: 6.344 MB / 0.6167 GB, free: 71.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/1.197, allocations: 9.438 kB / 0.6167 GB, free: 71.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03487/1.232, allocations: 8.317 MB / 0.6248 GB, free: 71.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01918/1.251, allocations: 6.325 MB / 0.631 GB, free: 70.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004451/1.252, allocations: 192.6 kB / 0.6312 GB, free: 70.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004/1.256, allocations: 355.1 kB / 0.6315 GB, free: 70.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02321/1.279, allocations: 10.13 MB / 0.6414 GB, free: 69.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03471/1.314, allocations: 14.07 MB / 0.6552 GB, free: 62.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006255/1.315, allocations: 77.41 kB / 0.6552 GB, free: 62.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003648/1.318, allocations: 37.06 kB / 0.6553 GB, free: 62.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002422/1.321, allocations: 1.618 MB / 0.6569 GB, free: 62.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08106/1.402, allocations: 61.45 MB / 0.7169 GB, free: 16.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00748/1.409, allocations: 5.561 MB / 0.7223 GB, free: 10.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004463/1.414, allocations: 3.373 MB / 0.7256 GB, free: 7.805 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02413/1.438, allocations: 13.97 MB / 0.7392 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.845e-05/1.438, allocations: 79.45 kB / 0.7393 GB, free: 11.22 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 8.175e-06/1.438, allocations: 0 / 0.7393 GB, free: 11.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=336): time 0.3569/1.795, allocations: 30.81 MB / 0.7694 GB, free: 84.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.132e-05/1.795, allocations: 209.4 kB / 0.7696 GB, free: 83.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00816/1.803, allocations: 4.277 MB / 0.7738 GB, free: 83.38 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009053/1.804, allocations: 25.7 kB / 0.7738 GB, free: 83.35 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002901/1.807, allocations: 4.532 MB / 0.7782 GB, free: 80.81 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001655/1.809, allocations: 1.204 MB / 0.7794 GB, free: 80.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005449/1.809, allocations: 0 / 0.7794 GB, free: 80.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004253/1.81, allocations: 0.6992 MB / 0.7801 GB, free: 79.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005166/1.815, allocations: 4.37 MB / 0.7844 GB, free: 79.74 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008455/1.824, allocations: 9.575 MB / 0.7937 GB, free: 73.03 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/1.836, allocations: 6.355 MB / 0.7999 GB, free: 71.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003247/1.836, allocations: 53.78 kB / 0.8 GB, free: 71.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.04469/1.881, allocations: 17.65 MB / 0.8172 GB, free: 66.56 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/1.881, allocations: 86 kB / 0.8173 GB, free: 66.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002131/1.881, allocations: 186 kB / 0.8175 GB, free: 66.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02031/1.901, allocations: 5.629 MB / 0.823 GB, free: 65.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00749/1.909, allocations: 2.137 MB / 0.825 GB, free: 65.49 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02565/1.935, allocations: 21.62 MB / 0.8462 GB, free: 55.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01068/1.945, allocations: 399.2 kB / 0.8465 GB, free: 55.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002792/1.948, allocations: 0.5292 MB / 0.8471 GB, free: 55.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * 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 (1108): * Single equations (assignments): 1100 * 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.002236/1.951, allocations: 0.56 MB / 0.8476 GB, free: 54.63 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00131/1.952, allocations: 476.9 kB / 0.8481 GB, free: 54.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02652/1.978, allocations: 12.02 MB / 0.8598 GB, free: 50.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000102/1.979, allocations: 59.42 kB / 0.8599 GB, free: 50.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/1.979, allocations: 7.625 kB / 0.8599 GB, free: 50.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.237e-05/1.979, allocations: 14.64 kB / 0.8599 GB, free: 50.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04538/2.024, allocations: 22.46 MB / 0.8818 GB, free: 34.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-05/2.024, allocations: 9.031 kB / 0.8818 GB, free: 34.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003197/2.027, allocations: 0.5586 MB / 0.8824 GB, free: 33.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01776/2.045, allocations: 4.638 MB / 0.8869 GB, free: 31.04 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001119/2.046, allocations: 12 kB / 0.8869 GB, free: 31.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01943/2.066, allocations: 17.35 MB / 0.9038 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.131e-05/2.066, allocations: 7.938 kB / 0.9038 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.329/2.395, allocations: 16.96 MB / 0.9204 GB, free: 73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/2.397, allocations: 0.492 MB / 0.9209 GB, free: 72.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/2.398, allocations: 10.14 kB / 0.9209 GB, free: 72.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002868/2.401, allocations: 205.5 kB / 0.9211 GB, free: 72.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00058/2.401, allocations: 192.4 kB / 0.9213 GB, free: 72.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002566/2.402, allocations: 87.64 kB / 0.9214 GB, free: 72.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004712/2.406, allocations: 2.839 MB / 0.9241 GB, free: 72.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.8e-07/2.406, allocations: 2.844 kB / 0.9241 GB, free: 72.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009281/2.416, allocations: 1.491 MB / 0.9256 GB, free: 72.73 MB / 458.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.0007128/2.416, allocations: 169.4 kB / 0.9258 GB, free: 72.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01386/2.43, allocations: 10 MB / 0.9355 GB, free: 72.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/2.43, allocations: 3.156 kB / 0.9355 GB, free: 72.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005144/2.435, allocations: 3.816 MB / 0.9393 GB, free: 72.31 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003803/2.439, allocations: 457.8 kB / 0.9397 GB, free: 72.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03061/2.47, allocations: 13.31 MB / 0.9527 GB, free: 70.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006701/2.477, allocations: 4.745 MB / 0.9573 GB, free: 68.49 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007757/2.484, allocations: 3.07 MB / 0.9603 GB, free: 68.44 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/2.486, allocations: 343.9 kB / 0.9606 GB, free: 68.43 MB / 458.7 MB Notification: Performance of SimCode: time 1.152e-06/2.486, allocations: 5.203 kB / 0.9607 GB, free: 68.43 MB / 458.7 MB Notification: Performance of Templates: time 0.1592/2.645, allocations: 67.66 MB / 1.027 GB, free: 48.55 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches