Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001184, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2219/0.2219, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002412/0.002413, allocations: 60.58 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1167, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.01773/0.1344, allocations: 16.28 MB / 485.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01084/0.1453, allocations: 5.338 MB / 491 MB, free: 8.562 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003043/0.1484, allocations: 103.7 kB / 491.1 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008298/0.1567, allocations: 4.17 MB / 495.2 MB, free: 4.277 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008925/0.1657, allocations: 2.755 MB / 498 MB, free: 1.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003208/0.1689, allocations: 1.263 MB / 499.3 MB, free: 252 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.1791, allocations: 7.596 MB / 0.495 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007424/0.1865, allocations: 5.856 MB / 0.5007 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004378/0.1909, allocations: 2.671 MB / 0.5033 GB, free: 24 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1953/0.3863, allocations: 3.774 MB / 0.507 GB, free: 18.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003012/0.3893, allocations: 0.5943 MB / 0.5076 GB, free: 18.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005674/0.395, allocations: 1.758 MB / 0.5093 GB, free: 18.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006563/0.4016, allocations: 3.309 MB / 0.5125 GB, free: 18.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00959/0.4112, allocations: 3.836 MB / 0.5163 GB, free: 17.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02098/0.4322, allocations: 12.05 MB / 0.528 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.4323, allocations: 0 / 0.528 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4323, allocations: 0.5 kB / 0.528 GB, free: 13.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005424/0.4328, allocations: 0 / 0.528 GB, free: 13.86 MB / 382.1 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.02752/0.4604, allocations: 8.001 MB / 0.5358 GB, free: 8.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.4604, allocations: 9.844 kB / 0.5359 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003412/0.4639, allocations: 1.303 MB / 0.5371 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02916/0.493, allocations: 5.696 MB / 0.5427 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.5033, allocations: 5.146 MB / 0.5477 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000258/0.5036, allocations: 402.6 kB / 0.5481 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002174/0.5058, allocations: 0.5541 MB / 0.5486 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03762/0.5434, allocations: 18.81 MB / 0.567 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001651/0.5436, allocations: 69.52 kB / 0.5671 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006609/0.5443, allocations: 247.4 kB / 0.5673 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004803/0.5491, allocations: 3.436 MB / 0.5707 GB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03062/0.5797, allocations: 16.51 MB / 0.5868 GB, free: 9.59 MB / 430.1 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.1055/0.6853, allocations: 66.81 MB / 0.652 GB, free: 5.781 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01805/0.7034, allocations: 6.271 MB / 0.6582 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005235/0.7087, allocations: 2.826 MB / 0.6609 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03069/0.7394, allocations: 13.84 MB / 0.6744 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.068e-05/0.7396, allocations: 63.69 kB / 0.6745 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=284): time 9.528e-06/0.7396, allocations: 0 / 0.6745 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of matching and sorting (n=345): time 0.113/0.8526, allocations: 25.07 MB / 0.699 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.8528, allocations: 188.3 kB / 0.6992 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2975/1.15, allocations: 5.897 MB / 0.7049 GB, free: 183.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007717/1.151, allocations: 73.95 kB / 0.705 GB, free: 183.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004812/1.156, allocations: 4.987 MB / 0.7099 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001827/1.158, allocations: 1.281 MB / 0.7111 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004102/1.162, allocations: 1.862 MB / 0.7129 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.989e-05/1.162, allocations: 307.1 kB / 0.7132 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007247/1.169, allocations: 3.288 MB / 0.7164 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01187/1.181, allocations: 8.771 MB / 0.725 GB, free: 169 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01721/1.199, allocations: 13.05 MB / 0.7377 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003641/1.199, allocations: 52.5 kB / 0.7378 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02771/1.227, allocations: 12.81 MB / 0.7503 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003077/1.227, allocations: 92.56 kB / 0.7504 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004226/1.227, allocations: 189.2 kB / 0.7506 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004442/1.232, allocations: 1.318 MB / 0.7519 GB, free: 153 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007475/1.239, allocations: 2.166 MB / 0.754 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/1.252, allocations: 7.844 MB / 0.7616 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009986/1.262, allocations: 0.4999 MB / 0.7621 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002713/1.264, allocations: 0.5445 MB / 0.7627 GB, free: 143.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 874 * 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 (1152): * Single equations (assignments): 1145 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,37,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01076/1.275, allocations: 3.443 MB / 0.766 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/1.277, allocations: 0.5357 MB / 0.7665 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/1.289, allocations: 5.409 MB / 0.7718 GB, free: 135.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.661e-05/1.289, allocations: 39.67 kB / 0.7719 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-05/1.289, allocations: 11.75 kB / 0.7719 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-05/1.289, allocations: 15.44 kB / 0.7719 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04114/1.33, allocations: 14 MB / 0.7856 GB, free: 122.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.985e-05/1.33, allocations: 9.031 kB / 0.7856 GB, free: 122.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002482/1.333, allocations: 0.4992 MB / 0.7861 GB, free: 121.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003176/1.336, allocations: 0.8156 MB / 0.7869 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004955/1.337, allocations: 75.2 kB / 0.7869 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008317/1.345, allocations: 5.807 MB / 0.7926 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.477e-06/1.345, allocations: 15.94 kB / 0.7926 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/1.359, allocations: 8.301 MB / 0.8007 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002311/1.361, allocations: 0.5604 MB / 0.8013 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001978/1.363, allocations: 67.94 kB / 0.8013 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003874/1.367, allocations: 127.9 kB / 0.8015 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008487/1.368, allocations: 222.7 kB / 0.8017 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003846/1.369, allocations: 109.1 kB / 0.8018 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008659/1.377, allocations: 3.672 MB / 0.8054 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.132e-06/1.377, allocations: 0 / 0.8054 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01168/1.389, allocations: 1.623 MB / 0.8069 GB, free: 100.1 MB / 0.5294 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 (269): * Single equations (assignments): 262 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01686/1.406, allocations: 9.05 MB / 0.8158 GB, free: 90.73 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02027/1.426, allocations: 11.21 MB / 0.8267 GB, free: 79.56 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.671e-05/1.426, allocations: 7.938 kB / 0.8267 GB, free: 79.55 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004462/1.431, allocations: 2.372 MB / 0.8291 GB, free: 77.16 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00828/1.439, allocations: 0.7174 MB / 0.8298 GB, free: 76.46 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3346/1.774, allocations: 87.25 MB / 0.915 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006048/1.78, allocations: 5.16 MB / 0.92 GB, free: 183 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006429/1.786, allocations: 2.964 MB / 0.9229 GB, free: 182.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002924/1.789, allocations: 3.333 MB / 0.9261 GB, free: 182 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/1.789, allocations: 0 / 0.9261 GB, free: 182 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7568/2.546, allocations: 116.3 MB / 1.04 GB, free: 83.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.17/17.72, allocations: 16.47 kB / 1.04 GB, free: 83.44 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches