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.001338/0.001338, allocations: 113.1 kB / 17.33 MB, free: 6.008 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.001461/0.001461, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.399/1.399, allocations: 222.9 MB / 241.9 MB, free: 13.75 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.2151/0.2151, allocations: 44.18 MB / 336.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 64.48 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1383, allocations: 60.83 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3944/0.5327, allocations: 68.4 MB / 0.5246 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03723/0.57, allocations: 14.14 MB / 0.5384 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01831/0.5884, allocations: 311.7 kB / 0.5387 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008744/0.5972, allocations: 4.96 MB / 0.5436 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007956/0.6052, allocations: 2.442 MB / 0.546 GB, free: 1.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003323/0.6086, allocations: 1.309 MB / 0.5473 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01232/0.6209, allocations: 8.668 MB / 0.5557 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009849/0.6308, allocations: 7.391 MB / 0.5629 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005645/0.6365, allocations: 2.835 MB / 0.5657 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006361/0.6429, allocations: 4.137 MB / 0.5697 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002/0.6449, allocations: 0.6367 MB / 0.5704 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004632/0.6496, allocations: 1.806 MB / 0.5721 GB, free: 10.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005005/0.6546, allocations: 3.382 MB / 0.5754 GB, free: 7.375 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006075/0.6607, allocations: 3.831 MB / 0.5792 GB, free: 3.523 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.6759, allocations: 11.97 MB / 0.5909 GB, free: 7.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.6759, allocations: 4 kB / 0.5909 GB, free: 7.516 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.6759, allocations: 0 / 0.5909 GB, free: 7.516 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004121/0.6764, allocations: 0 / 0.5909 GB, free: 7.516 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.02457/0.7009, allocations: 8.193 MB / 0.5989 GB, free: 15.24 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.732e-05/0.701, allocations: 8.031 kB / 0.5989 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003257/0.7043, allocations: 1.156 MB / 0.6 GB, free: 14.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05582/0.7601, allocations: 8.358 MB / 0.6082 GB, free: 5.684 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01371/0.7739, allocations: 6.088 MB / 0.6141 GB, free: 15.51 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003082/0.7742, allocations: 382.1 kB / 0.6145 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.7759, allocations: 0.5151 MB / 0.615 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03046/0.8064, allocations: 15.41 MB / 0.63 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002374/0.8066, allocations: 75.34 kB / 0.6301 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008274/0.8075, allocations: 231.8 kB / 0.6303 GB, free: 14.02 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003971/0.8115, allocations: 2.544 MB / 0.6328 GB, free: 11.47 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02816/0.8396, allocations: 12.87 MB / 0.6454 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08732/0.927, allocations: 57.2 MB / 0.7012 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2868/1.214, allocations: 6.304 MB / 0.7074 GB, free: 187.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005551/1.219, allocations: 3.316 MB / 0.7106 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02075/1.24, allocations: 11.27 MB / 0.7216 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/1.24, allocations: 62.16 kB / 0.7217 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 6.141e-06/1.24, allocations: 0 / 0.7217 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1259/1.366, allocations: 39.9 MB / 0.7607 GB, free: 155 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/1.366, allocations: 243.9 kB / 0.7609 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0063/1.373, allocations: 5.737 MB / 0.7665 GB, free: 149 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006149/1.373, allocations: 77.7 kB / 0.7666 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001963/1.375, allocations: 4.45 MB / 0.7709 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001268/1.377, allocations: 1.234 MB / 0.7721 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001847/1.378, allocations: 1.627 MB / 0.7737 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.727e-05/1.378, allocations: 309.1 kB / 0.774 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004127/1.383, allocations: 3.768 MB / 0.7777 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005669/1.388, allocations: 8.298 MB / 0.7858 GB, free: 127 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/1.4, allocations: 13.01 MB / 0.7985 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.371e-05/1.4, allocations: 48 kB / 0.7985 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02774/1.428, allocations: 15.47 MB / 0.8136 GB, free: 96.16 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/1.428, allocations: 72 kB / 0.8137 GB, free: 96.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/1.428, allocations: 156 kB / 0.8139 GB, free: 95.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01249/1.44, allocations: 4.108 MB / 0.8179 GB, free: 91.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006172/1.447, allocations: 1.797 MB / 0.8196 GB, free: 90.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02721/1.474, allocations: 20.93 MB / 0.8401 GB, free: 68.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007702/1.482, allocations: 495.2 kB / 0.8405 GB, free: 68.47 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001804/1.483, allocations: 470.2 kB / 0.841 GB, free: 68.01 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.005514/1.489, allocations: 3.119 MB / 0.844 GB, free: 64.88 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/1.49, allocations: 0.5245 MB / 0.8445 GB, free: 64.35 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01803/1.508, allocations: 9.618 MB / 0.8539 GB, free: 54.67 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.138e-05/1.508, allocations: 36 kB / 0.854 GB, free: 54.63 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.587e-05/1.508, allocations: 12 kB / 0.854 GB, free: 54.62 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-05/1.508, allocations: 19.94 kB / 0.854 GB, free: 54.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03508/1.543, allocations: 19.73 MB / 0.8733 GB, free: 34.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.14e-05/1.544, allocations: 7.938 kB / 0.8733 GB, free: 34.71 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002396/1.546, allocations: 499.3 kB / 0.8737 GB, free: 34.22 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01146/1.557, allocations: 3.665 MB / 0.8773 GB, free: 30.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008952/1.558, allocations: 63.98 kB / 0.8774 GB, free: 30.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02235/1.581, allocations: 18.43 MB / 0.8954 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/1.581, allocations: 11.94 kB / 0.8954 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3795/1.96, allocations: 14.2 MB / 0.9093 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/1.962, allocations: 0.5654 MB / 0.9098 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000936/1.963, allocations: 64.33 kB / 0.9099 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002729/1.966, allocations: 223.8 kB / 0.9101 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008708/1.967, allocations: 221.7 kB / 0.9103 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003041/1.967, allocations: 92.84 kB / 0.9104 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007918/1.975, allocations: 3.647 MB / 0.9139 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.975, allocations: 0 / 0.9139 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0112/1.986, allocations: 1.703 MB / 0.9156 GB, free: 165.2 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.02458/2.011, allocations: 14.97 MB / 0.9302 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02077/2.032, allocations: 12.61 MB / 0.9425 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/2.032, allocations: 4 kB / 0.9425 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004924/2.037, allocations: 3.632 MB / 0.9461 GB, free: 150.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005383/2.042, allocations: 0.7739 MB / 0.9468 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1578/2.2, allocations: 96.11 MB / 1.041 GB, free: 45.74 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01033/2.21, allocations: 4.826 MB / 1.045 GB, free: 40.88 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00835/2.219, allocations: 2.601 MB / 1.048 GB, free: 38.27 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004939/2.224, allocations: 3.065 MB / 1.051 GB, free: 35.2 MB / 0.5294 GB Notification: Performance of SimCode: time 8.61e-07/2.224, allocations: 0 / 1.051 GB, free: 35.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4695/2.693, allocations: 132.9 MB / 1.181 GB, free: 127.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/2.693, allocations: 226.5 kB / 1.181 GB, free: 127.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.511/8.205, allocations: 64 / 1.181 GB, free: 127.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