Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001117/0.001117, allocations: 200.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.6 MB / 243.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007751/0.0007751, allocations: 94.23 kB / 295.5 MB, free: 6.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3056/0.3056, allocations: 44.83 MB / 392.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002884, allocations: 8 kB / 465.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3455, allocations: 62.96 MB / 0.5159 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.04894/0.3945, allocations: 62.09 MB / 0.5765 GB, free: 8.723 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03522/0.4297, allocations: 13.57 MB / 0.5898 GB, free: 13.38 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01628/0.4461, allocations: 307.1 kB / 0.5901 GB, free: 13.08 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01204/0.4582, allocations: 3.205 MB / 0.5932 GB, free: 10.15 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02981/0.488, allocations: 9.603 MB / 0.6026 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005999/0.4941, allocations: 1.225 MB / 0.6038 GB, free: 15.29 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.4221/0.9162, allocations: 92.04 MB / 0.6936 GB, free: 76.18 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01638/0.9326, allocations: 9.175 MB / 0.7026 GB, free: 75.05 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005035/0.9377, allocations: 2.149 MB / 0.7047 GB, free: 75.05 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006103/0.9439, allocations: 3.361 MB / 0.708 GB, free: 75.04 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001899/0.9458, allocations: 238.8 kB / 0.7082 GB, free: 75.04 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004504/0.9504, allocations: 1.446 MB / 0.7096 GB, free: 75.04 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003878/0.9543, allocations: 2.846 MB / 0.7124 GB, free: 75.04 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00502/0.9593, allocations: 3.007 MB / 0.7153 GB, free: 74.8 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009542/0.9689, allocations: 9.348 MB / 0.7245 GB, free: 66.69 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.9689, allocations: 0 / 0.7245 GB, free: 66.69 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.969, allocations: 0 / 0.7245 GB, free: 66.69 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003621/0.9693, allocations: 0 / 0.7245 GB, free: 66.69 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.01303/0.9824, allocations: 6.527 MB / 0.7308 GB, free: 60.65 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.9824, allocations: 12.02 kB / 0.7309 GB, free: 60.64 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01309/0.9955, allocations: 3.112 MB / 0.7339 GB, free: 57.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009873/1.005, allocations: 4.935 MB / 0.7387 GB, free: 54.07 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000308/1.006, allocations: 384.3 kB / 0.7391 GB, free: 53.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001938/1.008, allocations: 0.5099 MB / 0.7396 GB, free: 53.53 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02634/1.034, allocations: 15.53 MB / 0.7547 GB, free: 41.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002146/1.034, allocations: 63.16 kB / 0.7548 GB, free: 41.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007431/1.035, allocations: 233.5 kB / 0.755 GB, free: 41.45 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003088/1.038, allocations: 2.549 MB / 0.7575 GB, free: 39.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02592/1.064, allocations: 13.08 MB / 0.7703 GB, free: 30.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06739/1.132, allocations: 57.56 MB / 0.8265 GB, free: 9.637 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01671/1.148, allocations: 6.404 MB / 0.8327 GB, free: 3.086 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004733/1.153, allocations: 3.437 MB / 0.8361 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01879/1.172, allocations: 11.59 MB / 0.8474 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/1.172, allocations: 60.56 kB / 0.8475 GB, free: 3.656 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=248): time 5.77e-06/1.172, allocations: 0 / 0.8475 GB, free: 3.656 MB / 0.5261 GB Notification: Performance of matching and sorting (n=343): time 0.1305/1.303, allocations: 39.56 MB / 0.8861 GB, free: 12.14 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/1.303, allocations: 239.9 kB / 0.8863 GB, free: 11.85 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009352/1.312, allocations: 5.681 MB / 0.8919 GB, free: 6.191 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009739/1.313, allocations: 78.55 kB / 0.892 GB, free: 6.109 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00385/1.317, allocations: 4.343 MB / 0.8962 GB, free: 1.793 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00218/1.319, allocations: 1.268 MB / 0.8974 GB, free: 0.5352 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006006/1.32, allocations: 179.2 kB / 0.8976 GB, free: 372 kB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.2731/1.593, allocations: 0.6597 MB / 0.8983 GB, free: 211.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007715/1.601, allocations: 4.056 MB / 0.9022 GB, free: 211.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007977/1.609, allocations: 8.632 MB / 0.9106 GB, free: 203.5 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01471/1.623, allocations: 13.51 MB / 0.9238 GB, free: 193.4 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001965/1.624, allocations: 44.28 kB / 0.9239 GB, free: 193.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.0362/1.66, allocations: 16.31 MB / 0.9398 GB, free: 187.9 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/1.66, allocations: 76.77 kB / 0.9399 GB, free: 187.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002185/1.66, allocations: 157.2 kB / 0.94 GB, free: 187.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01299/1.673, allocations: 4.298 MB / 0.9442 GB, free: 187.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005971/1.679, allocations: 1.895 MB / 0.9461 GB, free: 186.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0254/1.705, allocations: 20.16 MB / 0.9658 GB, free: 174.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006609/1.711, allocations: 0.5052 MB / 0.9663 GB, free: 174.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001372/1.713, allocations: 477.3 kB / 0.9667 GB, free: 173.9 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 720 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (1031): * Single equations (assignments): 1027 * 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%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005304/1.718, allocations: 3.131 MB / 0.9698 GB, free: 171.3 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/1.719, allocations: 0.5148 MB / 0.9703 GB, free: 171 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01879/1.738, allocations: 10.09 MB / 0.9801 GB, free: 161.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.322e-05/1.738, allocations: 35.98 kB / 0.9802 GB, free: 161.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.96e-05/1.738, allocations: 18.62 kB / 0.9802 GB, free: 161.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.751e-05/1.738, allocations: 11.95 kB / 0.9802 GB, free: 161.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03701/1.775, allocations: 20.14 MB / 0.9999 GB, free: 141.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.133e-05/1.775, allocations: 8 kB / 0.9999 GB, free: 141.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002278/1.778, allocations: 0.4955 MB / 1 GB, free: 140.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01152/1.789, allocations: 3.845 MB / 1.004 GB, free: 136.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000636/1.79, allocations: 63.98 kB / 1.004 GB, free: 136.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02163/1.812, allocations: 17.8 MB / 1.022 GB, free: 118.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.812, allocations: 11.94 kB / 1.022 GB, free: 118.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02326/1.835, allocations: 14.87 MB / 1.036 GB, free: 103.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/1.836, allocations: 0.5724 MB / 1.037 GB, free: 103.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.838, allocations: 71.98 kB / 1.037 GB, free: 103.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00271/1.84, allocations: 231.6 kB / 1.037 GB, free: 103 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000714/1.841, allocations: 230.2 kB / 1.037 GB, free: 102.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002465/1.841, allocations: 94.06 kB / 1.037 GB, free: 102.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.004797/1.846, allocations: 3.569 MB / 1.041 GB, free: 99.13 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.01e-07/1.846, allocations: 0 / 1.041 GB, free: 99.13 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007458/1.854, allocations: 1.785 MB / 1.042 GB, free: 97.36 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.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 (261): * Single equations (assignments): 257 * 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%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007648/1.854, allocations: 258.9 kB / 1.043 GB, free: 97.11 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01286/1.867, allocations: 9.758 MB / 1.052 GB, free: 87.34 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/1.867, allocations: 4 kB / 1.052 GB, free: 87.34 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004643/1.872, allocations: 3.78 MB / 1.056 GB, free: 83.53 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009358/1.881, allocations: 0.6866 MB / 1.057 GB, free: 82.86 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02622/1.908, allocations: 19.09 MB / 1.075 GB, free: 63.63 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005071/1.913, allocations: 4.783 MB / 1.08 GB, free: 58.82 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00178/1.915, allocations: 411.4 kB / 1.08 GB, free: 58.41 MB / 0.573 GB Notification: Performance of SimCode: time 8.92e-07/1.915, allocations: 0 / 1.08 GB, free: 58.41 MB / 0.573 GB Notification: Performance of Templates: time 0.3925/2.307, allocations: 121.7 MB / 1.199 GB, free: 146 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches