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.001265/0.001265, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001408/0.001408, allocations: 181 kB / 18.71 MB, free: 4.207 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.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2072/0.2072, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3695, allocations: 60.82 MB / 0.5184 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.0162/0.3858, allocations: 15.05 MB / 0.5331 GB, free: 8.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.3993, allocations: 4.811 MB / 0.5378 GB, free: 4.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004004/0.4033, allocations: 91.47 kB / 0.5379 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007108/0.4105, allocations: 3.165 MB / 0.541 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007396/0.4179, allocations: 2.629 MB / 0.5435 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002508/0.4205, allocations: 0.989 MB / 0.5445 GB, free: 104 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009845/0.4303, allocations: 6.975 MB / 0.5513 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005865/0.4362, allocations: 4.377 MB / 0.5556 GB, free: 5.918 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003983/0.4402, allocations: 2.227 MB / 0.5578 GB, free: 3.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004737/0.445, allocations: 3.256 MB / 0.561 GB, free: 428 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002105/0.4471, allocations: 484 kB / 0.5614 GB, free: 15.94 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004377/0.4515, allocations: 1.506 MB / 0.5629 GB, free: 14.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004678/0.4562, allocations: 2.895 MB / 0.5657 GB, free: 11.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006464/0.4627, allocations: 3.313 MB / 0.5689 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01356/0.4763, allocations: 10.64 MB / 0.5793 GB, free: 13.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.4763, allocations: 0 / 0.5793 GB, free: 13.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4764, allocations: 7.875 kB / 0.5794 GB, free: 13.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003862/0.4767, allocations: 0 / 0.5794 GB, free: 13.51 MB / 446.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.02033/0.4971, allocations: 7.693 MB / 0.5869 GB, free: 5.719 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.4972, allocations: 8.031 kB / 0.5869 GB, free: 5.711 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003192/0.5004, allocations: 1.137 MB / 0.588 GB, free: 4.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04406/0.5444, allocations: 7.508 MB / 0.5953 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/0.5577, allocations: 4.936 MB / 0.6001 GB, free: 8.035 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003488/0.558, allocations: 320.2 kB / 0.6004 GB, free: 7.719 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002161/0.5602, allocations: 431.7 kB / 0.6009 GB, free: 7.297 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02948/0.5897, allocations: 15.63 MB / 0.6161 GB, free: 6.734 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002456/0.59, allocations: 51.58 kB / 0.6162 GB, free: 6.684 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001679/0.5917, allocations: 203.8 kB / 0.6164 GB, free: 6.484 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00563/0.5973, allocations: 3.227 MB / 0.6195 GB, free: 3.254 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03104/0.6284, allocations: 13.94 MB / 0.6331 GB, free: 5.285 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08812/0.7166, allocations: 57.2 MB / 0.689 GB, free: 10.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/0.7318, allocations: 6.513 MB / 0.6954 GB, free: 3.77 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005274/0.7371, allocations: 3.621 MB / 0.6989 GB, free: 140 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02677/0.7639, allocations: 14.43 MB / 0.713 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.243e-05/0.764, allocations: 72.48 kB / 0.713 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 9.147e-06/0.764, allocations: 0 / 0.713 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.4097/1.174, allocations: 42.08 MB / 0.7541 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.494e-05/1.174, allocations: 220.9 kB / 0.7544 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006782/1.181, allocations: 5.5 MB / 0.7597 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007815/1.181, allocations: 77.53 kB / 0.7598 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002032/1.183, allocations: 4.594 MB / 0.7643 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001293/1.185, allocations: 1.305 MB / 0.7656 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002196/1.187, allocations: 1.789 MB / 0.7673 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.058e-05/1.187, allocations: 305.1 kB / 0.7676 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005152/1.192, allocations: 4.644 MB / 0.7721 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00675/1.199, allocations: 9.619 MB / 0.7815 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01354/1.213, allocations: 15.29 MB / 0.7965 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.213, allocations: 48 kB / 0.7965 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.03798/1.251, allocations: 19.03 MB / 0.8151 GB, free: 83.76 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.529e-05/1.251, allocations: 80 kB / 0.8152 GB, free: 83.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001561/1.251, allocations: 175.9 kB / 0.8153 GB, free: 83.51 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02115/1.272, allocations: 5.781 MB / 0.821 GB, free: 77.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006757/1.279, allocations: 2.063 MB / 0.823 GB, free: 75.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02741/1.306, allocations: 25.67 MB / 0.8481 GB, free: 49.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007161/1.314, allocations: 0.5501 MB / 0.8486 GB, free: 49.15 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001233/1.315, allocations: 0.5078 MB / 0.8491 GB, free: 48.64 MB / 0.5606 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.004445/1.319, allocations: 3.094 MB / 0.8521 GB, free: 45.54 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/1.32, allocations: 0.5238 MB / 0.8526 GB, free: 45.02 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02754/1.348, allocations: 12.68 MB / 0.865 GB, free: 32.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.866e-05/1.348, allocations: 55.98 kB / 0.8651 GB, free: 32.21 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/1.348, allocations: 12 kB / 0.8651 GB, free: 32.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.164e-05/1.348, allocations: 11.95 kB / 0.8651 GB, free: 32.19 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04591/1.394, allocations: 24.32 MB / 0.8888 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.291e-05/1.394, allocations: 8 kB / 0.8888 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003092/1.397, allocations: 0.5856 MB / 0.8894 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01863/1.416, allocations: 4.814 MB / 0.8941 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007065/1.417, allocations: 55.94 kB / 0.8942 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02823/1.445, allocations: 20.89 MB / 0.9146 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/1.445, allocations: 7.984 kB / 0.9146 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03841/1.483, allocations: 17.15 MB / 0.9313 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001684/1.485, allocations: 0.552 MB / 0.9319 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001663/1.487, allocations: 55.98 kB / 0.9319 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004674/1.491, allocations: 259.6 kB / 0.9322 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001289/1.493, allocations: 189.7 kB / 0.9323 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005903/1.493, allocations: 87.83 kB / 0.9324 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00646/1.5, allocations: 3.42 MB / 0.9358 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/1.5, allocations: 0 / 0.9358 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00868/1.509, allocations: 1.711 MB / 0.9374 GB, free: 5.176 MB / 0.6075 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.3186/1.827, allocations: 17.81 MB / 0.9548 GB, free: 193.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0165/1.844, allocations: 10.7 MB / 0.9653 GB, free: 189.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.589e-05/1.844, allocations: 2 kB / 0.9653 GB, free: 189.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00628/1.85, allocations: 4.053 MB / 0.9692 GB, free: 187.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005121/1.855, allocations: 0.6597 MB / 0.9699 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1282/1.983, allocations: 86.36 MB / 1.054 GB, free: 103.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005793/1.989, allocations: 4.615 MB / 1.059 GB, free: 99.23 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006054/1.995, allocations: 2.987 MB / 1.062 GB, free: 96.24 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004005/1.999, allocations: 2.928 MB / 1.064 GB, free: 93.31 MB / 0.6075 GB Notification: Performance of SimCode: time 1.202e-06/1.999, allocations: 0 / 1.064 GB, free: 93.31 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5048/2.504, allocations: 125.7 MB / 1.187 GB, free: 204.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.17/40.67, allocations: 9.297 kB / 1.187 GB, free: 204.9 MB / 0.6231 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