Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 110.6 kB / 16.41 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009941/0.0009941, allocations: 187.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1997/0.1997, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001619/0.00162, allocations: 75.89 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1074, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01106/0.1184, allocations: 10.27 MB / 0.4974 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007695/0.1262, allocations: 3.788 MB / 0.5011 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001726/0.1279, allocations: 55.81 kB / 0.5012 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004017/0.132, allocations: 1.947 MB / 0.5031 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004639/0.1367, allocations: 1.696 MB / 0.5048 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001669/0.1384, allocations: 0.6121 MB / 0.5053 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004612/0.143, allocations: 3.345 MB / 0.5086 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003689/0.1468, allocations: 2.587 MB / 0.5111 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00234/0.1491, allocations: 1.253 MB / 0.5124 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002624/0.1518, allocations: 1.686 MB / 0.514 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000852/0.1526, allocations: 252 kB / 0.5143 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002378/0.155, allocations: 1.026 MB / 0.5153 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001923/0.157, allocations: 1.582 MB / 0.5168 GB, free: 14.05 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002984/0.16, allocations: 1.841 MB / 0.5186 GB, free: 12.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007521/0.1675, allocations: 5.863 MB / 0.5243 GB, free: 6.309 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.1675, allocations: 4 kB / 0.5243 GB, free: 6.305 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1675, allocations: 7.938 kB / 0.5243 GB, free: 6.297 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002183/0.1678, allocations: 0 / 0.5243 GB, free: 6.297 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.009319/0.1771, allocations: 4.159 MB / 0.5284 GB, free: 2.066 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.1772, allocations: 11.89 kB / 0.5284 GB, free: 2.055 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009241/0.1781, allocations: 0.6121 MB / 0.529 GB, free: 1.434 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2071/0.3852, allocations: 1.797 MB / 0.5308 GB, free: 36.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005136/0.3904, allocations: 2.433 MB / 0.5331 GB, free: 36.45 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.3906, allocations: 191.4 kB / 0.5333 GB, free: 36.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006186/0.3912, allocations: 256 kB / 0.5336 GB, free: 36.44 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01317/0.4044, allocations: 8.434 MB / 0.5418 GB, free: 33.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.4046, allocations: 37.47 kB / 0.5418 GB, free: 33.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003315/0.4049, allocations: 128.2 kB / 0.542 GB, free: 33.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/0.4078, allocations: 1.699 MB / 0.5436 GB, free: 32.74 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/0.4219, allocations: 7.101 MB / 0.5505 GB, free: 30.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0325/0.4545, allocations: 34.09 MB / 0.5838 GB, free: 188 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007193/0.4617, allocations: 3.279 MB / 0.587 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.4636, allocations: 1.471 MB / 0.5885 GB, free: 11.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007565/0.4712, allocations: 4.379 MB / 0.5928 GB, free: 6.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.4713, allocations: 47.06 kB / 0.5928 GB, free: 6.715 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.739e-06/0.4713, allocations: 4 kB / 0.5928 GB, free: 6.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02791/0.4992, allocations: 11.77 MB / 0.6043 GB, free: 10.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.046e-05/0.4994, allocations: 174.8 kB / 0.6045 GB, free: 10.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004411/0.5038, allocations: 3.751 MB / 0.6081 GB, free: 6.871 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.5039, allocations: 49.7 kB / 0.6082 GB, free: 6.816 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00168/0.5056, allocations: 2.87 MB / 0.611 GB, free: 3.922 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004705/0.5061, allocations: 0.5428 MB / 0.6115 GB, free: 3.375 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/0.5073, allocations: 1.08 MB / 0.6126 GB, free: 2.285 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.47e-05/0.5074, allocations: 301.1 kB / 0.6129 GB, free: 1.988 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002127/0.5095, allocations: 1.693 MB / 0.6145 GB, free: 296 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004363/0.5139, allocations: 5.116 MB / 0.6195 GB, free: 9.441 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007433/0.5213, allocations: 7.403 MB / 0.6267 GB, free: 340 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.929e-05/0.5214, allocations: 43.94 kB / 0.6268 GB, free: 296 kB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01008/0.5315, allocations: 6.713 MB / 0.6333 GB, free: 9.57 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.082e-05/0.5316, allocations: 63.94 kB / 0.6334 GB, free: 9.508 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/0.5317, allocations: 120 kB / 0.6335 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005858/0.5323, allocations: 316.7 kB / 0.6338 GB, free: 9.078 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003362/0.5357, allocations: 1.24 MB / 0.635 GB, free: 7.836 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/0.5381, allocations: 2.504 MB / 0.6375 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003379/0.5415, allocations: 295.6 kB / 0.6377 GB, free: 4.902 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004845/0.542, allocations: 328 kB / 0.6381 GB, free: 4.582 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (664): * Single equations (assignments): 660 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00247/0.5445, allocations: 1.792 MB / 0.6398 GB, free: 2.777 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005586/0.5451, allocations: 325.8 kB / 0.6401 GB, free: 2.457 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004298/0.5494, allocations: 2.367 MB / 0.6424 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.839e-05/0.5494, allocations: 19.97 kB / 0.6424 GB, free: 56 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.5494, allocations: 7.984 kB / 0.6425 GB, free: 48 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.5494, allocations: 7.984 kB / 0.6425 GB, free: 40 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.56, allocations: 5.922 MB / 0.6482 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.56, allocations: 0 / 0.6482 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007967/0.5608, allocations: 171.8 kB / 0.6484 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002031/0.5629, allocations: 0.7108 MB / 0.6491 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000163/0.5631, allocations: 31.92 kB / 0.6491 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0055/0.5686, allocations: 4.812 MB / 0.6538 GB, free: 4.184 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5686, allocations: 0 / 0.6538 GB, free: 4.184 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006324/0.5749, allocations: 4.347 MB / 0.6581 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/0.5763, allocations: 0.5456 MB / 0.6586 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004206/0.5768, allocations: 16 kB / 0.6586 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.5778, allocations: 71.91 kB / 0.6587 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.5781, allocations: 68.5 kB / 0.6588 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.142e-05/0.5782, allocations: 43.91 kB / 0.6588 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00349/0.5817, allocations: 2.335 MB / 0.6611 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.61e-07/0.5817, allocations: 8.062 kB / 0.6611 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004099/0.5858, allocations: 0.8124 MB / 0.6619 GB, free: 11.9 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006867/0.5927, allocations: 4.977 MB / 0.6667 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005906/0.5986, allocations: 4.035 MB / 0.6707 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5986, allocations: 3.938 kB / 0.6707 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.6, allocations: 1.115 MB / 0.6718 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.6024, allocations: 380.9 kB / 0.6721 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04875/0.6511, allocations: 37.83 MB / 0.7091 GB, free: 6.328 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002778/0.6539, allocations: 2.789 MB / 0.7118 GB, free: 3.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003444/0.6574, allocations: 1.652 MB / 0.7134 GB, free: 1.863 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002277/0.6597, allocations: 1.53 MB / 0.7149 GB, free: 340 kB / 0.545 GB Notification: Performance of SimCode: time 1.443e-06/0.6597, allocations: 0 / 0.7149 GB, free: 340 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3094/0.9691, allocations: 57.79 MB / 0.7714 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.72/23.69, allocations: 4 kB / 0.7714 GB, free: 189.4 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches