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.001886/0.001887, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001954/0.001954, allocations: 183.1 kB / 18.71 MB, free: 4.34 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.392/1.392, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.266/0.266, allocations: 44.2 MB / 336.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002389/0.002389, allocations: 63.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3541, allocations: 60.82 MB / 0.5184 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01726/0.3714, allocations: 15.04 MB / 0.5331 GB, free: 8.484 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.3834, allocations: 4.815 MB / 0.5378 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002743/0.3862, allocations: 93.16 kB / 0.5379 GB, free: 4.699 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006429/0.3926, allocations: 3.16 MB / 0.541 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006873/0.3995, allocations: 2.547 MB / 0.5435 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002483/0.402, allocations: 0.9849 MB / 0.5444 GB, free: 112 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01078/0.4128, allocations: 6.972 MB / 0.5512 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00632/0.4192, allocations: 4.381 MB / 0.5555 GB, free: 5.938 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005461/0.4247, allocations: 2.227 MB / 0.5577 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006385/0.4311, allocations: 3.252 MB / 0.5609 GB, free: 452 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001991/0.4331, allocations: 488 kB / 0.5613 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004263/0.4374, allocations: 1.502 MB / 0.5628 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003629/0.4411, allocations: 2.86 MB / 0.5656 GB, free: 11.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005449/0.4465, allocations: 3.316 MB / 0.5688 GB, free: 8.258 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01555/0.4621, allocations: 10.64 MB / 0.5792 GB, free: 13.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.4622, allocations: 0 / 0.5792 GB, free: 13.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4622, allocations: 4 kB / 0.5792 GB, free: 13.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000393/0.4626, allocations: 0 / 0.5792 GB, free: 13.57 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.0189/0.4815, allocations: 7.693 MB / 0.5867 GB, free: 5.785 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4816, allocations: 8.031 kB / 0.5867 GB, free: 5.777 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002481/0.484, allocations: 1.137 MB / 0.5879 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04412/0.5282, allocations: 7.505 MB / 0.5952 GB, free: 13.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01204/0.5402, allocations: 4.936 MB / 0.6 GB, free: 8.105 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003666/0.5407, allocations: 320.2 kB / 0.6003 GB, free: 7.789 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.5426, allocations: 439.7 kB / 0.6007 GB, free: 7.359 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02925/0.5718, allocations: 15.63 MB / 0.616 GB, free: 6.801 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001831/0.572, allocations: 59.52 kB / 0.6161 GB, free: 6.742 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007675/0.5728, allocations: 203.8 kB / 0.6162 GB, free: 6.543 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005407/0.5782, allocations: 3.22 MB / 0.6194 GB, free: 3.32 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03019/0.6085, allocations: 13.95 MB / 0.633 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08056/0.6891, allocations: 57.2 MB / 0.6889 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01488/0.704, allocations: 6.511 MB / 0.6952 GB, free: 3.832 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005709/0.7098, allocations: 3.628 MB / 0.6988 GB, free: 200 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02302/0.7328, allocations: 14.43 MB / 0.7129 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.685e-05/0.7329, allocations: 64.56 kB / 0.7129 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 5.61e-06/0.7329, allocations: 0 / 0.7129 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.3918/1.125, allocations: 42.1 MB / 0.754 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.325e-05/1.125, allocations: 210 kB / 0.7542 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006399/1.131, allocations: 5.5 MB / 0.7596 GB, free: 145 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008489/1.132, allocations: 76.44 kB / 0.7597 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00236/1.135, allocations: 4.581 MB / 0.7642 GB, free: 140.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.136, allocations: 1.314 MB / 0.7654 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002436/1.138, allocations: 1.793 MB / 0.7672 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.808e-05/1.138, allocations: 309.1 kB / 0.7675 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005747/1.144, allocations: 4.644 MB / 0.772 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008756/1.153, allocations: 9.615 MB / 0.7814 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0141/1.167, allocations: 15.3 MB / 0.7963 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001156/1.167, allocations: 48 kB / 0.7964 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.03853/1.206, allocations: 19.03 MB / 0.815 GB, free: 83.79 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/1.206, allocations: 76 kB / 0.815 GB, free: 83.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000169/1.206, allocations: 176 kB / 0.8152 GB, free: 83.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02126/1.227, allocations: 5.769 MB / 0.8209 GB, free: 77.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00696/1.234, allocations: 2.074 MB / 0.8229 GB, free: 75.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02664/1.261, allocations: 25.67 MB / 0.8479 GB, free: 49.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007491/1.269, allocations: 0.5462 MB / 0.8485 GB, free: 49.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/1.27, allocations: 0.5078 MB / 0.849 GB, free: 48.68 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.00477/1.275, allocations: 3.086 MB / 0.852 GB, free: 45.58 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/1.276, allocations: 0.5238 MB / 0.8525 GB, free: 45.05 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02784/1.304, allocations: 12.68 MB / 0.8649 GB, free: 32.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.132e-05/1.304, allocations: 54.97 kB / 0.8649 GB, free: 32.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-05/1.304, allocations: 8 kB / 0.8649 GB, free: 32.25 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.042e-05/1.304, allocations: 19.94 kB / 0.865 GB, free: 32.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04417/1.348, allocations: 24.31 MB / 0.8887 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.414e-05/1.348, allocations: 11.83 kB / 0.8887 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/1.351, allocations: 0.5855 MB / 0.8893 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01848/1.37, allocations: 4.81 MB / 0.894 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006377/1.37, allocations: 59.52 kB / 0.894 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02982/1.4, allocations: 20.89 MB / 0.9144 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.307e-05/1.4, allocations: 11.94 kB / 0.9145 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03827/1.439, allocations: 17.14 MB / 0.9312 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/1.44, allocations: 0.5598 MB / 0.9317 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/1.441, allocations: 52 kB / 0.9318 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002894/1.444, allocations: 255.6 kB / 0.932 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007401/1.445, allocations: 197.7 kB / 0.9322 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000289/1.445, allocations: 87.94 kB / 0.9323 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.005328/1.45, allocations: 3.42 MB / 0.9356 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/1.45, allocations: 0 / 0.9356 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00685/1.457, allocations: 1.714 MB / 0.9373 GB, free: 5.207 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.3191/1.776, allocations: 17.81 MB / 0.9547 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01878/1.795, allocations: 10.7 MB / 0.9652 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/1.795, allocations: 0 / 0.9652 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.007375/1.803, allocations: 4.057 MB / 0.9691 GB, free: 187.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005871/1.809, allocations: 0.6492 MB / 0.9697 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1383/1.947, allocations: 86.38 MB / 1.054 GB, free: 103.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004887/1.952, allocations: 4.615 MB / 1.059 GB, free: 99.23 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005697/1.958, allocations: 2.991 MB / 1.062 GB, free: 96.24 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00338/1.961, allocations: 2.921 MB / 1.064 GB, free: 93.32 MB / 0.6075 GB Notification: Performance of SimCode: time 8.21e-07/1.961, allocations: 0 / 1.064 GB, free: 93.32 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.451/2.412, allocations: 125.7 MB / 1.187 GB, free: 204.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.85/44.26, allocations: 1.5 kB / 1.187 GB, free: 204.6 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