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.001283/0.001284, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.227/0.227, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3494, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.02082/0.3703, allocations: 15.98 MB / 0.5462 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.3845, allocations: 5.452 MB / 0.5515 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003995/0.3885, allocations: 107.7 kB / 0.5516 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009828/0.3984, allocations: 5.121 MB / 0.5566 GB, free: 6.965 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007664/0.4061, allocations: 2.583 MB / 0.5592 GB, free: 4.371 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00351/0.4096, allocations: 1.384 MB / 0.5605 GB, free: 2.984 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01278/0.4224, allocations: 8.248 MB / 0.5686 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01/0.4325, allocations: 7.029 MB / 0.5754 GB, free: 3.605 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00574/0.4383, allocations: 2.765 MB / 0.5781 GB, free: 0.832 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006856/0.4452, allocations: 3.739 MB / 0.5818 GB, free: 13.08 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00227/0.4475, allocations: 0.6328 MB / 0.5824 GB, free: 12.45 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004573/0.452, allocations: 1.775 MB / 0.5841 GB, free: 10.67 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005479/0.4575, allocations: 3.308 MB / 0.5874 GB, free: 7.355 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007578/0.4651, allocations: 3.784 MB / 0.5911 GB, free: 3.551 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01713/0.4823, allocations: 12.17 MB / 0.603 GB, free: 7.324 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.4824, allocations: 0 / 0.603 GB, free: 7.324 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4824, allocations: 0 / 0.603 GB, free: 7.324 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003828/0.4828, allocations: 4 kB / 0.603 GB, free: 7.32 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.02209/0.5049, allocations: 8.377 MB / 0.6111 GB, free: 14.85 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.5049, allocations: 12.03 kB / 0.6112 GB, free: 14.84 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0031/0.508, allocations: 1.148 MB / 0.6123 GB, free: 13.68 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05675/0.5648, allocations: 8.406 MB / 0.6205 GB, free: 5.258 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/0.5786, allocations: 5.899 MB / 0.6262 GB, free: 15.28 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003643/0.579, allocations: 390 kB / 0.6266 GB, free: 14.9 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002177/0.5811, allocations: 0.5075 MB / 0.6271 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03336/0.6145, allocations: 15.41 MB / 0.6422 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002102/0.6148, allocations: 67.52 kB / 0.6422 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000758/0.6155, allocations: 235.8 kB / 0.6425 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004241/0.6198, allocations: 2.544 MB / 0.6449 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02825/0.6481, allocations: 12.89 MB / 0.6575 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08537/0.7335, allocations: 57.02 MB / 0.7132 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3327/1.066, allocations: 6.306 MB / 0.7194 GB, free: 161 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004841/1.071, allocations: 3.318 MB / 0.7226 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/1.087, allocations: 11.38 MB / 0.7337 GB, free: 154 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/1.087, allocations: 68.09 kB / 0.7338 GB, free: 154 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 5.911e-06/1.087, allocations: 0.5 kB / 0.7338 GB, free: 154 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1199/1.207, allocations: 39.86 MB / 0.7727 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/1.207, allocations: 235.9 kB / 0.7729 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006897/1.214, allocations: 5.745 MB / 0.7785 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008898/1.215, allocations: 77.7 kB / 0.7786 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00232/1.217, allocations: 4.614 MB / 0.7831 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001336/1.219, allocations: 1.298 MB / 0.7844 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002031/1.221, allocations: 1.636 MB / 0.786 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.549e-05/1.221, allocations: 301.1 kB / 0.7863 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004365/1.225, allocations: 3.772 MB / 0.79 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00632/1.231, allocations: 8.306 MB / 0.7981 GB, free: 94.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/1.244, allocations: 13.01 MB / 0.8108 GB, free: 79.32 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001442/1.244, allocations: 48 kB / 0.8108 GB, free: 79.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03014/1.274, allocations: 15.5 MB / 0.826 GB, free: 63.73 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.719e-05/1.274, allocations: 72 kB / 0.826 GB, free: 63.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001552/1.275, allocations: 164 kB / 0.8262 GB, free: 63.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01187/1.287, allocations: 4.1 MB / 0.8302 GB, free: 59.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00551/1.292, allocations: 1.797 MB / 0.8319 GB, free: 57.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02473/1.317, allocations: 20.93 MB / 0.8524 GB, free: 36.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006351/1.323, allocations: 0.4916 MB / 0.8529 GB, free: 36.03 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001279/1.325, allocations: 470 kB / 0.8533 GB, free: 35.57 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.005264/1.33, allocations: 3.118 MB / 0.8564 GB, free: 32.44 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/1.331, allocations: 0.551 MB / 0.8569 GB, free: 31.89 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01795/1.349, allocations: 9.622 MB / 0.8663 GB, free: 22.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.153e-05/1.349, allocations: 32 kB / 0.8663 GB, free: 22.17 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.979e-05/1.349, allocations: 16 kB / 0.8663 GB, free: 22.15 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.747e-05/1.349, allocations: 15.95 kB / 0.8664 GB, free: 22.14 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03385/1.383, allocations: 19.63 MB / 0.8855 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-05/1.383, allocations: 8 kB / 0.8855 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002215/1.385, allocations: 0.4922 MB / 0.886 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0123/1.398, allocations: 3.645 MB / 0.8896 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006655/1.398, allocations: 69.67 kB / 0.8896 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03125/1.43, allocations: 18.43 MB / 0.9076 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/1.43, allocations: 16 kB / 0.9077 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02901/1.459, allocations: 14.24 MB / 0.9216 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001985/1.461, allocations: 0.5949 MB / 0.9221 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001429/1.462, allocations: 60.06 kB / 0.9222 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002871/1.465, allocations: 235.6 kB / 0.9224 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008144/1.466, allocations: 230.1 kB / 0.9226 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002849/1.466, allocations: 91.36 kB / 0.9227 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006237/1.472, allocations: 3.643 MB / 0.9263 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.92e-07/1.472, allocations: 0 / 0.9263 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007958/1.48, allocations: 1.68 MB / 0.9279 GB, free: 6.598 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.02908/1.51, allocations: 14.98 MB / 0.9426 GB, free: 7.414 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.3321/1.842, allocations: 9.278 MB / 0.9516 GB, free: 214.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.775e-05/1.842, allocations: 1 kB / 0.9516 GB, free: 214.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.009447/1.851, allocations: 3.655 MB / 0.9552 GB, free: 214 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007794/1.859, allocations: 0.7717 MB / 0.9559 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1465/2.006, allocations: 78.62 MB / 1.033 GB, free: 144.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005662/2.011, allocations: 4.822 MB / 1.037 GB, free: 139.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005502/2.017, allocations: 2.594 MB / 1.04 GB, free: 137.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003627/2.021, allocations: 3.061 MB / 1.043 GB, free: 134.1 MB / 0.6231 GB Notification: Performance of SimCode: time 8.72e-07/2.021, allocations: 0 / 1.043 GB, free: 134.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1741/2.195, allocations: 128 MB / 1.168 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.65/41.84, allocations: 4.656 kB / 1.168 GB, free: 6.613 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 & /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