Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000966/0.000966, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00083/0.00083, allocations: 103.3 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002818/0.000282, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2281, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1339/0.3621, allocations: 102.1 MB / 0.4988 GB, free: 5.406 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.3624, allocations: 91.95 kB / 0.4989 GB, free: 5.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.478/0.8404, allocations: 127.8 MB / 0.6237 GB, free: 2.281 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.8404, allocations: 0 / 0.6237 GB, free: 2.281 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004001/0.8409, allocations: 119.9 kB / 0.6239 GB, free: 2.164 MB / 394.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.02159/0.8625, allocations: 6.564 MB / 0.6303 GB, free: 11.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.8625, allocations: 12.02 kB / 0.6303 GB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0282/0.8907, allocations: 6.664 MB / 0.6368 GB, free: 4.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/0.9071, allocations: 5.652 MB / 0.6423 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006035/0.9078, allocations: 452.1 kB / 0.6427 GB, free: 14.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00352/0.9113, allocations: 0.586 MB / 0.6433 GB, free: 14.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03862/0.95, allocations: 15.6 MB / 0.6585 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006145/0.9507, allocations: 79.52 kB / 0.6586 GB, free: 13.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00399/0.9547, allocations: 287.8 kB / 0.6589 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00286/0.9576, allocations: 1.612 MB / 0.6605 GB, free: 11.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2571/1.215, allocations: 13.8 MB / 0.6739 GB, free: 76.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06414/1.279, allocations: 63.96 MB / 0.7364 GB, free: 42.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/1.291, allocations: 6.358 MB / 0.7426 GB, free: 40 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004061/1.295, allocations: 3.5 MB / 0.746 GB, free: 38.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02039/1.315, allocations: 14.19 MB / 0.7599 GB, free: 31.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/1.316, allocations: 59.25 kB / 0.7599 GB, free: 31.31 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 6.091e-06/1.316, allocations: 0 / 0.7599 GB, free: 31.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.13/1.446, allocations: 41.27 MB / 0.8002 GB, free: 12.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/1.446, allocations: 210 kB / 0.8004 GB, free: 12.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007093/1.453, allocations: 5.414 MB / 0.8057 GB, free: 8.023 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007113/1.454, allocations: 77.64 kB / 0.8058 GB, free: 7.941 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002032/1.456, allocations: 4.42 MB / 0.8101 GB, free: 3.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001485/1.457, allocations: 1.247 MB / 0.8113 GB, free: 2.883 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004913/1.458, allocations: 179.4 kB / 0.8115 GB, free: 2.711 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003647/1.458, allocations: 0.6812 MB / 0.8122 GB, free: 2.129 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0114/1.469, allocations: 4.859 MB / 0.8169 GB, free: 14.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01171/1.481, allocations: 9.541 MB / 0.8262 GB, free: 3.008 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01799/1.499, allocations: 15.14 MB / 0.841 GB, free: 1.578 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001509/1.499, allocations: 48 kB / 0.8411 GB, free: 1.531 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2761/1.775, allocations: 18.68 MB / 0.8593 GB, free: 104.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003725/1.776, allocations: 78.09 kB / 0.8594 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005004/1.776, allocations: 172.3 kB / 0.8596 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03644/1.813, allocations: 5.615 MB / 0.865 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01206/1.825, allocations: 2.048 MB / 0.867 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05041/1.875, allocations: 23.66 MB / 0.8901 GB, free: 98.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01457/1.89, allocations: 0.5419 MB / 0.8907 GB, free: 98.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00299/1.893, allocations: 0.5016 MB / 0.8912 GB, free: 98.52 MB / 474.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 () * Number of clocked 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.01206/1.905, allocations: 3.099 MB / 0.8942 GB, free: 97.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002249/1.907, allocations: 0.4966 MB / 0.8947 GB, free: 97.23 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05173/1.959, allocations: 12.34 MB / 0.9067 GB, free: 93.28 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001576/1.959, allocations: 58.92 kB / 0.9068 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.382e-05/1.96, allocations: 7.906 kB / 0.9068 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001019/1.96, allocations: 21.66 kB / 0.9068 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08374/2.043, allocations: 23.93 MB / 0.9302 GB, free: 80.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.761e-05/2.044, allocations: 6.344 kB / 0.9302 GB, free: 80.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005285/2.049, allocations: 0.5647 MB / 0.9307 GB, free: 79.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03256/2.081, allocations: 4.65 MB / 0.9353 GB, free: 77.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00108/2.083, allocations: 62.83 kB / 0.9353 GB, free: 77.15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04065/2.123, allocations: 18.95 MB / 0.9538 GB, free: 59.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.188e-05/2.123, allocations: 4 kB / 0.9538 GB, free: 59.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05753/2.181, allocations: 16.65 MB / 0.9701 GB, free: 42.88 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002557/2.184, allocations: 0.5331 MB / 0.9706 GB, free: 42.33 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002321/2.186, allocations: 59.98 kB / 0.9707 GB, free: 42.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005999/2.192, allocations: 249.5 kB / 0.9709 GB, free: 42.03 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001464/2.193, allocations: 185.6 kB / 0.9711 GB, free: 41.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007836/2.194, allocations: 93.84 kB / 0.9712 GB, free: 41.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01101/2.205, allocations: 3.35 MB / 0.9745 GB, free: 38.44 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.21e-07/2.205, allocations: 0 / 0.9745 GB, free: 38.44 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01752/2.223, allocations: 1.707 MB / 0.9761 GB, free: 36.74 MB / 474.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 () * 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.001576/2.225, allocations: 225.3 kB / 0.9763 GB, free: 36.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02616/2.251, allocations: 10.45 MB / 0.9866 GB, free: 26.14 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.801e-05/2.251, allocations: 0 / 0.9866 GB, free: 26.14 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009788/2.261, allocations: 3.954 MB / 0.9904 GB, free: 22.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01401/2.275, allocations: 0.6201 MB / 0.991 GB, free: 21.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05376/2.329, allocations: 19.05 MB / 1.01 GB, free: 2.691 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3304/2.659, allocations: 4.627 MB / 1.014 GB, free: 110.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00329/2.662, allocations: 417.2 kB / 1.015 GB, free: 110.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/2.662, allocations: 0 / 1.015 GB, free: 110.5 MB / 490.7 MB Notification: Performance of Templates: time 0.2919/2.954, allocations: 148.2 MB / 1.159 GB, free: 24.94 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches