Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001626/0.001626, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002262/0.002262, allocations: 197.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3684, allocations: 62.42 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01819/0.3866, allocations: 15.98 MB / 0.5461 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01359/0.4003, allocations: 5.447 MB / 0.5514 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003692/0.404, allocations: 115.6 kB / 0.5515 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0132/0.4173, allocations: 5.113 MB / 0.5565 GB, free: 7.059 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.4284, allocations: 2.579 MB / 0.559 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.4324, allocations: 1.392 MB / 0.5604 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01651/0.4489, allocations: 8.252 MB / 0.5685 GB, free: 10.81 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01406/0.463, allocations: 7.028 MB / 0.5753 GB, free: 3.691 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006608/0.4697, allocations: 2.765 MB / 0.578 GB, free: 0.918 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006771/0.4765, allocations: 3.747 MB / 0.5817 GB, free: 13.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002232/0.4788, allocations: 0.6367 MB / 0.5823 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004914/0.4837, allocations: 1.775 MB / 0.584 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004943/0.4887, allocations: 3.355 MB / 0.5873 GB, free: 7.383 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008736/0.4974, allocations: 3.78 MB / 0.591 GB, free: 3.582 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01698/0.5145, allocations: 12.14 MB / 0.6029 GB, free: 7.398 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.5145, allocations: 0 / 0.6029 GB, free: 7.398 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.5145, allocations: 0 / 0.6029 GB, free: 7.398 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000443/0.515, allocations: 3.938 kB / 0.6029 GB, free: 7.395 MB / 462.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.02208/0.5371, allocations: 8.174 MB / 0.6108 GB, free: 15.14 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.5371, allocations: 8.031 kB / 0.6109 GB, free: 15.13 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003184/0.5403, allocations: 1.156 MB / 0.612 GB, free: 13.96 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05118/0.5915, allocations: 8.366 MB / 0.6202 GB, free: 5.578 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01434/0.6059, allocations: 5.873 MB / 0.6259 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004394/0.6064, allocations: 386 kB / 0.6263 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002492/0.6089, allocations: 0.5074 MB / 0.6268 GB, free: 14.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0289/0.6378, allocations: 15.41 MB / 0.6418 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001931/0.638, allocations: 71.36 kB / 0.6419 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007946/0.6388, allocations: 235.8 kB / 0.6421 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003626/0.6425, allocations: 2.548 MB / 0.6446 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02585/0.6683, allocations: 12.88 MB / 0.6572 GB, free: 14.67 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08032/0.7487, allocations: 56.92 MB / 0.7127 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3082/1.057, allocations: 6.305 MB / 0.7189 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004205/1.061, allocations: 3.32 MB / 0.7221 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01598/1.077, allocations: 11.37 MB / 0.7332 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/1.077, allocations: 57.47 kB / 0.7333 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 7.144e-06/1.077, allocations: 0 / 0.7333 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1201/1.197, allocations: 39.52 MB / 0.7719 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/1.198, allocations: 239.9 kB / 0.7721 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0066/1.204, allocations: 5.729 MB / 0.7777 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006845/1.205, allocations: 81.64 kB / 0.7778 GB, free: 117 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002272/1.207, allocations: 4.445 MB / 0.7821 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001266/1.208, allocations: 1.238 MB / 0.7833 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001894/1.21, allocations: 1.634 MB / 0.7849 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.221e-05/1.21, allocations: 301.1 kB / 0.7852 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004216/1.215, allocations: 3.772 MB / 0.7889 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006371/1.221, allocations: 8.306 MB / 0.797 GB, free: 95.09 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/1.233, allocations: 13.01 MB / 0.8097 GB, free: 79.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/1.234, allocations: 44 kB / 0.8098 GB, free: 79.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02778/1.261, allocations: 15.46 MB / 0.8249 GB, free: 64.28 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.129e-05/1.262, allocations: 72.19 kB / 0.8249 GB, free: 64.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001491/1.262, allocations: 168 kB / 0.8251 GB, free: 64.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/1.274, allocations: 4.104 MB / 0.8291 GB, free: 59.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005522/1.279, allocations: 1.797 MB / 0.8309 GB, free: 58.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02475/1.304, allocations: 20.92 MB / 0.8513 GB, free: 37.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009387/1.313, allocations: 495.3 kB / 0.8518 GB, free: 36.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001875/1.315, allocations: 475.7 kB / 0.8522 GB, free: 36.13 MB / 0.5606 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.00566/1.321, allocations: 3.115 MB / 0.8553 GB, free: 33 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001197/1.322, allocations: 0.5245 MB / 0.8558 GB, free: 32.47 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01759/1.34, allocations: 9.615 MB / 0.8652 GB, free: 22.79 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.322e-05/1.34, allocations: 32 kB / 0.8652 GB, free: 22.76 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.143e-05/1.34, allocations: 16 kB / 0.8652 GB, free: 22.74 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.29e-05/1.34, allocations: 11.95 kB / 0.8652 GB, free: 22.73 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03317/1.373, allocations: 19.64 MB / 0.8844 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.18e-05/1.373, allocations: 4 kB / 0.8844 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002179/1.375, allocations: 496 kB / 0.8849 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01151/1.387, allocations: 3.653 MB / 0.8884 GB, free: 14.8 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006132/1.388, allocations: 67.98 kB / 0.8885 GB, free: 14.73 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02722/1.415, allocations: 18.43 MB / 0.9065 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.595e-06/1.415, allocations: 7.938 kB / 0.9065 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02676/1.442, allocations: 14.21 MB / 0.9204 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/1.444, allocations: 0.5683 MB / 0.9209 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001809/1.445, allocations: 63.52 kB / 0.921 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003135/1.449, allocations: 231.7 kB / 0.9212 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007287/1.449, allocations: 218.2 kB / 0.9214 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002589/1.45, allocations: 90.62 kB / 0.9215 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006448/1.456, allocations: 3.646 MB / 0.9251 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.91e-07/1.456, allocations: 0 / 0.9251 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008894/1.465, allocations: 1.673 MB / 0.9267 GB, free: 7.281 MB / 0.6075 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.02811/1.493, allocations: 14.97 MB / 0.9413 GB, free: 8.121 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01566/1.509, allocations: 9.266 MB / 0.9504 GB, free: 14.85 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/1.509, allocations: 4 kB / 0.9504 GB, free: 14.84 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.2688/1.778, allocations: 3.648 MB / 0.9539 GB, free: 231.1 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004396/1.782, allocations: 0.7787 MB / 0.9547 GB, free: 231.1 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1098/1.892, allocations: 78.34 MB / 1.031 GB, free: 162.9 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005115/1.897, allocations: 4.826 MB / 1.036 GB, free: 158 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.00527/1.902, allocations: 2.586 MB / 1.038 GB, free: 155.4 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003276/1.906, allocations: 3.069 MB / 1.041 GB, free: 152.4 MB / 0.6388 GB Notification: Performance of SimCode: time 1.182e-06/1.906, allocations: 0 / 1.041 GB, free: 152.4 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1715/2.077, allocations: 130.1 MB / 1.168 GB, free: 22.86 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.03/40.11, allocations: 11.94 kB / 1.168 GB, free: 22.85 MB / 0.6388 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches