Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001174/0.001174, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002389, allocations: 55.31 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1391, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2062/0.3453, allocations: 13.45 MB / 372.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009744/0.3551, allocations: 4.883 MB / 377.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002125/0.3573, allocations: 86.94 kB / 377.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006965/0.3643, allocations: 4.176 MB / 381.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006112/0.3704, allocations: 2.106 MB / 383.6 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002808/0.3733, allocations: 1.105 MB / 384.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009955/0.3832, allocations: 6.058 MB / 390.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006726/0.39, allocations: 5.299 MB / 396.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004183/0.3942, allocations: 2.151 MB / 398.2 MB, free: 1.176 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003966/0.3982, allocations: 2.86 MB / 401.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001081/0.3993, allocations: 0.4954 MB / 401.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003084/0.4024, allocations: 1.615 MB / 403.2 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00261/0.405, allocations: 2.559 MB / 405.7 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003768/0.4088, allocations: 2.882 MB / 408.6 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.4197, allocations: 9.474 MB / 418.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.4198, allocations: 7.938 kB / 418.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4198, allocations: 0 / 418.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002848/0.4201, allocations: 0 / 418.1 MB, free: 14.87 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01229/0.4324, allocations: 6.009 MB / 424.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.4324, allocations: 8.031 kB / 424.1 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01001/0.4424, allocations: 2.54 MB / 426.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008469/0.4509, allocations: 3.755 MB / 430.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.4512, allocations: 313.5 kB / 430.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009731/0.4521, allocations: 439.5 kB / 431.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/0.4723, allocations: 12.41 MB / 443.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.4725, allocations: 59.42 kB / 443.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004453/0.4729, allocations: 190.4 kB / 443.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002875/0.4758, allocations: 2.029 MB / 445.8 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02073/0.4966, allocations: 10.57 MB / 456.4 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05874/0.5553, allocations: 44.13 MB / 0.4888 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.5673, allocations: 4.846 MB / 0.4935 GB, free: 5.863 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002626/0.57, allocations: 2.004 MB / 0.4955 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/0.5812, allocations: 7.198 MB / 0.5025 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/0.5813, allocations: 55.55 kB / 0.5026 GB, free: 12.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.129e-06/0.5813, allocations: 4 kB / 0.5026 GB, free: 12.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=223): time 0.06203/0.6433, allocations: 19.5 MB / 0.5216 GB, free: 8.793 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.6435, allocations: 205.9 kB / 0.5218 GB, free: 8.547 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006225/0.6497, allocations: 4.456 MB / 0.5262 GB, free: 4.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004849/0.6502, allocations: 57.7 kB / 0.5262 GB, free: 4.008 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002624/0.6529, allocations: 3.51 MB / 0.5296 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2268/0.8797, allocations: 0.8306 MB / 0.5305 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002576/0.8823, allocations: 1.343 MB / 0.5318 GB, free: 140.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.064e-05/0.8824, allocations: 304.2 kB / 0.5321 GB, free: 140.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004202/0.8866, allocations: 2.368 MB / 0.5344 GB, free: 140.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006178/0.8928, allocations: 6.175 MB / 0.5404 GB, free: 134.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01161/0.9044, allocations: 9.174 MB / 0.5494 GB, free: 126.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000219/0.9047, allocations: 42 kB / 0.5494 GB, free: 126.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01879/0.9235, allocations: 9.55 MB / 0.5587 GB, free: 123.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.9236, allocations: 66.97 kB / 0.5588 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001582/0.9238, allocations: 138.4 kB / 0.5589 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003673/0.9275, allocations: 1.365 MB / 0.5603 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/0.9318, allocations: 1.473 MB / 0.5617 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009884/0.9417, allocations: 8.495 MB / 0.57 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005545/0.9473, allocations: 358.9 kB / 0.5703 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/0.9484, allocations: 391.7 kB / 0.5707 GB, free: 118.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005158/0.9536, allocations: 2.499 MB / 0.5731 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001003/0.9546, allocations: 398.8 kB / 0.5735 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007268/0.9618, allocations: 4.122 MB / 0.5776 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.086e-05/0.9619, allocations: 20 kB / 0.5776 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/0.9619, allocations: 8 kB / 0.5776 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.843e-05/0.962, allocations: 16.8 kB / 0.5776 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/0.9786, allocations: 10.3 MB / 0.5877 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.829e-05/0.9787, allocations: 8.062 kB / 0.5877 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.9801, allocations: 351.4 kB / 0.588 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003283/0.9834, allocations: 1.151 MB / 0.5891 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.9837, allocations: 44 kB / 0.5892 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008022/0.9917, allocations: 7.12 MB / 0.5961 GB, free: 93.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.9918, allocations: 19.38 kB / 0.5961 GB, free: 93.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009427/1.001, allocations: 6.907 MB / 0.6029 GB, free: 86.74 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/1.003, allocations: 455.7 kB / 0.6033 GB, free: 86.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004756/1.003, allocations: 43.92 kB / 0.6034 GB, free: 86.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/1.005, allocations: 115.9 kB / 0.6035 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003476/1.005, allocations: 141.1 kB / 0.6036 GB, free: 85.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/1.005, allocations: 60 kB / 0.6037 GB, free: 85.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00348/1.009, allocations: 2.802 MB / 0.6064 GB, free: 83.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.009, allocations: 0 / 0.6064 GB, free: 83.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005517/1.014, allocations: 1.191 MB / 0.6076 GB, free: 81.92 MB / 446.1 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005445/1.015, allocations: 232.6 kB / 0.6078 GB, free: 81.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007625/1.022, allocations: 5.778 MB / 0.6134 GB, free: 75.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.022, allocations: 0 / 0.6134 GB, free: 75.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/1.025, allocations: 1.878 MB / 0.6153 GB, free: 74.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/1.027, allocations: 0.5362 MB / 0.6158 GB, free: 73.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01547/1.043, allocations: 11.03 MB / 0.6266 GB, free: 62.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00363/1.047, allocations: 3.863 MB / 0.6303 GB, free: 58.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004114/1.051, allocations: 1.925 MB / 0.6322 GB, free: 56.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007396/1.051, allocations: 271.4 kB / 0.6325 GB, free: 56.32 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/1.051, allocations: 0 / 0.6325 GB, free: 56.32 MB / 446.1 MB Notification: Performance of Templates: time 0.06594/1.117, allocations: 40.02 MB / 0.6716 GB, free: 16.62 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches