Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 117.7 kB / 17.7 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 191 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000999/0.0009991, allocations: 51.48 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1049, allocations: 49.44 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01393/0.1189, allocations: 13.48 MB / 365 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.1291, allocations: 4.857 MB / 369.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002483/0.1317, allocations: 91.69 kB / 369.9 MB, free: 1.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1748/0.3065, allocations: 4.177 MB / 374.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005469/0.3121, allocations: 2.152 MB / 376.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002796/0.3149, allocations: 1.104 MB / 377.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0119/0.3268, allocations: 5.963 MB / 383.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007518/0.3344, allocations: 5.319 MB / 388.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003734/0.3381, allocations: 2.152 MB / 390.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003871/0.342, allocations: 2.867 MB / 393.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000895/0.3429, allocations: 0.4916 MB / 394.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002432/0.3454, allocations: 1.631 MB / 395.8 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001815/0.3472, allocations: 2.58 MB / 398.4 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002343/0.3496, allocations: 2.901 MB / 401.3 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009937/0.3595, allocations: 9.528 MB / 410.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.3596, allocations: 0 / 410.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.641e-06/0.3596, allocations: 0 / 410.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003898/0.36, allocations: 3.938 kB / 410.8 MB, free: 5.82 MB / 318.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.01274/0.3727, allocations: 6.021 MB / 416.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3728, allocations: 8.031 kB / 416.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.3829, allocations: 2.537 MB / 419.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009801/0.3927, allocations: 3.822 MB / 423.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002597/0.393, allocations: 303.9 kB / 423.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001432/0.3944, allocations: 441.8 kB / 423.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02251/0.417, allocations: 12.4 MB / 436.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001419/0.4171, allocations: 59.52 kB / 436.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000472/0.4176, allocations: 189.3 kB / 436.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002845/0.4205, allocations: 2.028 MB / 438.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02031/0.4408, allocations: 10.56 MB / 449.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05801/0.4989, allocations: 44.13 MB / 493.3 MB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01228/0.5112, allocations: 4.848 MB / 498.1 MB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002671/0.5139, allocations: 2.002 MB / 0.4884 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01233/0.5262, allocations: 7.111 MB / 0.4954 GB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.5263, allocations: 51.56 kB / 0.4954 GB, free: 3.371 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 5.44e-06/0.5263, allocations: 0 / 0.4954 GB, free: 3.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=223): time 0.06341/0.5898, allocations: 19.61 MB / 0.5146 GB, free: 15.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.5899, allocations: 205.9 kB / 0.5148 GB, free: 15.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006057/0.596, allocations: 4.465 MB / 0.5191 GB, free: 10.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003635/0.5964, allocations: 57.7 kB / 0.5192 GB, free: 10.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002395/0.5988, allocations: 3.518 MB / 0.5226 GB, free: 7.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008954/0.5997, allocations: 0.8388 MB / 0.5234 GB, free: 6.578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001639/0.6013, allocations: 1.34 MB / 0.5247 GB, free: 5.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.6014, allocations: 305.1 kB / 0.525 GB, free: 4.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003384/0.6048, allocations: 2.359 MB / 0.5273 GB, free: 2.566 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2087/0.8135, allocations: 6.168 MB / 0.5334 GB, free: 139.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0109/0.8245, allocations: 9.164 MB / 0.5423 GB, free: 133.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003388/0.8249, allocations: 38.03 kB / 0.5423 GB, free: 133.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.02281/0.8477, allocations: 9.553 MB / 0.5517 GB, free: 129.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.8479, allocations: 63.81 kB / 0.5517 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002842/0.8482, allocations: 133.6 kB / 0.5519 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00436/0.8526, allocations: 1.371 MB / 0.5532 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004694/0.8573, allocations: 1.468 MB / 0.5546 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.8678, allocations: 8.504 MB / 0.5629 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005383/0.8732, allocations: 349.8 kB / 0.5633 GB, free: 125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007151/0.8739, allocations: 389.2 kB / 0.5636 GB, free: 124.9 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.003629/0.8776, allocations: 2.503 MB / 0.5661 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006394/0.8782, allocations: 395.8 kB / 0.5665 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007006/0.8852, allocations: 4.121 MB / 0.5705 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.86e-05/0.8853, allocations: 30.09 kB / 0.5705 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.8853, allocations: 7.438 kB / 0.5705 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.8853, allocations: 11.42 kB / 0.5705 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01698/0.9023, allocations: 10.29 MB / 0.5806 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/0.9024, allocations: 8.594 kB / 0.5806 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00146/0.9038, allocations: 351.4 kB / 0.5809 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003529/0.9074, allocations: 1.148 MB / 0.5821 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001875/0.9076, allocations: 47.94 kB / 0.5821 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008053/0.9157, allocations: 7.117 MB / 0.5891 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.9157, allocations: 11.94 kB / 0.5891 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009501/0.9252, allocations: 6.903 MB / 0.5958 GB, free: 98.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/0.9264, allocations: 455.8 kB / 0.5962 GB, free: 97.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004477/0.9269, allocations: 39.98 kB / 0.5963 GB, free: 97.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.9284, allocations: 119.8 kB / 0.5964 GB, free: 97.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003222/0.9288, allocations: 144.7 kB / 0.5965 GB, free: 97.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.9289, allocations: 70.5 kB / 0.5966 GB, free: 97.49 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003193/0.9321, allocations: 2.803 MB / 0.5993 GB, free: 94.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9321, allocations: 0 / 0.5993 GB, free: 94.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005643/0.9378, allocations: 1.214 MB / 0.6005 GB, free: 93.48 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.0005148/0.9383, allocations: 230.5 kB / 0.6007 GB, free: 93.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007797/0.9461, allocations: 5.766 MB / 0.6064 GB, free: 87.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.9462, allocations: 0 / 0.6064 GB, free: 87.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002438/0.9486, allocations: 1.87 MB / 0.6082 GB, free: 85.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.9523, allocations: 0.5395 MB / 0.6087 GB, free: 85.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/0.9677, allocations: 11.03 MB / 0.6195 GB, free: 74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003221/0.971, allocations: 3.863 MB / 0.6233 GB, free: 70.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003775/0.9748, allocations: 1.926 MB / 0.6251 GB, free: 68.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007101/0.9755, allocations: 267.4 kB / 0.6254 GB, free: 67.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9755, allocations: 0 / 0.6254 GB, free: 67.9 MB / 446.1 MB Notification: Performance of Templates: time 0.06622/1.042, allocations: 40.26 MB / 0.6647 GB, free: 27.98 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches