Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001706/0.001706, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002126/0.002127, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 46.09 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 75.5 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1175, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01251/0.13, allocations: 10.24 MB / 490.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007725/0.1378, allocations: 3.794 MB / 494.2 MB, free: 7.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001595/0.1394, allocations: 59.81 kB / 494.2 MB, free: 7.047 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004121/0.1436, allocations: 1.935 MB / 496.1 MB, free: 5.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005121/0.1488, allocations: 1.634 MB / 497.8 MB, free: 3.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.1508, allocations: 0.6082 MB / 498.4 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005375/0.1562, allocations: 3.373 MB / 0.49 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003894/0.1601, allocations: 2.576 MB / 0.4925 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002704/0.1629, allocations: 1.234 MB / 0.4937 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002814/0.1657, allocations: 1.659 MB / 0.4953 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009351/0.1667, allocations: 259.9 kB / 0.4956 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002464/0.1691, allocations: 1.006 MB / 0.4966 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002136/0.1713, allocations: 1.547 MB / 0.4981 GB, free: 7.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003028/0.1744, allocations: 1.817 MB / 0.4999 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2404/0.4148, allocations: 5.574 MB / 0.5053 GB, free: 20.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/0.4148, allocations: 4.328 kB / 0.5053 GB, free: 20.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4148, allocations: 0 / 0.5053 GB, free: 20.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002506/0.4151, allocations: 0.5 kB / 0.5053 GB, free: 20.28 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01056/0.4257, allocations: 4 MB / 0.5092 GB, free: 18.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/0.4257, allocations: 10.78 kB / 0.5092 GB, free: 18.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001451/0.4272, allocations: 0.6073 MB / 0.5098 GB, free: 18.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007558/0.4348, allocations: 1.781 MB / 0.5116 GB, free: 18.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006189/0.441, allocations: 2.121 MB / 0.5136 GB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000304/0.4413, allocations: 202.4 kB / 0.5138 GB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.4426, allocations: 255.4 kB / 0.5141 GB, free: 17.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01639/0.459, allocations: 8.446 MB / 0.5223 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.4592, allocations: 37.33 kB / 0.5223 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000351/0.4595, allocations: 129.3 kB / 0.5225 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002633/0.4622, allocations: 1.703 MB / 0.5241 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01227/0.4745, allocations: 7.099 MB / 0.5311 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03731/0.5118, allocations: 34.17 MB / 0.5644 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007348/0.5192, allocations: 3.296 MB / 0.5677 GB, free: 9.805 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001828/0.5211, allocations: 1.457 MB / 0.5691 GB, free: 8.336 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006642/0.5277, allocations: 4.447 MB / 0.5734 GB, free: 3.699 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.652e-05/0.5278, allocations: 51.12 kB / 0.5735 GB, free: 3.641 MB / 414.1 MB Notification: Performance of pre-optimization done (n=121): time 6.042e-06/0.5278, allocations: 0 / 0.5735 GB, free: 3.641 MB / 414.1 MB Notification: Performance of matching and sorting (n=129): time 0.03227/0.5601, allocations: 11.56 MB / 0.5848 GB, free: 7.977 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.5602, allocations: 178.9 kB / 0.5849 GB, free: 7.766 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005734/0.566, allocations: 3.714 MB / 0.5885 GB, free: 4.062 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002035/0.5662, allocations: 41.7 kB / 0.5886 GB, free: 4.016 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001929/0.5682, allocations: 2.753 MB / 0.5913 GB, free: 1.281 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006852/0.5689, allocations: 0.5254 MB / 0.5918 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001856/0.5707, allocations: 1.071 MB / 0.5928 GB, free: 15.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.5708, allocations: 305.1 kB / 0.5931 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/0.5734, allocations: 1.71 MB / 0.5948 GB, free: 13.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00503/0.5785, allocations: 5.113 MB / 0.5998 GB, free: 6.879 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008417/0.5869, allocations: 7.421 MB / 0.607 GB, free: 14.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/0.587, allocations: 32 kB / 0.6071 GB, free: 14.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01278/0.5998, allocations: 6.701 MB / 0.6136 GB, free: 7.629 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.6, allocations: 58.66 kB / 0.6137 GB, free: 7.574 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/0.6003, allocations: 127.9 kB / 0.6138 GB, free: 7.449 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007211/0.601, allocations: 317.5 kB / 0.6141 GB, free: 7.137 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003982/0.605, allocations: 1.252 MB / 0.6153 GB, free: 5.883 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00273/0.6077, allocations: 2.494 MB / 0.6177 GB, free: 3.246 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004028/0.6118, allocations: 287.6 kB / 0.618 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008335/0.6126, allocations: 328 kB / 0.6183 GB, free: 2.645 MB / 462.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.003606/0.6163, allocations: 1.793 MB / 0.6201 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009555/0.6172, allocations: 312 kB / 0.6204 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006055/0.6233, allocations: 2.374 MB / 0.6227 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.795e-05/0.6234, allocations: 22.06 kB / 0.6227 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/0.6234, allocations: 4 kB / 0.6227 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.997e-05/0.6234, allocations: 3.984 kB / 0.6227 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/0.6372, allocations: 5.93 MB / 0.6285 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.6372, allocations: 0 / 0.6285 GB, free: 8.148 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008727/0.6381, allocations: 171.8 kB / 0.6287 GB, free: 7.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002122/0.6402, allocations: 0.7208 MB / 0.6294 GB, free: 7.258 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.6404, allocations: 23.05 kB / 0.6294 GB, free: 7.238 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005724/0.6461, allocations: 4.818 MB / 0.6341 GB, free: 2.289 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.6461, allocations: 4.031 kB / 0.6341 GB, free: 2.285 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006673/0.6528, allocations: 4.339 MB / 0.6384 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008512/0.6537, allocations: 364.9 kB / 0.6387 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005475/0.6542, allocations: 24.06 kB / 0.6387 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.6554, allocations: 67.91 kB / 0.6388 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.6556, allocations: 68.5 kB / 0.6389 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.139e-05/0.6557, allocations: 36 kB / 0.6389 GB, free: 13.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00334/0.659, allocations: 2.323 MB / 0.6412 GB, free: 11.04 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.659, allocations: 0 / 0.6412 GB, free: 11.04 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004223/0.6633, allocations: 0.8002 MB / 0.6419 GB, free: 10.24 MB / 494.1 MB 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.007583/0.6709, allocations: 4.965 MB / 0.6468 GB, free: 5.238 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008018/0.6789, allocations: 4.425 MB / 0.6511 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.679, allocations: 4.188 kB / 0.6511 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.6808, allocations: 1.121 MB / 0.6522 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.6834, allocations: 380.7 kB / 0.6526 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06023/0.7437, allocations: 42.23 MB / 0.6938 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002872/0.7466, allocations: 2.781 MB / 0.6965 GB, free: 11.45 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003942/0.7506, allocations: 1.656 MB / 0.6981 GB, free: 9.793 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002064/0.7526, allocations: 1.526 MB / 0.6996 GB, free: 8.266 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/0.7527, allocations: 0 / 0.6996 GB, free: 8.266 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3171/1.07, allocations: 61.1 MB / 0.7593 GB, free: 167.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/12.31, allocations: 13.83 kB / 0.7593 GB, free: 167.3 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches