Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_0_0_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.001868/0.001868, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.002031/0.002031, allocations: 185 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2227/0.2227, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 71.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3477, allocations: 60.81 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01136/0.3591, allocations: 10.26 MB / 0.5285 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008779/0.368, allocations: 3.774 MB / 0.5321 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.37, allocations: 54.88 kB / 0.5322 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004299/0.3744, allocations: 1.958 MB / 0.5341 GB, free: 7.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005205/0.3796, allocations: 1.658 MB / 0.5357 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00179/0.3814, allocations: 0.6114 MB / 0.5363 GB, free: 6.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00581/0.3873, allocations: 3.335 MB / 0.5396 GB, free: 4.625 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003935/0.3913, allocations: 2.583 MB / 0.5421 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002831/0.3941, allocations: 1.244 MB / 0.5433 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003077/0.3972, allocations: 1.671 MB / 0.5449 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008451/0.3981, allocations: 252 kB / 0.5452 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002574/0.4007, allocations: 1.038 MB / 0.5462 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001732/0.4024, allocations: 1.555 MB / 0.5477 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00241/0.4049, allocations: 1.837 MB / 0.5495 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007488/0.4124, allocations: 5.871 MB / 0.5552 GB, free: 6.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.4124, allocations: 0 / 0.5552 GB, free: 6.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4124, allocations: 0 / 0.5552 GB, free: 6.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001458/0.4126, allocations: 0 / 0.5552 GB, free: 6.27 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.008755/0.4213, allocations: 4.14 MB / 0.5593 GB, free: 2.055 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.4214, allocations: 8.031 kB / 0.5593 GB, free: 2.047 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001034/0.4224, allocations: 0.6082 MB / 0.5599 GB, free: 1.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00654/0.429, allocations: 1.812 MB / 0.5617 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004415/0.4334, allocations: 2.265 MB / 0.5639 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.4336, allocations: 197 kB / 0.5641 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006642/0.4343, allocations: 255.8 kB / 0.5643 GB, free: 12.84 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/0.4488, allocations: 8.436 MB / 0.5725 GB, free: 3.742 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.4489, allocations: 35.7 kB / 0.5726 GB, free: 3.707 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000462/0.4494, allocations: 127.9 kB / 0.5727 GB, free: 3.582 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002982/0.4524, allocations: 1.695 MB / 0.5744 GB, free: 1.887 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01438/0.4668, allocations: 7.106 MB / 0.5813 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0433/0.5101, allocations: 34.07 MB / 0.6146 GB, free: 7.707 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007802/0.518, allocations: 3.283 MB / 0.6178 GB, free: 4.27 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/0.5202, allocations: 1.466 MB / 0.6192 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00677/0.527, allocations: 4.367 MB / 0.6235 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.527, allocations: 51.06 kB / 0.6235 GB, free: 14.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=121): time 3.938e-06/0.5271, allocations: 4 kB / 0.6235 GB, free: 14.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=129): time 0.02977/0.5568, allocations: 11.71 MB / 0.635 GB, free: 2.312 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.557, allocations: 170.8 kB / 0.6351 GB, free: 2.109 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005712/0.5627, allocations: 3.739 MB / 0.6388 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002628/0.563, allocations: 49.7 kB / 0.6388 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002393/0.5654, allocations: 2.862 MB / 0.6416 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007111/0.5662, allocations: 0.539 MB / 0.6421 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/0.5678, allocations: 1.084 MB / 0.6432 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.5679, allocations: 309.1 kB / 0.6435 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.5707, allocations: 1.701 MB / 0.6452 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005867/0.5766, allocations: 5.123 MB / 0.6502 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009431/0.586, allocations: 7.399 MB / 0.6574 GB, free: 7.824 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/0.5862, allocations: 32 kB / 0.6574 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01304/0.5992, allocations: 6.716 MB / 0.664 GB, free: 1.07 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.826e-05/0.5994, allocations: 59.94 kB / 0.664 GB, free: 1.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001467/0.5995, allocations: 120.5 kB / 0.6641 GB, free: 0.8945 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006892/0.6002, allocations: 320.7 kB / 0.6644 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/0.6042, allocations: 1.236 MB / 0.6657 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002914/0.6071, allocations: 2.501 MB / 0.6681 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003669/0.6108, allocations: 291.6 kB / 0.6684 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007297/0.6115, allocations: 335.9 kB / 0.6687 GB, free: 12.09 MB / 0.5294 GB 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.003206/0.6148, allocations: 1.791 MB / 0.6704 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006986/0.6155, allocations: 325.8 kB / 0.6708 GB, free: 9.961 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005042/0.6205, allocations: 2.359 MB / 0.6731 GB, free: 7.586 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.678e-05/0.6206, allocations: 20.06 kB / 0.6731 GB, free: 7.566 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/0.6206, allocations: 8.047 kB / 0.6731 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.6206, allocations: 11.95 kB / 0.6731 GB, free: 7.547 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/0.6322, allocations: 5.906 MB / 0.6789 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/0.6323, allocations: 3.938 kB / 0.6789 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008484/0.6331, allocations: 171.8 kB / 0.679 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/0.6353, allocations: 0.7148 MB / 0.6797 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/0.6355, allocations: 31.86 kB / 0.6798 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006448/0.642, allocations: 4.814 MB / 0.6845 GB, free: 11.69 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.642, allocations: 4 kB / 0.6845 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00735/0.6493, allocations: 4.347 MB / 0.6887 GB, free: 7.309 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009902/0.6504, allocations: 378.7 kB / 0.6891 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004677/0.6509, allocations: 20 kB / 0.6891 GB, free: 6.898 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.6521, allocations: 71.84 kB / 0.6892 GB, free: 6.828 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002479/0.6524, allocations: 68.56 kB / 0.6892 GB, free: 6.762 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.542e-05/0.6525, allocations: 28 kB / 0.6893 GB, free: 6.734 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004044/0.6565, allocations: 2.327 MB / 0.6915 GB, free: 4.422 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.031e-06/0.6566, allocations: 4.062 kB / 0.6915 GB, free: 4.418 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004678/0.6612, allocations: 0.8202 MB / 0.6923 GB, free: 3.598 MB / 0.545 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.008033/0.6693, allocations: 4.978 MB / 0.6972 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007146/0.6765, allocations: 4.034 MB / 0.7011 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/0.6765, allocations: 7.938 kB / 0.7011 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.6783, allocations: 1.1 MB / 0.7022 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/0.6812, allocations: 395.5 kB / 0.7026 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3137/0.9949, allocations: 37.72 MB / 0.7394 GB, free: 175.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003199/0.9981, allocations: 2.778 MB / 0.7421 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004134/1.002, allocations: 1.665 MB / 0.7438 GB, free: 174 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002066/1.004, allocations: 1.518 MB / 0.7452 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.292e-06/1.004, allocations: 1.094 kB / 0.7452 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09444/1.099, allocations: 57.69 MB / 0.8016 GB, free: 123.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.35/25.45, allocations: 9.328 kB / 0.8016 GB, free: 123.2 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches