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.001268/0.001268, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2257/0.2257, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 72.94 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1216, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01853/0.1402, allocations: 15.97 MB / 496.1 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01319/0.1534, allocations: 5.459 MB / 0.4898 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002982/0.1564, allocations: 111.7 kB / 0.4899 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009641/0.1662, allocations: 5.105 MB / 0.4949 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007403/0.1736, allocations: 2.583 MB / 0.4974 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004412/0.178, allocations: 1.392 MB / 0.4988 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2689/0.4469, allocations: 8.228 MB / 0.5068 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.4571, allocations: 7.043 MB / 0.5137 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005914/0.4631, allocations: 2.768 MB / 0.5164 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007406/0.4705, allocations: 3.735 MB / 0.52 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003605/0.4742, allocations: 0.6335 MB / 0.5207 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006348/0.4805, allocations: 1.776 MB / 0.5224 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007527/0.4881, allocations: 3.313 MB / 0.5256 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01038/0.4985, allocations: 3.783 MB / 0.5293 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01303/0.5116, allocations: 11.85 MB / 0.5409 GB, free: 2.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.5116, allocations: 0 / 0.5409 GB, free: 2.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5116, allocations: 0 / 0.5409 GB, free: 2.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004415/0.5121, allocations: 0 / 0.5409 GB, free: 2.184 MB / 382.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.02187/0.5339, allocations: 8.173 MB / 0.5489 GB, free: 12.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.534, allocations: 8.031 kB / 0.5489 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003137/0.5372, allocations: 1.154 MB / 0.55 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05508/0.5923, allocations: 8.358 MB / 0.5582 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01514/0.6074, allocations: 5.775 MB / 0.5638 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000559/0.6081, allocations: 378.7 kB / 0.5642 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003359/0.6114, allocations: 0.5138 MB / 0.5647 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0346/0.6461, allocations: 15.41 MB / 0.5797 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002397/0.6463, allocations: 67.27 kB / 0.5798 GB, free: 12.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009445/0.6473, allocations: 235.6 kB / 0.58 GB, free: 11.91 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003769/0.6511, allocations: 2.554 MB / 0.5825 GB, free: 9.391 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02848/0.6796, allocations: 12.88 MB / 0.5951 GB, free: 12.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07928/0.7589, allocations: 57.16 MB / 0.6509 GB, free: 2.719 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01891/0.7779, allocations: 6.318 MB / 0.6571 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005413/0.7833, allocations: 3.317 MB / 0.6603 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0179/0.8013, allocations: 11.37 MB / 0.6714 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.389e-05/0.8014, allocations: 63.55 kB / 0.6715 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=245): time 6.362e-06/0.8014, allocations: 0 / 0.6715 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=338): time 0.1421/0.9435, allocations: 39.5 MB / 0.7101 GB, free: 5.676 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.9437, allocations: 247.3 kB / 0.7103 GB, free: 5.387 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2374/1.181, allocations: 5.727 MB / 0.7159 GB, free: 187.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009072/1.182, allocations: 76.33 kB / 0.716 GB, free: 187.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003942/1.186, allocations: 4.45 MB / 0.7203 GB, free: 185.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001575/1.188, allocations: 1.235 MB / 0.7215 GB, free: 185 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002981/1.191, allocations: 1.63 MB / 0.7231 GB, free: 184.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.057e-05/1.191, allocations: 302.8 kB / 0.7234 GB, free: 183.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006701/1.197, allocations: 3.775 MB / 0.7271 GB, free: 182.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01178/1.209, allocations: 8.304 MB / 0.7352 GB, free: 175.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01776/1.227, allocations: 13.01 MB / 0.7479 GB, free: 165.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002477/1.227, allocations: 43.34 kB / 0.7479 GB, free: 165.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02984/1.257, allocations: 15.47 MB / 0.7631 GB, free: 159.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/1.257, allocations: 69.47 kB / 0.7631 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/1.257, allocations: 158.2 kB / 0.7633 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01216/1.27, allocations: 4.11 MB / 0.7673 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006164/1.276, allocations: 1.797 MB / 0.769 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02654/1.302, allocations: 20.94 MB / 0.7895 GB, free: 140.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006879/1.309, allocations: 495.3 kB / 0.79 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/1.31, allocations: 468.8 kB / 0.7904 GB, free: 139.6 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.004636/1.315, allocations: 3.117 MB / 0.7934 GB, free: 136.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001165/1.316, allocations: 0.5283 MB / 0.794 GB, free: 135.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01761/1.334, allocations: 9.615 MB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.253e-05/1.334, allocations: 39.94 kB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.968e-05/1.334, allocations: 12 kB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.955e-05/1.334, allocations: 19.94 kB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03942/1.374, allocations: 19.73 MB / 0.8227 GB, free: 106.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-05/1.374, allocations: 8 kB / 0.8227 GB, free: 106.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/1.376, allocations: 499.2 kB / 0.8232 GB, free: 105.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01099/1.387, allocations: 3.668 MB / 0.8268 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005863/1.387, allocations: 60.5 kB / 0.8268 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02146/1.409, allocations: 18.43 MB / 0.8448 GB, free: 83.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.409, allocations: 15.27 kB / 0.8448 GB, free: 83.49 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/1.432, allocations: 14.22 MB / 0.8587 GB, free: 69.08 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/1.434, allocations: 0.5683 MB / 0.8593 GB, free: 68.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/1.436, allocations: 60 kB / 0.8593 GB, free: 68.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002944/1.439, allocations: 227.7 kB / 0.8595 GB, free: 68.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000775/1.44, allocations: 226.2 kB / 0.8598 GB, free: 67.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/1.44, allocations: 88.5 kB / 0.8598 GB, free: 67.89 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005293/1.445, allocations: 3.643 MB / 0.8634 GB, free: 64.28 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.2e-07/1.445, allocations: 0 / 0.8634 GB, free: 64.28 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007773/1.453, allocations: 1.687 MB / 0.865 GB, free: 62.6 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.02329/1.476, allocations: 14.96 MB / 0.8797 GB, free: 47.44 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02108/1.497, allocations: 12.62 MB / 0.892 GB, free: 34.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/1.497, allocations: 4 kB / 0.892 GB, free: 34.83 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005365/1.503, allocations: 3.651 MB / 0.8955 GB, free: 31.16 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005271/1.508, allocations: 0.7656 MB / 0.8963 GB, free: 30.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3793/1.887, allocations: 93.17 MB / 0.9873 GB, free: 126.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006069/1.894, allocations: 4.82 MB / 0.992 GB, free: 122.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006474/1.9, allocations: 2.589 MB / 0.9945 GB, free: 119.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004335/1.904, allocations: 3.061 MB / 0.9975 GB, free: 116.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/1.904, allocations: 0 / 0.9975 GB, free: 116.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2602/2.165, allocations: 132.8 MB / 1.127 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/15.21, allocations: 19.91 kB / 1.127 GB, free: 0.6055 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 & 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