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.001413/0.001413, allocations: 199.7 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.421/1.421, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007903/0.0007906, allocations: 102.6 kB / 295.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3806/0.3806, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.0002799, allocations: 7.984 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2964, allocations: 62.95 MB / 0.5159 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.03932/0.3357, allocations: 57.18 MB / 0.5717 GB, free: 12.37 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02905/0.3648, allocations: 12.61 MB / 0.584 GB, free: 2.785 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01184/0.3767, allocations: 271.3 kB / 0.5843 GB, free: 2.52 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0116/0.3883, allocations: 2.979 MB / 0.5872 GB, free: 252 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03308/0.4215, allocations: 8.996 MB / 0.596 GB, free: 7.219 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006447/0.4279, allocations: 1.346 MB / 0.5973 GB, free: 5.871 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04544/0.4734, allocations: 37.52 MB / 0.6339 GB, free: 312 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01315/0.4866, allocations: 8.343 MB / 0.6421 GB, free: 7.84 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005995/0.4927, allocations: 2.429 MB / 0.6445 GB, free: 5.402 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006648/0.4994, allocations: 3.961 MB / 0.6483 GB, free: 1.43 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001486/0.5009, allocations: 292 kB / 0.6486 GB, free: 1.145 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003606/0.5045, allocations: 1.525 MB / 0.6501 GB, free: 15.62 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003426/0.508, allocations: 3.261 MB / 0.6533 GB, free: 12.35 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005712/0.5137, allocations: 3.528 MB / 0.6567 GB, free: 8.793 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01231/0.526, allocations: 10.47 MB / 0.6669 GB, free: 14.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.5261, allocations: 0 / 0.6669 GB, free: 14.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.5261, allocations: 0 / 0.6669 GB, free: 14.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006095/0.5267, allocations: 0 / 0.6669 GB, free: 14.3 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.01713/0.5438, allocations: 7.43 MB / 0.6742 GB, free: 6.781 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.5439, allocations: 12.03 kB / 0.6742 GB, free: 6.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.016/0.5599, allocations: 4.202 MB / 0.6783 GB, free: 2.551 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4437/1.004, allocations: 4.975 MB / 0.6832 GB, free: 129.1 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/1.004, allocations: 435.8 kB / 0.6836 GB, free: 129 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0026/1.007, allocations: 0.5971 MB / 0.6842 GB, free: 128.8 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04072/1.047, allocations: 20.64 MB / 0.7043 GB, free: 120.1 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004253/1.048, allocations: 83.25 kB / 0.7044 GB, free: 120.1 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002127/1.05, allocations: 272.8 kB / 0.7047 GB, free: 120 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006312/1.056, allocations: 3.707 MB / 0.7083 GB, free: 119.3 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03836/1.095, allocations: 18.18 MB / 0.726 GB, free: 108.9 MB / 490.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08519/1.18, allocations: 74.55 MB / 0.7988 GB, free: 32.75 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01534/1.195, allocations: 7.433 MB / 0.8061 GB, free: 25.06 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005078/1.2, allocations: 4.108 MB / 0.8101 GB, free: 20.93 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02676/1.227, allocations: 18.17 MB / 0.8279 GB, free: 2.082 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/1.227, allocations: 72.53 kB / 0.8279 GB, free: 2 MB / 490.8 MB Notification: Performance of pre-optimization done (n=335): time 6.582e-06/1.227, allocations: 0 / 0.8279 GB, free: 2 MB / 490.8 MB Notification: Performance of matching and sorting (n=419): time 0.1152/1.343, allocations: 35.28 MB / 0.8624 GB, free: 14.57 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/1.343, allocations: 192.9 kB / 0.8626 GB, free: 14.34 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/1.354, allocations: 6.443 MB / 0.8689 GB, free: 7.895 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0008197/1.355, allocations: 85.64 kB / 0.8689 GB, free: 7.805 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.004148/1.36, allocations: 5.372 MB / 0.8742 GB, free: 2.359 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.002092/1.362, allocations: 1.546 MB / 0.8757 GB, free: 0.793 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/1.363, allocations: 216 kB / 0.8759 GB, free: 0.582 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0008995/1.364, allocations: 0.7648 MB / 0.8766 GB, free: 15.81 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007582/1.371, allocations: 4.296 MB / 0.8808 GB, free: 11.51 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2726/1.644, allocations: 10.23 MB / 0.8908 GB, free: 165.8 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01848/1.663, allocations: 15.62 MB / 0.9061 GB, free: 154.5 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000246/1.663, allocations: 59.44 kB / 0.9061 GB, free: 154.5 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.0363/1.699, allocations: 16.26 MB / 0.922 GB, free: 148.8 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005285/1.7, allocations: 95.16 kB / 0.9221 GB, free: 148.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006628/1.7, allocations: 207.1 kB / 0.9223 GB, free: 148.8 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009246/1.71, allocations: 2.376 MB / 0.9246 GB, free: 148.4 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009355/1.719, allocations: 2.459 MB / 0.927 GB, free: 148.1 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01915/1.738, allocations: 11.91 MB / 0.9387 GB, free: 142.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007925/1.746, allocations: 0.5945 MB / 0.9392 GB, free: 142.5 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002031/1.748, allocations: 0.5952 MB / 0.9398 GB, free: 142.4 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 943 * 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 (1316): * Single equations (assignments): 1309 * 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.008017/1.756, allocations: 3.782 MB / 0.9435 GB, free: 140.8 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001565/1.758, allocations: 0.5868 MB / 0.9441 GB, free: 140.8 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01704/1.775, allocations: 8.303 MB / 0.9522 GB, free: 137.8 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-05/1.775, allocations: 62.48 kB / 0.9523 GB, free: 137.8 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.416e-05/1.775, allocations: 18.75 kB / 0.9523 GB, free: 137.8 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.398e-05/1.775, allocations: 18.98 kB / 0.9523 GB, free: 137.8 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03693/1.812, allocations: 18.93 MB / 0.9708 GB, free: 122 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.096e-05/1.812, allocations: 12 kB / 0.9708 GB, free: 121.9 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002702/1.815, allocations: 0.6251 MB / 0.9714 GB, free: 121.3 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006031/1.821, allocations: 1.815 MB / 0.9732 GB, free: 119.5 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006251/1.822, allocations: 84.86 kB / 0.9733 GB, free: 119.4 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/1.836, allocations: 9.997 MB / 0.983 GB, free: 109.4 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/1.836, allocations: 15.94 kB / 0.983 GB, free: 109.4 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01987/1.856, allocations: 12.44 MB / 0.9952 GB, free: 96.74 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/1.858, allocations: 0.6319 MB / 0.9958 GB, free: 96.08 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002442/1.86, allocations: 79.98 kB / 0.9959 GB, free: 96 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003795/1.864, allocations: 201.3 kB / 0.9961 GB, free: 95.81 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009958/1.865, allocations: 265.7 kB / 0.9963 GB, free: 95.55 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005017/1.866, allocations: 116.5 kB / 0.9964 GB, free: 95.43 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.006856/1.873, allocations: 3.989 MB / 1 GB, free: 91.45 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2.5e-07/1.873, allocations: 0 / 1 GB, free: 91.45 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01076/1.883, allocations: 1.952 MB / 1.002 GB, free: 89.51 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 55 * 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 (331): * Single equations (assignments): 324 * 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.00131/1.885, allocations: 290.9 kB / 1.003 GB, free: 89.23 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01634/1.901, allocations: 10.07 MB / 1.012 GB, free: 79.18 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.532e-05/1.901, allocations: 1.75 kB / 1.012 GB, free: 79.18 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.005364/1.907, allocations: 3.383 MB / 1.016 GB, free: 75.78 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01515/1.922, allocations: 0.7648 MB / 1.016 GB, free: 75.02 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0357/1.958, allocations: 21.69 MB / 1.038 GB, free: 53.13 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008986/1.967, allocations: 5.565 MB / 1.043 GB, free: 47.53 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002495/1.969, allocations: 495.4 kB / 1.043 GB, free: 47.05 MB / 0.5418 GB Notification: Performance of SimCode: time 1.072e-06/1.969, allocations: 0 / 1.043 GB, free: 47.05 MB / 0.5418 GB Notification: Performance of Templates: time 0.4709/2.44, allocations: 140.2 MB / 1.18 GB, free: 117.6 MB / 0.5574 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/jenkins/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