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.001589/0.001589, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001797/0.001797, allocations: 204.6 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2269/0.2269, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 71.88 kB / 480.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3845, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01802/0.4026, allocations: 15.98 MB / 0.5461 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.4152, allocations: 5.448 MB / 0.5514 GB, free: 12.31 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00415/0.4194, allocations: 115.6 kB / 0.5515 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009333/0.4287, allocations: 5.113 MB / 0.5565 GB, free: 7.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007702/0.4365, allocations: 2.587 MB / 0.5591 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003535/0.44, allocations: 1.384 MB / 0.5604 GB, free: 3.086 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01366/0.4537, allocations: 8.248 MB / 0.5685 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01015/0.4639, allocations: 7.024 MB / 0.5753 GB, free: 3.711 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005183/0.4691, allocations: 2.761 MB / 0.578 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005976/0.4751, allocations: 3.759 MB / 0.5817 GB, free: 13.17 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002056/0.4772, allocations: 0.6328 MB / 0.5823 GB, free: 12.54 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005023/0.4823, allocations: 1.768 MB / 0.584 GB, free: 10.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004968/0.4873, allocations: 3.359 MB / 0.5873 GB, free: 7.402 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006824/0.4941, allocations: 3.792 MB / 0.591 GB, free: 3.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01619/0.5103, allocations: 12.14 MB / 0.6029 GB, free: 7.402 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.5104, allocations: 0 / 0.6029 GB, free: 7.402 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5104, allocations: 3.844 kB / 0.6029 GB, free: 7.402 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005261/0.5109, allocations: 0 / 0.6029 GB, free: 7.402 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.02711/0.5381, allocations: 8.17 MB / 0.6109 GB, free: 15.15 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/0.5381, allocations: 8.031 kB / 0.6109 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003638/0.5418, allocations: 1.156 MB / 0.612 GB, free: 13.97 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05656/0.5984, allocations: 8.366 MB / 0.6202 GB, free: 5.586 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0141/0.6125, allocations: 5.865 MB / 0.6259 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004464/0.613, allocations: 382 kB / 0.6263 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00234/0.6154, allocations: 0.5113 MB / 0.6268 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0352/0.6506, allocations: 15.41 MB / 0.6418 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004059/0.651, allocations: 63.44 kB / 0.6419 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00202/0.6531, allocations: 243.8 kB / 0.6421 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004298/0.6574, allocations: 2.54 MB / 0.6446 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02889/0.6863, allocations: 12.89 MB / 0.6572 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08602/0.7724, allocations: 56.91 MB / 0.7127 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3356/1.108, allocations: 6.308 MB / 0.7189 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004155/1.112, allocations: 3.315 MB / 0.7221 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01754/1.13, allocations: 11.37 MB / 0.7332 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.13, allocations: 62.12 kB / 0.7333 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 5.019e-06/1.13, allocations: 0 / 0.7333 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1221/1.252, allocations: 39.51 MB / 0.7719 GB, free: 123.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.194e-05/1.252, allocations: 247.8 kB / 0.7721 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007593/1.26, allocations: 5.725 MB / 0.7777 GB, free: 117.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009592/1.261, allocations: 85.64 kB / 0.7778 GB, free: 117 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002168/1.263, allocations: 4.445 MB / 0.7821 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00117/1.264, allocations: 1.231 MB / 0.7833 GB, free: 111.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001901/1.266, allocations: 1.63 MB / 0.7849 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.24e-05/1.266, allocations: 305.1 kB / 0.7852 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004147/1.27, allocations: 3.772 MB / 0.7889 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005537/1.276, allocations: 8.306 MB / 0.797 GB, free: 95.11 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/1.287, allocations: 13.01 MB / 0.8097 GB, free: 79.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.933e-05/1.287, allocations: 44 kB / 0.8098 GB, free: 79.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02744/1.315, allocations: 15.47 MB / 0.8249 GB, free: 64.29 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.03e-05/1.315, allocations: 72 kB / 0.8249 GB, free: 64.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001441/1.315, allocations: 156 kB / 0.8251 GB, free: 64.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01171/1.327, allocations: 4.1 MB / 0.8291 GB, free: 59.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005353/1.332, allocations: 1.797 MB / 0.8308 GB, free: 58.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02441/1.357, allocations: 20.93 MB / 0.8513 GB, free: 37.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006002/1.363, allocations: 0.4953 MB / 0.8518 GB, free: 36.61 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008476/1.363, allocations: 464 kB / 0.8522 GB, free: 36.16 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.003931/1.367, allocations: 3.122 MB / 0.8553 GB, free: 33.02 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000876/1.368, allocations: 0.5207 MB / 0.8558 GB, free: 32.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01708/1.385, allocations: 9.618 MB / 0.8652 GB, free: 22.81 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.916e-05/1.385, allocations: 32 kB / 0.8652 GB, free: 22.78 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.989e-05/1.385, allocations: 19.28 kB / 0.8652 GB, free: 22.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.029e-05/1.386, allocations: 15.94 kB / 0.8652 GB, free: 22.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03559/1.421, allocations: 19.63 MB / 0.8844 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.264e-05/1.421, allocations: 4.094 kB / 0.8844 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00226/1.423, allocations: 499.3 kB / 0.8849 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0116/1.435, allocations: 3.653 MB / 0.8884 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006232/1.436, allocations: 68 kB / 0.8885 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02707/1.463, allocations: 18.43 MB / 0.9065 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/1.463, allocations: 11.94 kB / 0.9065 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02872/1.492, allocations: 14.21 MB / 0.9204 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/1.493, allocations: 0.5722 MB / 0.9209 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001694/1.495, allocations: 59.91 kB / 0.921 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003654/1.499, allocations: 227.7 kB / 0.9212 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/1.5, allocations: 226.2 kB / 0.9214 GB, free: 12.67 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004983/1.5, allocations: 84 kB / 0.9215 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006766/1.507, allocations: 3.643 MB / 0.9251 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.41e-07/1.507, allocations: 0 / 0.9251 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008192/1.515, allocations: 1.677 MB / 0.9267 GB, free: 7.305 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.02882/1.544, allocations: 14.98 MB / 0.9413 GB, free: 8.133 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01607/1.56, allocations: 9.259 MB / 0.9504 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.56, allocations: 8.062 kB / 0.9504 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.287/1.847, allocations: 3.642 MB / 0.9539 GB, free: 231.3 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004765/1.852, allocations: 0.7771 MB / 0.9547 GB, free: 231.2 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1245/1.977, allocations: 78.34 MB / 1.031 GB, free: 163 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007612/1.984, allocations: 4.822 MB / 1.036 GB, free: 158.1 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.006251/1.991, allocations: 2.586 MB / 1.038 GB, free: 155.5 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004388/1.995, allocations: 3.065 MB / 1.041 GB, free: 152.5 MB / 0.6387 GB Notification: Performance of SimCode: time 1.212e-06/1.995, allocations: 0 / 1.041 GB, free: 152.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1707/2.166, allocations: 130.1 MB / 1.168 GB, free: 22.97 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.28/40.45, allocations: 7.875 kB / 1.168 GB, free: 22.96 MB / 0.6387 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