Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.00148/0.00148, allocations: 107.4 kB / 17.2 MB, free: 6.273 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.001754/0.001755, allocations: 194 kB / 18.12 MB, free: 5.363 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.499/1.499, allocations: 222.9 MB / 241.8 MB, free: 15.5 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.2152/0.2152, allocations: 44.18 MB / 336.1 MB, free: 3.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 65.12 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1465, allocations: 60.81 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3814/0.5279, allocations: 68.41 MB / 0.5244 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03736/0.5653, allocations: 14.27 MB / 0.5384 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0203/0.5857, allocations: 305.9 kB / 0.5387 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009463/0.5952, allocations: 5.14 MB / 0.5437 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008263/0.6035, allocations: 2.473 MB / 0.5461 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004379/0.6079, allocations: 1.278 MB / 0.5474 GB, free: 492 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01581/0.6238, allocations: 11.64 MB / 0.5587 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01029/0.6341, allocations: 6.885 MB / 0.5654 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005302/0.6394, allocations: 2.441 MB / 0.5678 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006674/0.6461, allocations: 3.957 MB / 0.5717 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002405/0.6485, allocations: 431.9 kB / 0.5721 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005381/0.6539, allocations: 1.67 MB / 0.5737 GB, free: 9.039 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005508/0.6595, allocations: 3.16 MB / 0.5768 GB, free: 5.871 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008166/0.6677, allocations: 3.573 MB / 0.5803 GB, free: 2.277 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01928/0.687, allocations: 11.73 MB / 0.5918 GB, free: 6.508 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.687, allocations: 0 / 0.5918 GB, free: 6.508 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.687, allocations: 4 kB / 0.5918 GB, free: 6.504 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000584/0.6876, allocations: 0 / 0.5918 GB, free: 6.504 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02964/0.7173, allocations: 8.185 MB / 0.5998 GB, free: 14.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.7174, allocations: 19.97 kB / 0.5998 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003923/0.7213, allocations: 1.156 MB / 0.6009 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05267/0.774, allocations: 8.362 MB / 0.6091 GB, free: 4.664 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.7896, allocations: 6.08 MB / 0.615 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000484/0.7901, allocations: 378.2 kB / 0.6154 GB, free: 14.13 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002653/0.7928, allocations: 0.5229 MB / 0.6159 GB, free: 13.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03901/0.8318, allocations: 15.41 MB / 0.6309 GB, free: 13.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003893/0.8322, allocations: 71.42 kB / 0.631 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002444/0.8347, allocations: 231.8 kB / 0.6312 GB, free: 13.01 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004541/0.8393, allocations: 2.544 MB / 0.6337 GB, free: 10.46 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03229/0.8716, allocations: 12.88 MB / 0.6463 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09699/0.9686, allocations: 57.18 MB / 0.7021 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2954/1.264, allocations: 6.301 MB / 0.7083 GB, free: 187.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005704/1.27, allocations: 3.32 MB / 0.7115 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02338/1.293, allocations: 11.28 MB / 0.7225 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.638e-05/1.293, allocations: 64.98 kB / 0.7226 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.561e-06/1.293, allocations: 0 / 0.7226 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1325/1.426, allocations: 39.9 MB / 0.7616 GB, free: 154 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/1.426, allocations: 243.8 kB / 0.7618 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009552/1.436, allocations: 5.741 MB / 0.7674 GB, free: 147.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009817/1.437, allocations: 73.7 kB / 0.7675 GB, free: 147.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002475/1.439, allocations: 4.448 MB / 0.7718 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001534/1.441, allocations: 1.239 MB / 0.773 GB, free: 142.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002109/1.443, allocations: 1.627 MB / 0.7746 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.196e-05/1.443, allocations: 301.1 kB / 0.7749 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004425/1.447, allocations: 3.768 MB / 0.7786 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006311/1.454, allocations: 8.306 MB / 0.7867 GB, free: 125.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/1.467, allocations: 13.01 MB / 0.7994 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000148/1.467, allocations: 49.78 kB / 0.7994 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03007/1.497, allocations: 15.45 MB / 0.8145 GB, free: 95.14 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001733/1.497, allocations: 76.06 kB / 0.8146 GB, free: 95.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002528/1.497, allocations: 156 kB / 0.8148 GB, free: 94.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01285/1.51, allocations: 4.103 MB / 0.8188 GB, free: 90.81 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00607/1.516, allocations: 1.797 MB / 0.8205 GB, free: 89.01 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02661/1.543, allocations: 19.59 MB / 0.8397 GB, free: 69.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007294/1.55, allocations: 495.2 kB / 0.8401 GB, free: 68.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001601/1.552, allocations: 472 kB / 0.8406 GB, free: 68.34 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (966): * Single equations (assignments): 962 * Array equations: 3 * 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 {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005965/1.558, allocations: 3.12 MB / 0.8436 GB, free: 65.21 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001451/1.559, allocations: 0.5207 MB / 0.8441 GB, free: 64.68 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0191/1.579, allocations: 9.611 MB / 0.8535 GB, free: 55.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.979e-05/1.579, allocations: 39.52 kB / 0.8536 GB, free: 54.97 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-05/1.579, allocations: 16 kB / 0.8536 GB, free: 54.96 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.959e-05/1.579, allocations: 23.94 kB / 0.8536 GB, free: 54.93 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04077/1.62, allocations: 19.73 MB / 0.8729 GB, free: 35.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.06e-05/1.62, allocations: 8 kB / 0.8729 GB, free: 35.04 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002279/1.622, allocations: 497.2 kB / 0.8733 GB, free: 34.55 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01178/1.634, allocations: 3.654 MB / 0.8769 GB, free: 30.89 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007592/1.634, allocations: 63.98 kB / 0.877 GB, free: 30.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02265/1.657, allocations: 17.15 MB / 0.8937 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.657, allocations: 8 kB / 0.8937 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2568/1.914, allocations: 14.21 MB / 0.9076 GB, free: 167 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001983/1.916, allocations: 0.5674 MB / 0.9082 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0016/1.918, allocations: 63.77 kB / 0.9082 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00318/1.921, allocations: 223 kB / 0.9084 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008942/1.922, allocations: 224.5 kB / 0.9086 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002894/1.922, allocations: 98.3 kB / 0.9087 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006026/1.928, allocations: 3.649 MB / 0.9123 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.31e-07/1.928, allocations: 2 kB / 0.9123 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008718/1.937, allocations: 1.699 MB / 0.914 GB, free: 165.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (revolute.phi,revolute.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 (256): * Single equations (assignments): 252 * Array equations: 3 * 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 {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02491/1.962, allocations: 14.96 MB / 0.9286 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01282/1.975, allocations: 9.214 MB / 0.9376 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/1.975, allocations: 0 / 0.9376 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00493/1.98, allocations: 3.637 MB / 0.9411 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004723/1.984, allocations: 0.7298 MB / 0.9418 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1345/2.119, allocations: 96.12 MB / 1.036 GB, free: 50.67 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005691/2.125, allocations: 4.822 MB / 1.04 GB, free: 45.81 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006271/2.131, allocations: 2.596 MB / 1.043 GB, free: 43.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003728/2.135, allocations: 3.065 MB / 1.046 GB, free: 40.14 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/2.135, allocations: 0 / 1.046 GB, free: 40.14 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8978/3.032, allocations: 130 MB / 1.173 GB, free: 136.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/3.033, allocations: 232 kB / 1.173 GB, free: 136.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.556/8.589, allocations: 4 kB / 1.173 GB, free: 136.2 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches