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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 196.8 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.323/1.323, allocations: 226.5 MB / 243.4 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007978/0.0007979, allocations: 103.5 kB / 295.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3538/0.3538, allocations: 44.83 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002936, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3294, allocations: 62.96 MB / 0.516 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.04595/0.3754, allocations: 62.09 MB / 0.5766 GB, free: 8.949 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03217/0.4076, allocations: 13.59 MB / 0.5899 GB, free: 13.38 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01422/0.4219, allocations: 307.2 kB / 0.5902 GB, free: 13.08 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.4337, allocations: 3.203 MB / 0.5933 GB, free: 10.07 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02479/0.4585, allocations: 9.584 MB / 0.6026 GB, free: 464 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005172/0.4637, allocations: 1.24 MB / 0.6039 GB, free: 15.21 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.37/0.8337, allocations: 92.02 MB / 0.6937 GB, free: 76.16 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01433/0.848, allocations: 9.181 MB / 0.7027 GB, free: 75.04 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004203/0.8523, allocations: 2.151 MB / 0.7048 GB, free: 75.04 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005099/0.8574, allocations: 3.36 MB / 0.7081 GB, free: 75.03 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001486/0.859, allocations: 237.5 kB / 0.7083 GB, free: 75.03 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003618/0.8626, allocations: 1.448 MB / 0.7097 GB, free: 75.03 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003214/0.8658, allocations: 2.849 MB / 0.7125 GB, free: 75.03 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003942/0.8698, allocations: 3.077 MB / 0.7155 GB, free: 74.72 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008047/0.8779, allocations: 9.544 MB / 0.7248 GB, free: 66.43 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8779, allocations: 5.641 kB / 0.7248 GB, free: 66.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.8779, allocations: 0 / 0.7248 GB, free: 66.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003559/0.8783, allocations: 0 / 0.7248 GB, free: 66.43 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.01458/0.8928, allocations: 6.772 MB / 0.7314 GB, free: 60.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.8929, allocations: 8.031 kB / 0.7314 GB, free: 60.16 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003264/0.8962, allocations: 1.154 MB / 0.7326 GB, free: 59.43 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04981/0.946, allocations: 8.479 MB / 0.7408 GB, free: 51.55 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.9566, allocations: 5.758 MB / 0.7465 GB, free: 47.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/0.9568, allocations: 385 kB / 0.7468 GB, free: 47.14 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/0.9583, allocations: 0.5123 MB / 0.7473 GB, free: 46.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02454/0.9829, allocations: 15.41 MB / 0.7624 GB, free: 34.91 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001867/0.9831, allocations: 66.3 kB / 0.7625 GB, free: 34.87 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007812/0.9839, allocations: 239.6 kB / 0.7627 GB, free: 34.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003129/0.987, allocations: 2.546 MB / 0.7652 GB, free: 32.74 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02364/1.011, allocations: 12.86 MB / 0.7777 GB, free: 23.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06394/1.075, allocations: 57.16 MB / 0.8335 GB, free: 2.488 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01663/1.091, allocations: 6.348 MB / 0.8397 GB, free: 12 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004419/1.096, allocations: 3.299 MB / 0.843 GB, free: 8.695 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01663/1.112, allocations: 11.28 MB / 0.854 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/1.113, allocations: 59.56 kB / 0.854 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=245): time 5.019e-06/1.113, allocations: 5.969 kB / 0.854 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=338): time 0.1327/1.245, allocations: 40 MB / 0.8931 GB, free: 5.047 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/1.245, allocations: 241.6 kB / 0.8933 GB, free: 4.762 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2435/1.489, allocations: 5.701 MB / 0.8989 GB, free: 211.9 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008001/1.49, allocations: 77.23 kB / 0.899 GB, free: 211.9 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003221/1.493, allocations: 4.452 MB / 0.9033 GB, free: 210 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001482/1.495, allocations: 1.239 MB / 0.9045 GB, free: 209.1 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005637/1.495, allocations: 166.6 kB / 0.9047 GB, free: 209 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003419/1.495, allocations: 0.6506 MB / 0.9053 GB, free: 208.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004609/1.5, allocations: 3.735 MB / 0.909 GB, free: 207.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006114/1.506, allocations: 8.267 MB / 0.917 GB, free: 199.7 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01285/1.519, allocations: 12.96 MB / 0.9297 GB, free: 189.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/1.519, allocations: 44.78 kB / 0.9297 GB, free: 189.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03273/1.552, allocations: 15.39 MB / 0.9448 GB, free: 184.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002149/1.552, allocations: 72.38 kB / 0.9448 GB, free: 184.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002954/1.553, allocations: 157.4 kB / 0.945 GB, free: 184.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01289/1.565, allocations: 4.108 MB / 0.949 GB, free: 183.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005619/1.571, allocations: 1.793 MB / 0.9508 GB, free: 183.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02552/1.597, allocations: 19.6 MB / 0.9699 GB, free: 172.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006524/1.603, allocations: 495.5 kB / 0.9704 GB, free: 171.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/1.605, allocations: 471.6 kB / 0.9708 GB, free: 171.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * 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 (966): * Single equations (assignments): 962 * 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.005816/1.611, allocations: 3.114 MB / 0.9739 GB, free: 168.4 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/1.612, allocations: 0.5245 MB / 0.9744 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01901/1.631, allocations: 9.595 MB / 0.9837 GB, free: 158.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-05/1.631, allocations: 39.94 kB / 0.9838 GB, free: 158.2 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-05/1.631, allocations: 18.3 kB / 0.9838 GB, free: 158.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.223e-05/1.631, allocations: 11.95 kB / 0.9838 GB, free: 158.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03613/1.667, allocations: 19.7 MB / 1.003 GB, free: 138.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-05/1.667, allocations: 11.98 kB / 1.003 GB, free: 138.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002167/1.669, allocations: 0.4914 MB / 1.004 GB, free: 137.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01117/1.681, allocations: 3.66 MB / 1.007 GB, free: 134.2 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005945/1.681, allocations: 65.33 kB / 1.007 GB, free: 134.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02879/1.71, allocations: 17.15 MB / 1.024 GB, free: 116.8 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/1.71, allocations: 11.94 kB / 1.024 GB, free: 116.8 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03573/1.746, allocations: 14.18 MB / 1.038 GB, free: 102.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/1.748, allocations: 0.5683 MB / 1.038 GB, free: 101.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001359/1.749, allocations: 61.33 kB / 1.038 GB, free: 101.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004334/1.753, allocations: 227.7 kB / 1.039 GB, free: 101.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001181/1.755, allocations: 230.2 kB / 1.039 GB, free: 101.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003913/1.755, allocations: 85.02 kB / 1.039 GB, free: 101.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00712/1.762, allocations: 3.619 MB / 1.042 GB, free: 97.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.81e-07/1.762, allocations: 4 kB / 1.042 GB, free: 97.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01075/1.773, allocations: 1.7 MB / 1.044 GB, free: 96 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (256): * Single equations (assignments): 252 * 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.0227/1.796, allocations: 14.93 MB / 1.059 GB, free: 80.88 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01213/1.808, allocations: 9.186 MB / 1.068 GB, free: 71.69 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/1.808, allocations: 0 / 1.068 GB, free: 71.69 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004386/1.812, allocations: 3.622 MB / 1.071 GB, free: 68.05 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008963/1.821, allocations: 0.7343 MB / 1.072 GB, free: 67.32 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2906/2.112, allocations: 63.43 MB / 1.134 GB, free: 197.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005437/2.117, allocations: 4.821 MB / 1.139 GB, free: 197 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003674/2.121, allocations: 3.13 MB / 1.142 GB, free: 195.5 MB / 0.573 GB Notification: Performance of SimCode: time 9.71e-07/2.121, allocations: 0 / 1.142 GB, free: 195.5 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.17/12.29, allocations: 146.2 MB / 1.284 GB, free: 77.18 MB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/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