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.001178/0.001178, allocations: 103.5 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 191.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002192/0.0002193, allocations: 8 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/0.09395, allocations: 51.53 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2305/0.3245, allocations: 49.89 MB / 408.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02753/0.3521, allocations: 11.16 MB / 419.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01005/0.3621, allocations: 243.4 kB / 419.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007516/0.3697, allocations: 2.566 MB / 422.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02286/0.3926, allocations: 7.581 MB / 430.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005363/0.398, allocations: 0.9154 MB / 431 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07889/0.4769, allocations: 62.02 MB / 493 MB, free: 4.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01048/0.4874, allocations: 6.563 MB / 499.6 MB, free: 14.14 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003272/0.4907, allocations: 1.635 MB / 0.4895 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003861/0.4946, allocations: 2.535 MB / 0.4919 GB, free: 9.961 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009998/0.4956, allocations: 184 kB / 0.4921 GB, free: 9.781 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002826/0.4984, allocations: 1.178 MB / 0.4933 GB, free: 8.602 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002695/0.5012, allocations: 2.166 MB / 0.4954 GB, free: 6.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001597/0.5028, allocations: 1.03 MB / 0.4964 GB, free: 5.391 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006848/0.5096, allocations: 7.388 MB / 0.5036 GB, free: 13.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.5097, allocations: 3.938 kB / 0.5036 GB, free: 13.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.5097, allocations: 0 / 0.5036 GB, free: 13.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001582/0.5098, allocations: 0 / 0.5036 GB, free: 13.98 MB / 430.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.008793/0.5186, allocations: 4.968 MB / 0.5084 GB, free: 8.938 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.5187, allocations: 12.03 kB / 0.5085 GB, free: 8.926 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009846/0.5285, allocations: 2.594 MB / 0.511 GB, free: 6.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007125/0.5357, allocations: 3.62 MB / 0.5145 GB, free: 2.641 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002579/0.536, allocations: 307.9 kB / 0.5148 GB, free: 2.336 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.5371, allocations: 439.6 kB / 0.5152 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02284/0.5599, allocations: 12.41 MB / 0.5274 GB, free: 4.758 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000135/0.5601, allocations: 51.5 kB / 0.5274 GB, free: 4.707 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004699/0.5606, allocations: 195.8 kB / 0.5276 GB, free: 4.516 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002811/0.5634, allocations: 2.039 MB / 0.5296 GB, free: 2.473 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1969/0.7603, allocations: 10.54 MB / 0.5399 GB, free: 145.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04423/0.8046, allocations: 44.34 MB / 0.5832 GB, free: 111.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0107/0.8153, allocations: 4.891 MB / 0.5879 GB, free: 106.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002103/0.8175, allocations: 2 MB / 0.5899 GB, free: 104.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008157/0.8256, allocations: 7.198 MB / 0.5969 GB, free: 97.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.8257, allocations: 51.56 kB / 0.597 GB, free: 97.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 3.977e-06/0.8257, allocations: 0 / 0.597 GB, free: 97.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05462/0.8803, allocations: 19.57 MB / 0.6161 GB, free: 77.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.8804, allocations: 201.9 kB / 0.6163 GB, free: 77.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004859/0.8853, allocations: 4.429 MB / 0.6206 GB, free: 72.81 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003032/0.8856, allocations: 62.64 kB / 0.6207 GB, free: 72.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001547/0.8872, allocations: 3.511 MB / 0.6241 GB, free: 69.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005993/0.8878, allocations: 0.8457 MB / 0.6249 GB, free: 68.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/0.888, allocations: 128.7 kB / 0.625 GB, free: 68.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002339/0.8883, allocations: 0.587 MB / 0.6256 GB, free: 67.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002826/0.8911, allocations: 2.34 MB / 0.6279 GB, free: 65.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004556/0.8957, allocations: 6.144 MB / 0.6339 GB, free: 57.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004023/0.8997, allocations: 3.709 MB / 0.6375 GB, free: 53.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.283e-05/0.8998, allocations: 40 kB / 0.6376 GB, free: 53.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01326/0.913, allocations: 9.494 MB / 0.6468 GB, free: 44.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.751e-05/0.9131, allocations: 60 kB / 0.6469 GB, free: 44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/0.9132, allocations: 140 kB / 0.647 GB, free: 43.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003407/0.9166, allocations: 1.386 MB / 0.6484 GB, free: 42.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004123/0.9208, allocations: 1.478 MB / 0.6498 GB, free: 40.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009553/0.9303, allocations: 7.968 MB / 0.6576 GB, free: 32.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004564/0.9349, allocations: 355.5 kB / 0.6579 GB, free: 32.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000695/0.9357, allocations: 385.2 kB / 0.6583 GB, free: 32.17 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003379/0.939, allocations: 2.495 MB / 0.6607 GB, free: 29.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006014/0.9396, allocations: 402.8 kB / 0.6611 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007039/0.9467, allocations: 4.118 MB / 0.6652 GB, free: 25.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.639e-05/0.9467, allocations: 24 kB / 0.6652 GB, free: 25.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/0.9468, allocations: 4 kB / 0.6652 GB, free: 25.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.717e-05/0.9468, allocations: 16.38 kB / 0.6652 GB, free: 25.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01679/0.9636, allocations: 10.34 MB / 0.6753 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/0.9636, allocations: 8 kB / 0.6753 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/0.9651, allocations: 343.5 kB / 0.6756 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003195/0.9683, allocations: 1.156 MB / 0.6768 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002065/0.9685, allocations: 48.62 kB / 0.6768 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008124/0.9766, allocations: 6.669 MB / 0.6833 GB, free: 6.277 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.9767, allocations: 11.94 kB / 0.6833 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01056/0.9873, allocations: 6.893 MB / 0.6901 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/0.9886, allocations: 459.8 kB / 0.6905 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009832/0.9896, allocations: 40.94 kB / 0.6905 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/0.9917, allocations: 111.9 kB / 0.6906 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/0.9921, allocations: 149 kB / 0.6908 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/0.9923, allocations: 60.86 kB / 0.6908 GB, free: 14.46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005119/0.9974, allocations: 2.771 MB / 0.6936 GB, free: 11.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9974, allocations: 0 / 0.6936 GB, free: 11.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00613/1.004, allocations: 1.204 MB / 0.6947 GB, free: 10.49 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007357/1.004, allocations: 208.5 kB / 0.6949 GB, free: 10.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00977/1.014, allocations: 5.725 MB / 0.7005 GB, free: 4.578 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/1.014, allocations: 4 kB / 0.7005 GB, free: 4.574 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003069/1.017, allocations: 1.876 MB / 0.7024 GB, free: 2.684 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004143/1.021, allocations: 0.5023 MB / 0.7028 GB, free: 2.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2015/1.223, allocations: 13.08 MB / 0.7156 GB, free: 148.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005184/1.228, allocations: 3.863 MB / 0.7194 GB, free: 147.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005429/1.234, allocations: 1.923 MB / 0.7213 GB, free: 147.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000862/1.234, allocations: 268.2 kB / 0.7215 GB, free: 147.6 MB / 462.1 MB Notification: Performance of SimCode: time 2.174e-06/1.235, allocations: 0 / 0.7215 GB, free: 147.6 MB / 462.1 MB Notification: Performance of Templates: time 0.07188/1.306, allocations: 42.39 MB / 0.7629 GB, free: 115.9 MB / 462.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/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