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.001436/0.001436, allocations: 108.7 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 205.8 kB / 18.26 MB, free: 5.074 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.4 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2518/0.2518, allocations: 46.1 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 75.42 kB / 417.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1543, allocations: 62.45 MB / 479.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3634/0.5178, allocations: 67.96 MB / 0.5347 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04126/0.5591, allocations: 13.96 MB / 0.5484 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01982/0.579, allocations: 305.8 kB / 0.5486 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01091/0.59, allocations: 4.938 MB / 0.5535 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008394/0.5984, allocations: 2.423 MB / 0.5558 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003818/0.6023, allocations: 1.306 MB / 0.5571 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01342/0.6157, allocations: 8.814 MB / 0.5657 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01198/0.6277, allocations: 7.381 MB / 0.5729 GB, free: 7.543 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005959/0.6337, allocations: 2.827 MB / 0.5757 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007245/0.641, allocations: 4.133 MB / 0.5797 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002681/0.6437, allocations: 0.6406 MB / 0.5804 GB, free: 15.92 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005736/0.6495, allocations: 1.779 MB / 0.5821 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0086/0.6582, allocations: 3.375 MB / 0.5854 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01114/0.6693, allocations: 3.808 MB / 0.5891 GB, free: 6.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0215/0.6909, allocations: 11.91 MB / 0.6007 GB, free: 10.99 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.691, allocations: 3.938 kB / 0.6007 GB, free: 10.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.691, allocations: 0 / 0.6007 GB, free: 10.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005979/0.6916, allocations: 0 / 0.6007 GB, free: 10.98 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02953/0.7211, allocations: 8.162 MB / 0.6087 GB, free: 2.738 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.7212, allocations: 12.02 kB / 0.6087 GB, free: 2.727 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003707/0.7249, allocations: 1.156 MB / 0.6098 GB, free: 1.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05582/0.7808, allocations: 8.366 MB / 0.618 GB, free: 9.164 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0135/0.7943, allocations: 5.76 MB / 0.6236 GB, free: 3.324 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003737/0.7947, allocations: 382.2 kB / 0.624 GB, free: 2.949 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00202/0.7967, allocations: 0.5113 MB / 0.6245 GB, free: 2.438 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03521/0.832, allocations: 15.41 MB / 0.6396 GB, free: 2.125 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005127/0.8325, allocations: 63.44 kB / 0.6396 GB, free: 2.062 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002554/0.8351, allocations: 235.8 kB / 0.6398 GB, free: 1.832 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004583/0.8397, allocations: 2.548 MB / 0.6423 GB, free: 15.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0302/0.8699, allocations: 12.89 MB / 0.6549 GB, free: 2.371 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09914/0.9691, allocations: 57.18 MB / 0.7107 GB, free: 7.605 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01883/0.988, allocations: 6.318 MB / 0.7169 GB, free: 1.141 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3024/1.29, allocations: 3.32 MB / 0.7202 GB, free: 195 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02123/1.312, allocations: 11.36 MB / 0.7313 GB, free: 189.4 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.622e-05/1.312, allocations: 64.19 kB / 0.7313 GB, free: 189.4 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 6.001e-06/1.312, allocations: 1.125 kB / 0.7313 GB, free: 189.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=338): time 0.1382/1.45, allocations: 39.49 MB / 0.7699 GB, free: 167.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/1.45, allocations: 239.8 kB / 0.7701 GB, free: 167.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01147/1.462, allocations: 5.737 MB / 0.7757 GB, free: 161.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001027/1.463, allocations: 77.7 kB / 0.7758 GB, free: 161.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002899/1.466, allocations: 4.452 MB / 0.7801 GB, free: 157 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001809/1.467, allocations: 1.23 MB / 0.7813 GB, free: 155.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002355/1.47, allocations: 1.627 MB / 0.7829 GB, free: 154.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.703e-05/1.47, allocations: 301.1 kB / 0.7832 GB, free: 153.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004618/1.475, allocations: 3.778 MB / 0.7869 GB, free: 150.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006551/1.481, allocations: 8.305 MB / 0.795 GB, free: 139.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01254/1.494, allocations: 13.01 MB / 0.8077 GB, free: 124.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001596/1.494, allocations: 44 kB / 0.8078 GB, free: 124.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02906/1.523, allocations: 15.47 MB / 0.8229 GB, free: 108.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001728/1.523, allocations: 75.94 kB / 0.8229 GB, free: 108.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002524/1.523, allocations: 156 kB / 0.8231 GB, free: 108.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01229/1.536, allocations: 4.115 MB / 0.8271 GB, free: 104.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005923/1.542, allocations: 1.805 MB / 0.8289 GB, free: 102.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0289/1.571, allocations: 20.93 MB / 0.8493 GB, free: 81.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007266/1.578, allocations: 495.2 kB / 0.8498 GB, free: 81.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001818/1.58, allocations: 476 kB / 0.8502 GB, free: 80.59 MB / 0.545 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.006982/1.587, allocations: 3.115 MB / 0.8533 GB, free: 77.47 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/1.589, allocations: 0.5245 MB / 0.8538 GB, free: 76.94 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02196/1.611, allocations: 9.614 MB / 0.8632 GB, free: 67.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.217e-05/1.611, allocations: 36 kB / 0.8632 GB, free: 67.23 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-05/1.611, allocations: 16 kB / 0.8632 GB, free: 67.21 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.358e-05/1.611, allocations: 15.94 kB / 0.8632 GB, free: 67.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0442/1.655, allocations: 19.74 MB / 0.8825 GB, free: 47.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-05/1.655, allocations: 8 kB / 0.8825 GB, free: 47.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002458/1.658, allocations: 499.2 kB / 0.883 GB, free: 46.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01162/1.669, allocations: 3.666 MB / 0.8866 GB, free: 43.12 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009995/1.67, allocations: 67.98 kB / 0.8867 GB, free: 43.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02574/1.696, allocations: 18.43 MB / 0.9046 GB, free: 24.49 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.101e-05/1.696, allocations: 8 kB / 0.9047 GB, free: 24.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2837/1.98, allocations: 14.22 MB / 0.9185 GB, free: 173.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002512/1.982, allocations: 0.5628 MB / 0.9191 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001865/1.984, allocations: 59.91 kB / 0.9191 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002941/1.987, allocations: 226.5 kB / 0.9194 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009002/1.988, allocations: 223.5 kB / 0.9196 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002585/1.988, allocations: 88.92 kB / 0.9197 GB, free: 173.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007184/1.996, allocations: 3.642 MB / 0.9232 GB, free: 173 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.11e-07/1.996, allocations: 2.469 kB / 0.9232 GB, free: 173 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009092/2.005, allocations: 1.681 MB / 0.9249 GB, free: 173 MB / 0.545 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.03172/2.036, allocations: 14.96 MB / 0.9395 GB, free: 167.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02446/2.061, allocations: 12.62 MB / 0.9518 GB, free: 163.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/2.061, allocations: 3.531 kB / 0.9518 GB, free: 163.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005927/2.067, allocations: 3.646 MB / 0.9554 GB, free: 161.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01006/2.077, allocations: 0.7734 MB / 0.9561 GB, free: 161.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1768/2.254, allocations: 96.08 MB / 1.05 GB, free: 62.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009118/2.263, allocations: 4.826 MB / 1.055 GB, free: 58.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008204/2.271, allocations: 2.59 MB / 1.057 GB, free: 55.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005016/2.276, allocations: 3.061 MB / 1.06 GB, free: 52.44 MB / 0.545 GB Notification: Performance of SimCode: time 1.282e-06/2.276, allocations: 0 / 1.06 GB, free: 52.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4442/2.721, allocations: 132.6 MB / 1.19 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/2.721, allocations: 220.1 kB / 1.19 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.594/8.315, allocations: 0 / 1.19 GB, free: 156.8 MB / 0.5606 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