Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009385/0.0009382, allocations: 197.5 kB / 16.78 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008698/0.0008698, allocations: 105 kB / 296.1 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3372/0.3372, allocations: 44.83 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002976/0.0002977, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3892, allocations: 62.95 MB / 0.5165 GB, free: 37.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1556/0.5448, allocations: 120.5 MB / 0.6342 GB, free: 0.8008 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5451, allocations: 83.95 kB / 0.6343 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6635/1.209, allocations: 174.3 MB / 0.8044 GB, free: 38.25 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.209, allocations: 0 / 0.8044 GB, free: 38.25 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004871/1.209, allocations: 159.9 kB / 0.8046 GB, free: 38.09 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02766/1.237, allocations: 7.94 MB / 0.8123 GB, free: 30.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/1.237, allocations: 8.031 kB / 0.8124 GB, free: 30.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02603/1.263, allocations: 6.031 MB / 0.8182 GB, free: 24 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01802/1.281, allocations: 7.543 MB / 0.8256 GB, free: 16.38 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006253/1.282, allocations: 0.5699 MB / 0.8262 GB, free: 15.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004617/1.286, allocations: 0.7655 MB / 0.8269 GB, free: 15.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05106/1.337, allocations: 20.54 MB / 0.847 GB, free: 9.059 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006836/1.338, allocations: 95.11 kB / 0.8471 GB, free: 8.965 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004421/1.343, allocations: 367.8 kB / 0.8474 GB, free: 8.605 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00367/1.346, allocations: 1.962 MB / 0.8493 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04263/1.389, allocations: 18.03 MB / 0.8669 GB, free: 4.594 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3862/1.775, allocations: 82.06 MB / 0.9471 GB, free: 45.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01753/1.793, allocations: 7.35 MB / 0.9543 GB, free: 44.51 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007803/1.801, allocations: 3.975 MB / 0.9581 GB, free: 44.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02988/1.831, allocations: 18.01 MB / 0.9757 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/1.831, allocations: 69.44 kB / 0.9758 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=332): time 6.813e-06/1.831, allocations: 0 / 0.9758 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of matching and sorting (n=413): time 0.1181/1.949, allocations: 35.5 MB / 1.01 GB, free: 30.14 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/1.949, allocations: 200.9 kB / 1.011 GB, free: 29.94 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01262/1.962, allocations: 6.48 MB / 1.017 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008666/1.963, allocations: 86.83 kB / 1.017 GB, free: 27.71 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00347/1.966, allocations: 5.43 MB / 1.022 GB, free: 23.61 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001806/1.968, allocations: 1.522 MB / 1.024 GB, free: 22.49 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008784/1.969, allocations: 205 kB / 1.024 GB, free: 22.33 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004896/1.969, allocations: 0.75 MB / 1.025 GB, free: 21.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006332/1.976, allocations: 4.19 MB / 1.029 GB, free: 20.44 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009331/1.985, allocations: 10.06 MB / 1.039 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0176/2.003, allocations: 15.34 MB / 1.054 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002454/2.003, allocations: 60 kB / 1.054 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.03756/2.04, allocations: 15.98 MB / 1.069 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003598/2.041, allocations: 97 kB / 1.069 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005056/2.041, allocations: 210.6 kB / 1.07 GB, free: 15.47 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008095/2.05, allocations: 2.324 MB / 1.072 GB, free: 13.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009137/2.059, allocations: 2.447 MB / 1.074 GB, free: 11.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02078/2.08, allocations: 11.61 MB / 1.086 GB, free: 1.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009715/2.089, allocations: 0.6836 MB / 1.086 GB, free: 1.102 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002568/2.092, allocations: 0.5967 MB / 1.087 GB, free: 0.5117 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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 (1272): * Single equations (assignments): 1265 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01859/2.111, allocations: 4.502 MB / 1.091 GB, free: 15.14 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001857/2.112, allocations: 0.5978 MB / 1.092 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02031/2.133, allocations: 8.165 MB / 1.1 GB, free: 7.918 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001057/2.133, allocations: 62.75 kB / 1.1 GB, free: 7.863 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.662e-05/2.133, allocations: 12 kB / 1.1 GB, free: 7.852 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.839e-05/2.133, allocations: 20.11 kB / 1.1 GB, free: 7.852 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3182/2.451, allocations: 18.81 MB / 1.118 GB, free: 135.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.906e-05/2.451, allocations: 12.56 kB / 1.118 GB, free: 135.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002847/2.454, allocations: 0.6403 MB / 1.119 GB, free: 135.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006046/2.46, allocations: 1.903 MB / 1.121 GB, free: 135.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006987/2.461, allocations: 77.78 kB / 1.121 GB, free: 135.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/2.475, allocations: 9.934 MB / 1.131 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/2.475, allocations: 19.56 kB / 1.131 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02062/2.496, allocations: 12.35 MB / 1.143 GB, free: 133.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001819/2.497, allocations: 0.6301 MB / 1.143 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001354/2.499, allocations: 81.38 kB / 1.143 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/2.502, allocations: 266 kB / 1.144 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007203/2.503, allocations: 258.8 kB / 1.144 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/2.503, allocations: 111.4 kB / 1.144 GB, free: 133.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.008218/2.511, allocations: 4.049 MB / 1.148 GB, free: 133.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.11e-07/2.511, allocations: 1.062 kB / 1.148 GB, free: 133.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01101/2.522, allocations: 1.939 MB / 1.15 GB, free: 133.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (324): * Single equations (assignments): 317 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001167/2.523, allocations: 294.2 kB / 1.15 GB, free: 133 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01545/2.539, allocations: 9.847 MB / 1.16 GB, free: 131.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.869e-05/2.539, allocations: 0 / 1.16 GB, free: 131.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005363/2.544, allocations: 3.33 MB / 1.163 GB, free: 130.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01747/2.562, allocations: 0.7752 MB / 1.164 GB, free: 129.8 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04021/2.602, allocations: 21.59 MB / 1.185 GB, free: 118.8 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0113/2.613, allocations: 5.587 MB / 1.19 GB, free: 117 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002501/2.616, allocations: 494.7 kB / 1.191 GB, free: 117 MB / 0.573 GB Notification: Performance of SimCode: time 1.112e-06/2.616, allocations: 0 / 1.191 GB, free: 117 MB / 0.573 GB Notification: Performance of Templates: time 0.4137/3.03, allocations: 139.8 MB / 1.327 GB, free: 125.4 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSR/JointUSR.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches