Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 180.3 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.4 MB / 222.5 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008122/0.0008122, allocations: 82.36 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003126, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2513, allocations: 47.58 MB / 374.6 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03298/0.2844, allocations: 48.43 MB / 423 MB, free: 308 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02647/0.3109, allocations: 10.64 MB / 433.6 MB, free: 5.633 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008325/0.3193, allocations: 239.4 kB / 433.9 MB, free: 5.398 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007389/0.3267, allocations: 2.512 MB / 436.4 MB, free: 2.875 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01923/0.346, allocations: 7.595 MB / 444 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003551/0.3495, allocations: 0.8581 MB / 444.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.04079/0.3903, allocations: 36.62 MB / 481.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00772/0.3981, allocations: 5.039 MB / 486.5 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003582/0.4017, allocations: 1.888 MB / 488.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004336/0.4061, allocations: 3.124 MB / 491.5 MB, free: 11.6 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001233/0.4074, allocations: 236 kB / 491.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002812/0.4102, allocations: 1.116 MB / 492.8 MB, free: 10.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003193/0.4134, allocations: 2.571 MB / 495.4 MB, free: 7.672 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002012/0.4154, allocations: 1.201 MB / 496.6 MB, free: 6.465 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2079/0.6233, allocations: 7.959 MB / 0.4927 GB, free: 42.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.6234, allocations: 0 / 0.4927 GB, free: 42.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6234, allocations: 0 / 0.4927 GB, free: 42.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003017/0.6237, allocations: 0 / 0.4927 GB, free: 42.36 MB / 378.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.01323/0.637, allocations: 6.142 MB / 0.4987 GB, free: 39.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.637, allocations: 10.78 kB / 0.4987 GB, free: 39.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01561/0.6526, allocations: 4.037 MB / 0.5027 GB, free: 39.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01065/0.6633, allocations: 4.135 MB / 0.5067 GB, free: 38.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003964/0.6638, allocations: 318.8 kB / 0.507 GB, free: 38.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001981/0.6658, allocations: 433.2 kB / 0.5074 GB, free: 38.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02597/0.6918, allocations: 15.71 MB / 0.5228 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002064/0.692, allocations: 62.12 kB / 0.5228 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001054/0.6931, allocations: 200.3 kB / 0.523 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004293/0.6974, allocations: 3.223 MB / 0.5262 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02534/0.7228, allocations: 14.08 MB / 0.5399 GB, free: 27.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06665/0.7895, allocations: 57.77 MB / 0.5964 GB, free: 8.172 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01314/0.8027, allocations: 6.551 MB / 0.6028 GB, free: 1.387 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005075/0.8078, allocations: 3.668 MB / 0.6063 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02327/0.8311, allocations: 14.65 MB / 0.6206 GB, free: 14.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.111e-05/0.8312, allocations: 73.09 kB / 0.6207 GB, free: 14.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 7.344e-06/0.8312, allocations: 0 / 0.6207 GB, free: 14.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.1425/0.9737, allocations: 42.63 MB / 0.6623 GB, free: 3.98 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.9739, allocations: 212.7 kB / 0.6625 GB, free: 3.73 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2053/1.179, allocations: 5.461 MB / 0.6679 GB, free: 189.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001022/1.18, allocations: 74.42 kB / 0.6679 GB, free: 189.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002603/1.183, allocations: 4.356 MB / 0.6722 GB, free: 187 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001399/1.184, allocations: 1.262 MB / 0.6734 GB, free: 186.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005945/1.185, allocations: 176.9 kB / 0.6736 GB, free: 185.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003682/1.185, allocations: 0.6914 MB / 0.6743 GB, free: 185.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006751/1.192, allocations: 4.772 MB / 0.6789 GB, free: 183.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009865/1.202, allocations: 9.774 MB / 0.6885 GB, free: 175.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009351/1.211, allocations: 6.669 MB / 0.695 GB, free: 172.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001425/1.211, allocations: 47.03 kB / 0.695 GB, free: 172.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03932/1.251, allocations: 19.5 MB / 0.7141 GB, free: 161.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.251, allocations: 83 kB / 0.7142 GB, free: 161.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001777/1.251, allocations: 176.8 kB / 0.7143 GB, free: 161 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01979/1.271, allocations: 5.991 MB / 0.7202 GB, free: 155 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007432/1.278, allocations: 2.109 MB / 0.7222 GB, free: 152.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02647/1.305, allocations: 24.77 MB / 0.7464 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00813/1.313, allocations: 0.5539 MB / 0.747 GB, free: 127.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001262/1.314, allocations: 0.5117 MB / 0.7475 GB, free: 126.8 MB / 474.7 MB 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 (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.005296/1.32, allocations: 3.108 MB / 0.7505 GB, free: 123.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/1.321, allocations: 0.4897 MB / 0.751 GB, free: 123.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02626/1.347, allocations: 12.94 MB / 0.7636 GB, free: 110.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.573e-05/1.347, allocations: 55.98 kB / 0.7637 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-05/1.347, allocations: 8 kB / 0.7637 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-05/1.347, allocations: 11.95 kB / 0.7637 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04809/1.395, allocations: 24.63 MB / 0.7877 GB, free: 85.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.776e-05/1.395, allocations: 8.062 kB / 0.7877 GB, free: 85.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002847/1.398, allocations: 0.5772 MB / 0.7883 GB, free: 84.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01725/1.416, allocations: 5.005 MB / 0.7932 GB, free: 79.43 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00071/1.416, allocations: 61.94 kB / 0.7933 GB, free: 79.37 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02161/1.438, allocations: 19.98 MB / 0.8128 GB, free: 59.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/1.438, allocations: 11.88 kB / 0.8128 GB, free: 59.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03167/1.47, allocations: 17.44 MB / 0.8298 GB, free: 41.51 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003407/1.473, allocations: 1.256 MB / 0.831 GB, free: 40.23 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001414/1.475, allocations: 56.89 kB / 0.8311 GB, free: 40.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003588/1.478, allocations: 264.3 kB / 0.8313 GB, free: 39.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005726/1.479, allocations: 202.7 kB / 0.8315 GB, free: 39.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002713/1.479, allocations: 88.69 kB / 0.8316 GB, free: 39.63 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004556/1.484, allocations: 3.387 MB / 0.8349 GB, free: 36.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.484, allocations: 0 / 0.8349 GB, free: 36.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008245/1.492, allocations: 1.759 MB / 0.8366 GB, free: 34.51 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 (254): * Single equations (assignments): 246 * 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.0007671/1.493, allocations: 210.4 kB / 0.8369 GB, free: 34.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01506/1.508, allocations: 10.88 MB / 0.8475 GB, free: 23.42 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.508, allocations: 0 / 0.8475 GB, free: 23.42 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1751/1.683, allocations: 4.086 MB / 0.8515 GB, free: 180.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/1.687, allocations: 0.6009 MB / 0.8521 GB, free: 180 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02698/1.714, allocations: 19.2 MB / 0.8708 GB, free: 172.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004259/1.718, allocations: 4.598 MB / 0.8753 GB, free: 171 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001979/1.72, allocations: 418.4 kB / 0.8757 GB, free: 171 MB / 474.7 MB Notification: Performance of SimCode: time 7.21e-07/1.72, allocations: 0 / 0.8757 GB, free: 171 MB / 474.7 MB Notification: Performance of Templates: time 0.1641/1.884, allocations: 148.9 MB / 1.021 GB, free: 28.37 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches