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.001009/0.001009, allocations: 198.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.2 MB / 245 MB, free: 7.633 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008494/0.0008495, allocations: 101.2 kB / 297.3 MB, free: 6.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002187, allocations: 8 kB / 357.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1968, allocations: 51.48 MB / 409.4 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1127/0.3095, allocations: 102.1 MB / 0.4995 GB, free: 4.543 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.3098, allocations: 92.92 kB / 0.4996 GB, free: 4.453 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4618/0.7716, allocations: 130.8 MB / 0.6273 GB, free: 13.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.7717, allocations: 4 kB / 0.6273 GB, free: 13.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000391/0.7721, allocations: 112 kB / 0.6274 GB, free: 13.68 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.021/0.7931, allocations: 6.786 MB / 0.634 GB, free: 6.812 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.7931, allocations: 16.02 kB / 0.634 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03024/0.8234, allocations: 8.302 MB / 0.6421 GB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01768/0.8411, allocations: 6.358 MB / 0.6484 GB, free: 8.055 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006383/0.8418, allocations: 443.8 kB / 0.6488 GB, free: 7.621 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004109/0.8459, allocations: 0.5857 MB / 0.6493 GB, free: 7.035 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03355/0.8795, allocations: 15.72 MB / 0.6647 GB, free: 6.145 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003488/0.8799, allocations: 71.25 kB / 0.6648 GB, free: 6.074 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002466/0.8823, allocations: 287.8 kB / 0.665 GB, free: 5.793 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002539/0.8849, allocations: 1.624 MB / 0.6666 GB, free: 4.168 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2287/1.114, allocations: 13.96 MB / 0.6803 GB, free: 75.67 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0613/1.175, allocations: 64.03 MB / 0.7428 GB, free: 39.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/1.187, allocations: 6.438 MB / 0.7491 GB, free: 37.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0198/1.207, allocations: 14.29 MB / 0.763 GB, free: 29.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/1.207, allocations: 68.36 kB / 0.7631 GB, free: 29.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 4.859e-06/1.207, allocations: 0 / 0.7631 GB, free: 29.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.1252/1.332, allocations: 42.06 MB / 0.8042 GB, free: 6.664 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/1.332, allocations: 210 kB / 0.8044 GB, free: 6.414 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007035/1.339, allocations: 4.82 MB / 0.8091 GB, free: 2.434 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008505/1.34, allocations: 80.92 kB / 0.8092 GB, free: 2.352 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002623/1.343, allocations: 4.431 MB / 0.8135 GB, free: 14.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001478/1.344, allocations: 1.242 MB / 0.8147 GB, free: 13.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000462/1.345, allocations: 174.3 kB / 0.8149 GB, free: 13.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004228/1.345, allocations: 0.6885 MB / 0.8155 GB, free: 12.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005979/1.351, allocations: 4.533 MB / 0.82 GB, free: 8.539 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008697/1.36, allocations: 9.511 MB / 0.8293 GB, free: 12.68 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008085/1.368, allocations: 6.417 MB / 0.8355 GB, free: 6.242 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.078e-05/1.368, allocations: 52 kB / 0.8356 GB, free: 6.191 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2488/1.617, allocations: 18.67 MB / 0.8538 GB, free: 97.77 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/1.617, allocations: 79.53 kB / 0.8539 GB, free: 97.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002072/1.617, allocations: 179.6 kB / 0.854 GB, free: 97.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02007/1.638, allocations: 5.632 MB / 0.8595 GB, free: 97.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007177/1.645, allocations: 2.053 MB / 0.8616 GB, free: 97.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02574/1.671, allocations: 24.3 MB / 0.8853 GB, free: 94.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006968/1.678, allocations: 0.5392 MB / 0.8858 GB, free: 94.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00158/1.679, allocations: 0.5008 MB / 0.8863 GB, free: 94.38 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.005985/1.685, allocations: 3.094 MB / 0.8893 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009748/1.686, allocations: 0.4957 MB / 0.8898 GB, free: 93.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02586/1.712, allocations: 12.34 MB / 0.9019 GB, free: 89.34 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-05/1.712, allocations: 54.97 kB / 0.9019 GB, free: 89.33 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/1.712, allocations: 11.42 kB / 0.9019 GB, free: 89.33 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.055e-05/1.712, allocations: 18.48 kB / 0.9019 GB, free: 89.33 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04285/1.755, allocations: 23.93 MB / 0.9253 GB, free: 79.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.549e-05/1.755, allocations: 7.125 kB / 0.9253 GB, free: 79.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002801/1.758, allocations: 0.5681 MB / 0.9259 GB, free: 79.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01648/1.774, allocations: 4.65 MB / 0.9304 GB, free: 77.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007363/1.775, allocations: 56 kB / 0.9305 GB, free: 77.15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0202/1.795, allocations: 19.59 MB / 0.9496 GB, free: 59.81 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.795, allocations: 4 kB / 0.9496 GB, free: 59.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02768/1.823, allocations: 17.36 MB / 0.9666 GB, free: 42.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/1.825, allocations: 0.5309 MB / 0.9671 GB, free: 41.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007656/1.825, allocations: 58.64 kB / 0.9671 GB, free: 41.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00243/1.828, allocations: 250.9 kB / 0.9674 GB, free: 41.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005392/1.828, allocations: 192.1 kB / 0.9675 GB, free: 41.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002456/1.829, allocations: 87.98 kB / 0.9676 GB, free: 41.24 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004001/1.833, allocations: 3.354 MB / 0.9709 GB, free: 37.91 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.833, allocations: 0 / 0.9709 GB, free: 37.91 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006508/1.839, allocations: 1.703 MB / 0.9726 GB, free: 36.21 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.0006434/1.84, allocations: 221.5 kB / 0.9728 GB, free: 36.03 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01263/1.852, allocations: 10.45 MB / 0.983 GB, free: 25.76 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/1.853, allocations: 4 kB / 0.983 GB, free: 25.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00421/1.857, allocations: 3.945 MB / 0.9868 GB, free: 21.79 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/1.859, allocations: 0.5757 MB / 0.9874 GB, free: 21.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02225/1.882, allocations: 18.29 MB / 1.005 GB, free: 3.129 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004779/1.886, allocations: 4.75 MB / 1.01 GB, free: 14.39 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007335/1.894, allocations: 2.983 MB / 1.013 GB, free: 11.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/1.895, allocations: 347.4 kB / 1.013 GB, free: 11.16 MB / 490.7 MB Notification: Performance of SimCode: time 7.52e-07/1.895, allocations: 4 kB / 1.013 GB, free: 11.15 MB / 490.7 MB Notification: Performance of Templates: time 0.284/2.179, allocations: 73.3 MB / 1.085 GB, free: 97.4 MB / 490.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