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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 111 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 67.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2196, allocations: 50.55 MB / 409.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01448/0.2341, allocations: 14.97 MB / 424.9 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008772/0.2429, allocations: 4.823 MB / 429.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.2449, allocations: 95.75 kB / 429.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005746/0.2507, allocations: 3.153 MB / 433 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005924/0.2566, allocations: 2.588 MB / 435.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002166/0.2588, allocations: 0.9905 MB / 436.6 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008815/0.2676, allocations: 7.037 MB / 443.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004954/0.2726, allocations: 4.334 MB / 447.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003339/0.276, allocations: 2.215 MB / 450.1 MB, free: 9.152 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004346/0.2803, allocations: 3.232 MB / 453.4 MB, free: 5.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001381/0.2817, allocations: 484 kB / 453.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003233/0.285, allocations: 1.486 MB / 455.3 MB, free: 3.949 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003218/0.2882, allocations: 2.86 MB / 458.2 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004473/0.2927, allocations: 3.215 MB / 461.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.3033, allocations: 10.35 MB / 471.8 MB, free: 3.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3034, allocations: 3.938 kB / 471.8 MB, free: 3.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3034, allocations: 0 / 471.8 MB, free: 3.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00026/0.3036, allocations: 0 / 471.8 MB, free: 3.457 MB / 382.1 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.01474/0.3184, allocations: 7.252 MB / 479 MB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.3184, allocations: 8.031 kB / 479 MB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01681/0.3353, allocations: 3.939 MB / 483 MB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009642/0.3449, allocations: 4.102 MB / 487.1 MB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002913/0.3453, allocations: 320.4 kB / 487.4 MB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001657/0.3469, allocations: 443.4 kB / 487.8 MB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0267/0.3736, allocations: 15.71 MB / 0.4917 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002008/0.3739, allocations: 55.47 kB / 0.4918 GB, free: 2.547 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001267/0.3752, allocations: 203.8 kB / 0.492 GB, free: 2.348 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005225/0.3804, allocations: 3.227 MB / 0.4951 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02637/0.4068, allocations: 14.11 MB / 0.5089 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2595/0.6663, allocations: 57.49 MB / 0.5651 GB, free: 84.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01233/0.6787, allocations: 6.559 MB / 0.5715 GB, free: 81.89 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003655/0.6824, allocations: 3.681 MB / 0.5751 GB, free: 80.42 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01829/0.7007, allocations: 14.64 MB / 0.5894 GB, free: 72.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.7007, allocations: 59.62 kB / 0.5894 GB, free: 72.26 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 5.65e-06/0.7008, allocations: 3.125 kB / 0.5894 GB, free: 72.26 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1427/0.8435, allocations: 42.35 MB / 0.6308 GB, free: 30.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.8436, allocations: 213.8 kB / 0.631 GB, free: 30.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005381/0.849, allocations: 5.458 MB / 0.6363 GB, free: 24.61 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005761/0.8496, allocations: 73.7 kB / 0.6364 GB, free: 24.53 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.8512, allocations: 4.352 MB / 0.6406 GB, free: 20.18 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000908/0.8521, allocations: 1.264 MB / 0.6419 GB, free: 18.93 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002075/0.8542, allocations: 1.85 MB / 0.6437 GB, free: 17.07 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.581e-05/0.8542, allocations: 313 kB / 0.644 GB, free: 16.76 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005409/0.8596, allocations: 4.804 MB / 0.6487 GB, free: 11.95 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006845/0.8665, allocations: 9.799 MB / 0.6582 GB, free: 15.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0174/0.8839, allocations: 15.58 MB / 0.6734 GB, free: 13.72 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/0.884, allocations: 52 kB / 0.6735 GB, free: 13.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04522/0.9293, allocations: 19.56 MB / 0.6926 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001922/0.9295, allocations: 80 kB / 0.6927 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002841/0.9298, allocations: 172 kB / 0.6928 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02527/0.9551, allocations: 5.939 MB / 0.6986 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007737/0.9628, allocations: 2.113 MB / 0.7007 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0364/0.9993, allocations: 26.15 MB / 0.7262 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007354/1.007, allocations: 0.5461 MB / 0.7268 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001467/1.008, allocations: 0.5117 MB / 0.7273 GB, free: 6.266 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005719/1.014, allocations: 3.11 MB / 0.7303 GB, free: 3.148 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00133/1.015, allocations: 0.4897 MB / 0.7308 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03415/1.049, allocations: 12.93 MB / 0.7434 GB, free: 5.652 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-05/1.049, allocations: 15.94 kB / 0.7434 GB, free: 5.637 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/1.049, allocations: 4 kB / 0.7434 GB, free: 5.633 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/1.051, allocations: 0.522 MB / 0.7439 GB, free: 5.086 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009537/1.052, allocations: 48 kB / 0.744 GB, free: 5.039 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003086/1.055, allocations: 261.9 kB / 0.7442 GB, free: 4.785 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007097/1.055, allocations: 201.8 kB / 0.7444 GB, free: 4.586 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.2117/1.267, allocations: 10.47 MB / 0.7546 GB, free: 196.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01393/1.281, allocations: 12.85 MB / 0.7672 GB, free: 191.2 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003542/1.285, allocations: 3.631 MB / 0.7707 GB, free: 189.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003859/1.289, allocations: 3.4 MB / 0.7741 GB, free: 188.7 MB / 0.545 GB Notification: Performance of Backend: time 4.31e-07/1.289, allocations: 3.906 kB / 0.7741 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0117/1.3, allocations: 7.959 MB / 0.7818 GB, free: 183.8 MB / 0.545 GB Notification: Performance of SimCode: time 0.01714/1.317, allocations: 13.38 MB / 0.7949 GB, free: 171.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1174/1.435, allocations: 91.22 MB / 0.884 GB, free: 81.87 MB / 0.545 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches