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.001194/0.001195, allocations: 103.5 kB / 17.63 MB, free: 5.344 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.001264/0.001265, allocations: 192 kB / 18.56 MB, free: 4.434 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.422/1.422, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2306/0.2306, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 60.19 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.116, allocations: 60.81 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.01706/0.1331, allocations: 16.29 MB / 485.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01217/0.1453, allocations: 5.338 MB / 491 MB, free: 8.555 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002845/0.1482, allocations: 95.75 kB / 491.1 MB, free: 8.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007604/0.1559, allocations: 4.174 MB / 495.2 MB, free: 4.273 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00683/0.1628, allocations: 2.758 MB / 498 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002581/0.1654, allocations: 1.263 MB / 499.3 MB, free: 244 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008851/0.1742, allocations: 7.589 MB / 0.495 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006238/0.1805, allocations: 5.864 MB / 0.5007 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004456/0.185, allocations: 2.664 MB / 0.5033 GB, free: 20 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2367/0.4218, allocations: 3.774 MB / 0.507 GB, free: 19.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003561/0.4254, allocations: 0.593 MB / 0.5076 GB, free: 19.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006316/0.4317, allocations: 1.758 MB / 0.5093 GB, free: 19.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00691/0.4387, allocations: 3.314 MB / 0.5125 GB, free: 18.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0103/0.449, allocations: 3.838 MB / 0.5163 GB, free: 17.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.465, allocations: 12.05 MB / 0.528 GB, free: 13.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.286e-05/0.4651, allocations: 0.625 kB / 0.528 GB, free: 13.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.4651, allocations: 0 / 0.528 GB, free: 13.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006237/0.4658, allocations: 0.5312 kB / 0.528 GB, free: 13.92 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.02665/0.4924, allocations: 8.001 MB / 0.5358 GB, free: 8.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.4925, allocations: 9.594 kB / 0.5359 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004506/0.497, allocations: 1.303 MB / 0.5371 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03023/0.5273, allocations: 5.697 MB / 0.5427 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009722/0.537, allocations: 5.148 MB / 0.5477 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002661/0.5373, allocations: 403.3 kB / 0.5481 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.5392, allocations: 0.5486 MB / 0.5486 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03979/0.579, allocations: 18.82 MB / 0.567 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002328/0.5793, allocations: 69.14 kB / 0.5671 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001169/0.5805, allocations: 255.6 kB / 0.5673 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005276/0.5858, allocations: 3.428 MB / 0.5707 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03492/0.6207, allocations: 16.51 MB / 0.5868 GB, free: 9.609 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.09406/0.7148, allocations: 66.81 MB / 0.652 GB, free: 5.812 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0164/0.7313, allocations: 6.266 MB / 0.6582 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004415/0.7357, allocations: 2.828 MB / 0.6609 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02495/0.7607, allocations: 13.84 MB / 0.6744 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.578e-05/0.7608, allocations: 67.2 kB / 0.6745 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=284): time 6.793e-06/0.7608, allocations: 0 / 0.6745 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of matching and sorting (n=345): time 0.09181/0.8526, allocations: 25.07 MB / 0.699 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.8528, allocations: 184.3 kB / 0.6992 GB, free: 4.723 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2122/1.065, allocations: 5.905 MB / 0.7049 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005971/1.066, allocations: 69.14 kB / 0.705 GB, free: 183 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003374/1.069, allocations: 4.988 MB / 0.7099 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001244/1.07, allocations: 1.283 MB / 0.7111 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002817/1.073, allocations: 1.863 MB / 0.7129 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.419e-05/1.073, allocations: 301.1 kB / 0.7132 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0054/1.079, allocations: 3.292 MB / 0.7164 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008754/1.087, allocations: 8.767 MB / 0.725 GB, free: 168.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01512/1.102, allocations: 13.05 MB / 0.7377 GB, free: 158 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003402/1.103, allocations: 55.5 kB / 0.7378 GB, free: 158 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02627/1.129, allocations: 12.81 MB / 0.7503 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000147/1.129, allocations: 94.72 kB / 0.7504 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002215/1.13, allocations: 192.6 kB / 0.7506 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004032/1.134, allocations: 1.317 MB / 0.7519 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007203/1.141, allocations: 2.164 MB / 0.754 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/1.152, allocations: 7.842 MB / 0.7616 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008873/1.161, allocations: 0.4964 MB / 0.7621 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001891/1.163, allocations: 0.545 MB / 0.7626 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.007703/1.17, allocations: 3.445 MB / 0.766 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.171, allocations: 0.536 MB / 0.7665 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/1.181, allocations: 5.411 MB / 0.7718 GB, free: 135.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.55e-05/1.182, allocations: 37.56 kB / 0.7719 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/1.182, allocations: 12 kB / 0.7719 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.562e-05/1.182, allocations: 24.23 kB / 0.7719 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02554/1.207, allocations: 14 MB / 0.7856 GB, free: 122.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.461e-05/1.207, allocations: 12 kB / 0.7856 GB, free: 122.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002277/1.21, allocations: 0.4992 MB / 0.7861 GB, free: 121.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003086/1.213, allocations: 0.8108 MB / 0.7869 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004606/1.213, allocations: 75.98 kB / 0.7869 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008069/1.221, allocations: 5.809 MB / 0.7926 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/1.221, allocations: 19.94 kB / 0.7926 GB, free: 115 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/1.234, allocations: 8.299 MB / 0.8007 GB, free: 106.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001886/1.236, allocations: 0.5643 MB / 0.8013 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/1.237, allocations: 65.38 kB / 0.8013 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002328/1.24, allocations: 134.7 kB / 0.8015 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004836/1.24, allocations: 217.5 kB / 0.8017 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/1.24, allocations: 104 kB / 0.8018 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00573/1.246, allocations: 3.676 MB / 0.8054 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.22e-07/1.246, allocations: 0 / 0.8054 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009089/1.255, 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.01306/1.268, allocations: 9.052 MB / 0.8158 GB, free: 90.74 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01934/1.288, allocations: 11.21 MB / 0.8267 GB, free: 79.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.835e-05/1.288, allocations: 0 / 0.8267 GB, free: 79.57 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003767/1.292, allocations: 2.376 MB / 0.8291 GB, free: 77.18 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00507/1.297, allocations: 0.7192 MB / 0.8298 GB, free: 76.49 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3651/1.662, allocations: 87.24 MB / 0.915 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008589/1.67, allocations: 5.16 MB / 0.92 GB, free: 183 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008534/1.679, allocations: 2.966 MB / 0.9229 GB, free: 182.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006136/1.685, allocations: 3.331 MB / 0.9261 GB, free: 182 MB / 0.545 GB Notification: Performance of SimCode: time 1.322e-06/1.685, allocations: 0 / 0.9261 GB, free: 182 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1717/1.857, allocations: 116.3 MB / 1.04 GB, free: 83.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/14.44, allocations: 13.66 kB / 1.04 GB, free: 83.35 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 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.csv","/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