Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointSSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001461, allocations: 194.5 kB / 16.78 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 226.5 MB / 244.1 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007888/0.0007887, allocations: 101.5 kB / 296.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3458/0.3458, allocations: 44.82 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002984, allocations: 11.98 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3479, allocations: 62.95 MB / 0.5165 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.4972, allocations: 119.2 MB / 0.6328 GB, free: 2.18 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.4974, allocations: 83.97 kB / 0.6329 GB, free: 2.098 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5987/1.096, allocations: 156.1 MB / 0.7854 GB, free: 57.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.096, allocations: 0 / 0.7854 GB, free: 57.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002261/1.096, allocations: 143.9 kB / 0.7856 GB, free: 57.6 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.01974/1.116, allocations: 6.813 MB / 0.7922 GB, free: 50.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/1.116, allocations: 11.97 kB / 0.7922 GB, free: 50.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02368/1.14, allocations: 5.786 MB / 0.7979 GB, free: 44.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01506/1.155, allocations: 6.431 MB / 0.8041 GB, free: 38.39 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005363/1.156, allocations: 0.5259 MB / 0.8047 GB, free: 37.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004089/1.16, allocations: 0.707 MB / 0.8053 GB, free: 37.16 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04159/1.201, allocations: 18.69 MB / 0.8236 GB, free: 17.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003689/1.202, allocations: 87.11 kB / 0.8237 GB, free: 17.04 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00294/1.205, allocations: 343.8 kB / 0.824 GB, free: 16.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002175/1.207, allocations: 1.719 MB / 0.8257 GB, free: 14.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0317/1.239, allocations: 16.3 MB / 0.8416 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3787/1.617, allocations: 74.03 MB / 0.9139 GB, free: 65.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01377/1.631, allocations: 6.145 MB / 0.9199 GB, free: 63.97 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003497/1.635, allocations: 2.746 MB / 0.9226 GB, free: 63.94 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02079/1.656, allocations: 13.75 MB / 0.936 GB, free: 59.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/1.656, allocations: 61.53 kB / 0.9361 GB, free: 59.62 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=284): time 5.44e-06/1.656, allocations: 0 / 0.9361 GB, free: 59.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=344): time 0.07906/1.735, allocations: 24.07 MB / 0.9596 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/1.735, allocations: 185.7 kB / 0.9598 GB, free: 55.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008098/1.743, allocations: 5.872 MB / 0.9655 GB, free: 54.82 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006463/1.744, allocations: 75.27 kB / 0.9656 GB, free: 54.79 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002578/1.746, allocations: 5.005 MB / 0.9705 GB, free: 51.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001335/1.748, allocations: 1.281 MB / 0.9717 GB, free: 50.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004825/1.748, allocations: 185.9 kB / 0.9719 GB, free: 50.83 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004068/1.748, allocations: 0.7087 MB / 0.9726 GB, free: 50.35 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004631/1.753, allocations: 3.259 MB / 0.9758 GB, free: 49.27 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007018/1.76, allocations: 8.763 MB / 0.9843 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/1.773, allocations: 13.03 MB / 0.997 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002215/1.773, allocations: 54.59 kB / 0.9971 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02462/1.798, allocations: 12.77 MB / 1.01 GB, free: 26.19 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/1.798, allocations: 87.88 kB / 1.01 GB, free: 26.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00023/1.798, allocations: 194.8 kB / 1.01 GB, free: 26.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003838/1.802, allocations: 1.312 MB / 1.011 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007047/1.809, allocations: 2.18 MB / 1.013 GB, free: 25.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/1.82, allocations: 7.17 MB / 1.02 GB, free: 19.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007508/1.827, allocations: 0.5551 MB / 1.021 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001951/1.829, allocations: 0.5573 MB / 1.021 GB, free: 18.79 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1155): * Single equations (assignments): 1148 * Array equations: 6 * 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 {(2,100.0%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008476/1.838, allocations: 3.443 MB / 1.025 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/1.839, allocations: 0.5244 MB / 1.025 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/1.852, allocations: 5.325 MB / 1.03 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.788e-05/1.852, allocations: 43.88 kB / 1.03 GB, free: 10.76 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-05/1.852, allocations: 11.14 kB / 1.03 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.661e-05/1.852, allocations: 12.14 kB / 1.03 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03267/1.885, allocations: 14.21 MB / 1.044 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-05/1.885, allocations: 12.88 kB / 1.044 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002502/1.888, allocations: 0.5351 MB / 1.045 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003521/1.891, allocations: 0.9219 MB / 1.046 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006158/1.892, allocations: 67.42 kB / 1.046 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009622/1.902, allocations: 5.468 MB / 1.051 GB, free: 9.164 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.736e-05/1.902, allocations: 15.94 kB / 1.051 GB, free: 9.148 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01742/1.919, allocations: 8.497 MB / 1.059 GB, free: 1.418 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001968/1.921, allocations: 0.5661 MB / 1.06 GB, free: 0.8477 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001691/1.923, allocations: 71.56 kB / 1.06 GB, free: 0.7812 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003423/1.926, allocations: 192.8 kB / 1.06 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008593/1.927, allocations: 213 kB / 1.061 GB, free: 0.5078 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005251/1.928, allocations: 99 kB / 1.061 GB, free: 424 kB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01764/1.945, allocations: 4.4 MB / 1.065 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.62e-07/1.945, allocations: 4 kB / 1.065 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01053/1.956, allocations: 1.665 MB / 1.067 GB, free: 13.64 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.v) * 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 (267): * Single equations (assignments): 260 * Array equations: 6 * 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 {(2,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00129/1.957, allocations: 272.6 kB / 1.067 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01546/1.973, allocations: 7.784 MB / 1.074 GB, free: 6.492 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/1.973, allocations: 3.094 kB / 1.074 GB, free: 6.492 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004633/1.977, allocations: 2.404 MB / 1.077 GB, free: 4.324 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01369/1.991, allocations: 0.6873 MB / 1.077 GB, free: 3.738 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03729/2.028, allocations: 19.01 MB / 1.096 GB, free: 0.6211 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009413/2.038, allocations: 5.174 MB / 1.101 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001729/2.04, allocations: 455.4 kB / 1.101 GB, free: 11 MB / 0.5886 GB Notification: Performance of SimCode: time 2.595e-06/2.04, allocations: 0 / 1.101 GB, free: 11 MB / 0.5886 GB Notification: Performance of Templates: time 0.4825/2.522, allocations: 125.1 MB / 1.224 GB, free: 114.4 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointSSR/JointSSR.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches