Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",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.001334/0.001334, allocations: 105.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.001421/0.001421, 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.433/1.433, 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.2116/0.2116, allocations: 44.17 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.00142, allocations: 63.8 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1373, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01683/0.1542, allocations: 15.04 MB / 484.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01181/0.1661, allocations: 4.822 MB / 489.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003447/0.1696, allocations: 91.75 kB / 489.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006688/0.1763, allocations: 3.169 MB / 492.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007174/0.1835, allocations: 2.541 MB / 495 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.1861, allocations: 0.9905 MB / 496 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.1971, allocations: 6.965 MB / 0.4912 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007412/0.2046, allocations: 4.385 MB / 0.4955 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005135/0.2098, allocations: 2.223 MB / 0.4976 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005805/0.2156, allocations: 3.248 MB / 0.5008 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001936/0.2176, allocations: 484 kB / 0.5013 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003904/0.2215, allocations: 1.498 MB / 0.5027 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2753/0.4969, allocations: 2.859 MB / 0.5055 GB, free: 19.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00891/0.5058, allocations: 3.318 MB / 0.5088 GB, free: 18.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01918/0.525, allocations: 10.22 MB / 0.5187 GB, free: 17.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.5251, allocations: 0 / 0.5187 GB, free: 17.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.5251, allocations: 3.297 kB / 0.5188 GB, free: 17.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004443/0.5255, allocations: 1.031 kB / 0.5188 GB, free: 17.56 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0315/0.5571, allocations: 7.513 MB / 0.5261 GB, free: 14.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.3e-05/0.5572, allocations: 14.5 kB / 0.5261 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006163/0.5633, allocations: 1.129 MB / 0.5272 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07168/0.635, allocations: 7.475 MB / 0.5345 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01933/0.6544, allocations: 4.845 MB / 0.5392 GB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005084/0.655, allocations: 319.5 kB / 0.5395 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003691/0.6587, allocations: 440.3 kB / 0.54 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04697/0.7057, allocations: 15.62 MB / 0.5552 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003918/0.7061, allocations: 60 kB / 0.5553 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003374/0.7095, allocations: 204.3 kB / 0.5555 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008111/0.7177, allocations: 3.22 MB / 0.5586 GB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0424/0.7601, allocations: 13.95 MB / 0.5722 GB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1144/0.8746, allocations: 57.38 MB / 0.6283 GB, free: 15.51 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01552/0.8901, allocations: 6.502 MB / 0.6346 GB, free: 8.762 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005728/0.8959, allocations: 3.63 MB / 0.6382 GB, free: 5.125 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02904/0.925, allocations: 14.43 MB / 0.6523 GB, free: 6.262 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.584e-05/0.9251, allocations: 66.81 kB / 0.6523 GB, free: 6.188 MB / 494.1 MB Notification: Performance of pre-optimization done (n=289): time 7.654e-06/0.9251, allocations: 0 / 0.6523 GB, free: 6.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.1612/1.086, allocations: 41.75 MB / 0.6931 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/1.086, allocations: 211.1 kB / 0.6933 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0102/1.097, allocations: 5.499 MB / 0.6987 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001092/1.098, allocations: 76.75 kB / 0.6987 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003595/1.101, allocations: 4.412 MB / 0.703 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00191/1.103, allocations: 1.251 MB / 0.7043 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2078/1.311, allocations: 1.776 MB / 0.706 GB, free: 188.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.551e-05/1.311, allocations: 301.1 kB / 0.7063 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008599/1.32, allocations: 4.647 MB / 0.7108 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01078/1.331, allocations: 9.611 MB / 0.7202 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0153/1.346, allocations: 15.31 MB / 0.7352 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/1.346, allocations: 49 kB / 0.7352 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04506/1.391, allocations: 19.01 MB / 0.7538 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/1.391, allocations: 80 kB / 0.7538 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/1.392, allocations: 172 kB / 0.754 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02255/1.414, allocations: 5.782 MB / 0.7597 GB, free: 152.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007691/1.422, allocations: 2.066 MB / 0.7617 GB, free: 150 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02767/1.45, allocations: 25.65 MB / 0.7867 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008339/1.458, allocations: 0.5434 MB / 0.7873 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001797/1.46, allocations: 0.5 MB / 0.7877 GB, free: 123.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006258/1.466, allocations: 3.098 MB / 0.7908 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/1.467, allocations: 0.4964 MB / 0.7913 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02914/1.496, allocations: 12.68 MB / 0.8036 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.662e-05/1.496, allocations: 55.98 kB / 0.8037 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.761e-05/1.496, allocations: 12 kB / 0.8037 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.491e-05/1.497, allocations: 19.83 kB / 0.8037 GB, free: 107 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04905/1.546, allocations: 24.37 MB / 0.8275 GB, free: 82.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.124e-05/1.546, allocations: 8 kB / 0.8275 GB, free: 82.26 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003258/1.549, allocations: 0.5796 MB / 0.8281 GB, free: 81.68 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01869/1.568, allocations: 4.806 MB / 0.8328 GB, free: 76.86 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008436/1.569, allocations: 59.98 kB / 0.8328 GB, free: 76.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02188/1.59, allocations: 20.9 MB / 0.8532 GB, free: 55.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.964e-06/1.59, allocations: 11.88 kB / 0.8533 GB, free: 55.69 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03226/1.623, allocations: 17.11 MB / 0.87 GB, free: 38.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/1.624, allocations: 0.5319 MB / 0.8705 GB, free: 37.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00143/1.626, allocations: 56.62 kB / 0.8705 GB, free: 37.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00341/1.629, allocations: 261.1 kB / 0.8708 GB, free: 37.62 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008618/1.63, allocations: 189.6 kB / 0.871 GB, free: 37.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002758/1.63, allocations: 87.42 kB / 0.8711 GB, free: 37.35 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005062/1.635, allocations: 3.42 MB / 0.8744 GB, free: 33.95 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.81e-07/1.635, allocations: 4 kB / 0.8744 GB, free: 33.95 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01/1.645, allocations: 1.713 MB / 0.8761 GB, free: 32.24 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03295/1.678, allocations: 17.79 MB / 0.8934 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2527/1.931, allocations: 15.42 MB / 0.9085 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/1.931, allocations: 1.562 kB / 0.9085 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007397/1.939, allocations: 4.053 MB / 0.9125 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004993/1.944, allocations: 0.657 MB / 0.9131 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1555/2.099, allocations: 98.48 MB / 1.009 GB, free: 84.76 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00656/2.106, allocations: 4.627 MB / 1.014 GB, free: 80.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007373/2.113, allocations: 2.994 MB / 1.017 GB, free: 77.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005589/2.119, allocations: 2.917 MB / 1.02 GB, free: 74.18 MB / 0.5294 GB Notification: Performance of SimCode: time 1.152e-06/2.119, allocations: 0 / 1.02 GB, free: 74.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4567/2.576, allocations: 130.8 MB / 1.147 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/15.21, allocations: 5.875 kB / 1.147 GB, free: 144.4 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches