Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 191.8 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008164/0.0008165, allocations: 98.28 kB / 296.8 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002307/0.0002308, allocations: 8 kB / 356.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2129, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.05848/0.2715, allocations: 73.56 MB / 481.6 MB, free: 1.926 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0363/0.3078, allocations: 15.77 MB / 497.4 MB, free: 2.109 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01522/0.3231, allocations: 371.1 kB / 497.7 MB, free: 1.746 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01094/0.334, allocations: 3.623 MB / 0.4896 GB, free: 14.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0282/0.3623, allocations: 10.77 MB / 0.5001 GB, free: 3.293 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006061/0.3684, allocations: 1.309 MB / 0.5014 GB, free: 1.984 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.3461/0.7145, allocations: 121.1 MB / 0.6197 GB, free: 200 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01642/0.731, allocations: 11.4 MB / 0.6308 GB, free: 8.027 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005782/0.7368, allocations: 2.398 MB / 0.6332 GB, free: 6.395 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005746/0.7426, allocations: 3.64 MB / 0.6367 GB, free: 3.781 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001729/0.7444, allocations: 248 kB / 0.637 GB, free: 3.539 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004342/0.7487, allocations: 1.5 MB / 0.6384 GB, free: 2.359 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004611/0.7534, allocations: 3.218 MB / 0.6416 GB, free: 15.98 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005407/0.7588, allocations: 3.283 MB / 0.6448 GB, free: 14.82 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01248/0.7713, allocations: 10.35 MB / 0.6549 GB, free: 5.832 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.7714, allocations: 0 / 0.6549 GB, free: 5.832 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.456e-06/0.7714, allocations: 4 kB / 0.6549 GB, free: 5.828 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004114/0.7718, allocations: 1.75 kB / 0.6549 GB, free: 5.828 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.01706/0.7889, allocations: 7.335 MB / 0.662 GB, free: 15.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.7889, allocations: 12.03 kB / 0.6621 GB, free: 15.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04073/0.8297, allocations: 4.964 MB / 0.6669 GB, free: 10.25 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01396/0.8437, allocations: 6.26 MB / 0.673 GB, free: 5.781 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002941/0.844, allocations: 433.5 kB / 0.6734 GB, free: 5.547 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001868/0.8459, allocations: 0.5912 MB / 0.674 GB, free: 5.156 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3821/1.228, allocations: 17.06 MB / 0.6907 GB, free: 190.7 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000411/1.228, allocations: 81.55 kB / 0.6907 GB, free: 190.7 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001971/1.23, allocations: 273.6 kB / 0.691 GB, free: 190.5 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005318/1.236, allocations: 2.65 MB / 0.6936 GB, free: 190 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02694/1.263, allocations: 14.78 MB / 0.708 GB, free: 179.6 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06243/1.325, allocations: 64.51 MB / 0.771 GB, free: 114.4 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01944/1.345, allocations: 8.822 MB / 0.7796 GB, free: 105.4 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005129/1.35, allocations: 5.058 MB / 0.7846 GB, free: 100.3 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02486/1.375, allocations: 18.62 MB / 0.8028 GB, free: 81.64 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.729e-05/1.375, allocations: 64.56 kB / 0.8028 GB, free: 81.57 MB / 490.8 MB Notification: Performance of pre-optimization done (n=281): time 8.146e-06/1.375, allocations: 0 / 0.8028 GB, free: 81.57 MB / 490.8 MB Notification: Performance of matching and sorting (n=374): time 0.223/1.598, allocations: 75.03 MB / 0.8761 GB, free: 6.52 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/1.598, allocations: 372.6 kB / 0.8765 GB, free: 6.074 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2207/1.819, allocations: 6.324 MB / 0.8826 GB, free: 179 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00118/1.82, allocations: 84.94 kB / 0.8827 GB, free: 179 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004203/1.824, allocations: 4.751 MB / 0.8874 GB, free: 177.4 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001894/1.826, allocations: 1.38 MB / 0.8887 GB, free: 176.4 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008486/1.827, allocations: 191.5 kB / 0.8889 GB, free: 176.2 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004445/1.827, allocations: 0.7053 MB / 0.8896 GB, free: 175.8 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00819/1.836, allocations: 5.955 MB / 0.8954 GB, free: 173.5 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/1.846, allocations: 10.99 MB / 0.9061 GB, free: 164.6 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01854/1.864, allocations: 17.9 MB / 0.9236 GB, free: 152.3 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002022/1.865, allocations: 48.31 kB / 0.9237 GB, free: 152.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04383/1.909, allocations: 23.28 MB / 0.9464 GB, free: 134.4 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001816/1.909, allocations: 80 kB / 0.9465 GB, free: 134.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/1.909, allocations: 172 kB / 0.9466 GB, free: 134.2 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01974/1.929, allocations: 7.505 MB / 0.954 GB, free: 126.7 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007481/1.936, allocations: 2.189 MB / 0.9561 GB, free: 124.5 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04281/1.979, allocations: 35.56 MB / 0.9908 GB, free: 88.55 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007988/1.987, allocations: 0.7505 MB / 0.9916 GB, free: 87.8 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001587/1.989, allocations: 0.5273 MB / 0.9921 GB, free: 87.28 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.006459/1.995, allocations: 3.428 MB / 0.9954 GB, free: 83.84 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.997, allocations: 0.5785 MB / 0.996 GB, free: 83.25 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03021/2.027, allocations: 16.95 MB / 1.013 GB, free: 66.23 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.251e-05/2.027, allocations: 45.56 kB / 1.013 GB, free: 66.19 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.963e-05/2.027, allocations: 16 kB / 1.013 GB, free: 66.17 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.871e-05/2.027, allocations: 23.92 kB / 1.013 GB, free: 66.15 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05677/2.084, allocations: 32.15 MB / 1.044 GB, free: 33.58 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.505e-05/2.084, allocations: 8.234 kB / 1.044 GB, free: 33.57 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003142/2.087, allocations: 0.6045 MB / 1.045 GB, free: 32.97 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01891/2.106, allocations: 7.146 MB / 1.052 GB, free: 25.8 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009533/2.107, allocations: 64 kB / 1.052 GB, free: 25.74 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2567/2.364, allocations: 33.87 MB / 1.085 GB, free: 154.8 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/2.364, allocations: 3.844 kB / 1.085 GB, free: 154.8 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03992/2.404, allocations: 24.58 MB / 1.109 GB, free: 140.5 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/2.406, allocations: 0.6443 MB / 1.109 GB, free: 140.1 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002243/2.408, allocations: 62.08 kB / 1.109 GB, free: 140.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005055/2.413, allocations: 448 kB / 1.11 GB, free: 139.6 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001528/2.415, allocations: 254 kB / 1.11 GB, free: 139.4 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006055/2.416, allocations: 96.19 kB / 1.11 GB, free: 139.3 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007807/2.423, allocations: 4.009 MB / 1.114 GB, free: 135.3 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.81e-07/2.423, allocations: 0 / 1.114 GB, free: 135.3 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01117/2.435, allocations: 2.294 MB / 1.116 GB, free: 133 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001587/2.436, allocations: 291.8 kB / 1.117 GB, free: 132.7 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02277/2.459, allocations: 14.81 MB / 1.131 GB, free: 118 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/2.459, allocations: 0 / 1.131 GB, free: 118 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009895/2.469, allocations: 6.692 MB / 1.138 GB, free: 111.3 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01036/2.479, allocations: 0.8339 MB / 1.138 GB, free: 110.5 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03859/2.518, allocations: 23.39 MB / 1.161 GB, free: 87.28 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007163/2.525, allocations: 5.216 MB / 1.166 GB, free: 82.02 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/2.528, allocations: 448.8 kB / 1.167 GB, free: 81.59 MB / 490.8 MB Notification: Performance of SimCode: time 9.12e-07/2.528, allocations: 0 / 1.167 GB, free: 81.59 MB / 490.8 MB Notification: Performance of Templates: time 0.4205/2.948, allocations: 207.7 MB / 1.37 GB, free: 27.8 MB / 490.8 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches