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.001222/0.001222, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2152/0.2152, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 75.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3243, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01838/0.3427, allocations: 15.97 MB / 0.5461 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01408/0.3568, allocations: 5.455 MB / 0.5514 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003705/0.3606, allocations: 111.6 kB / 0.5515 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009628/0.3702, allocations: 5.113 MB / 0.5565 GB, free: 7.031 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00883/0.3791, allocations: 2.665 MB / 0.5591 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003917/0.3831, allocations: 1.38 MB / 0.5605 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0119/0.395, allocations: 8.255 MB / 0.5685 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009863/0.4049, allocations: 7.029 MB / 0.5754 GB, free: 3.586 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006266/0.4112, allocations: 2.761 MB / 0.5781 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00688/0.4181, allocations: 3.751 MB / 0.5818 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002415/0.4206, allocations: 0.6328 MB / 0.5824 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005544/0.4262, allocations: 1.775 MB / 0.5841 GB, free: 10.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004962/0.4312, allocations: 3.355 MB / 0.5874 GB, free: 7.281 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006548/0.4377, allocations: 3.788 MB / 0.5911 GB, free: 3.473 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01619/0.4539, allocations: 12.19 MB / 0.603 GB, free: 7.238 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/0.454, allocations: 3.938 kB / 0.603 GB, free: 7.234 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.454, allocations: 0 / 0.603 GB, free: 7.234 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004497/0.4545, allocations: 3.938 kB / 0.603 GB, free: 7.23 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.02414/0.4786, allocations: 8.37 MB / 0.6112 GB, free: 14.77 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.4787, allocations: 12.03 kB / 0.6112 GB, free: 14.75 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003808/0.4825, allocations: 1.156 MB / 0.6123 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05548/0.538, allocations: 8.402 MB / 0.6205 GB, free: 5.168 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01554/0.5536, allocations: 5.895 MB / 0.6263 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006151/0.5543, allocations: 386 kB / 0.6267 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003145/0.5575, allocations: 0.5075 MB / 0.6271 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03572/0.5932, allocations: 15.42 MB / 0.6422 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003063/0.5935, allocations: 63.52 kB / 0.6423 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001573/0.5951, allocations: 239.8 kB / 0.6425 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004016/0.5992, allocations: 2.548 MB / 0.645 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02974/0.6289, allocations: 12.89 MB / 0.6576 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08091/0.7099, allocations: 57.01 MB / 0.7132 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2952/1.005, allocations: 6.316 MB / 0.7194 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005294/1.011, allocations: 3.31 MB / 0.7226 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0228/1.033, allocations: 11.38 MB / 0.7338 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/1.033, allocations: 58.47 kB / 0.7338 GB, free: 154 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 5.961e-06/1.033, allocations: 0 / 0.7338 GB, free: 154 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1311/1.165, allocations: 39.86 MB / 0.7727 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.188e-05/1.165, allocations: 247.8 kB / 0.773 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006719/1.171, allocations: 5.742 MB / 0.7786 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00067/1.172, allocations: 77.7 kB / 0.7787 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001888/1.174, allocations: 4.615 MB / 0.7832 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001195/1.175, allocations: 1.288 MB / 0.7844 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001895/1.177, allocations: 1.64 MB / 0.786 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.06e-05/1.177, allocations: 301.1 kB / 0.7863 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004252/1.181, allocations: 3.776 MB / 0.79 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005485/1.187, allocations: 8.306 MB / 0.7981 GB, free: 94.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/1.198, allocations: 13.01 MB / 0.8108 GB, free: 79.35 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.773e-05/1.198, allocations: 44 kB / 0.8109 GB, free: 79.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02497/1.223, allocations: 15.5 MB / 0.826 GB, free: 63.76 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.068e-05/1.223, allocations: 72 kB / 0.8261 GB, free: 63.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001258/1.223, allocations: 156 kB / 0.8262 GB, free: 63.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01153/1.235, allocations: 4.104 MB / 0.8302 GB, free: 59.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005498/1.24, allocations: 1.801 MB / 0.832 GB, free: 57.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02678/1.267, allocations: 20.93 MB / 0.8524 GB, free: 36.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006442/1.273, allocations: 0.4916 MB / 0.8529 GB, free: 36.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/1.275, allocations: 468 kB / 0.8534 GB, free: 35.61 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.004531/1.279, allocations: 3.118 MB / 0.8564 GB, free: 32.48 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001044/1.28, allocations: 0.5549 MB / 0.8569 GB, free: 31.92 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01701/1.297, allocations: 9.611 MB / 0.8663 GB, free: 22.24 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.133e-05/1.297, allocations: 39.67 kB / 0.8664 GB, free: 22.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/1.297, allocations: 16 kB / 0.8664 GB, free: 22.19 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.085e-05/1.298, allocations: 15.94 kB / 0.8664 GB, free: 22.17 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03373/1.331, allocations: 19.64 MB / 0.8856 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-05/1.331, allocations: 4 kB / 0.8856 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002209/1.334, allocations: 499.3 kB / 0.8861 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01205/1.346, allocations: 3.657 MB / 0.8896 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007813/1.346, allocations: 64 kB / 0.8897 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02728/1.374, allocations: 18.43 MB / 0.9077 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/1.374, allocations: 8 kB / 0.9077 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02722/1.401, allocations: 14.24 MB / 0.9216 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001801/1.403, allocations: 0.5988 MB / 0.9222 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001603/1.404, allocations: 56 kB / 0.9222 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003719/1.408, allocations: 227.7 kB / 0.9225 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001028/1.409, allocations: 226.2 kB / 0.9227 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005239/1.41, allocations: 87.67 kB / 0.9228 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006817/1.417, allocations: 3.646 MB / 0.9263 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/1.417, allocations: 0 / 0.9263 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007457/1.424, allocations: 1.68 MB / 0.928 GB, free: 6.637 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.02593/1.45, allocations: 14.99 MB / 0.9426 GB, free: 7.445 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.2879/1.738, allocations: 9.268 MB / 0.9516 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.738, allocations: 0 / 0.9516 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005625/1.744, allocations: 3.659 MB / 0.9552 GB, free: 213.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004506/1.748, allocations: 0.7802 MB / 0.956 GB, free: 213.6 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1083/1.857, allocations: 78.61 MB / 1.033 GB, free: 144.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004678/1.861, allocations: 4.822 MB / 1.037 GB, free: 139.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005316/1.867, allocations: 2.59 MB / 1.04 GB, free: 136.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003854/1.87, allocations: 3.065 MB / 1.043 GB, free: 133.9 MB / 0.6231 GB Notification: Performance of SimCode: time 1.253e-06/1.871, allocations: 0 / 1.043 GB, free: 133.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1667/2.037, allocations: 128 MB / 1.168 GB, free: 6.418 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.03/38.07, allocations: 11.92 kB / 1.168 GB, free: 6.406 MB / 0.6231 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv","/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