Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.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.PrismaticInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_PrismaticInit",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.001103/0.001103, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001107/0.001107, allocations: 183.8 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.348/1.348, 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.21/0.21, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3399, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.008874/0.3488, allocations: 8.663 MB / 0.5269 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007033/0.3559, allocations: 3.448 MB / 0.5303 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001175/0.3571, allocations: 49.06 kB / 0.5303 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002456/0.3596, allocations: 1.364 MB / 0.5316 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002363/0.362, allocations: 0.958 MB / 0.5326 GB, free: 9.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.3631, allocations: 0.5169 MB / 0.5331 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001901/0.365, allocations: 1.678 MB / 0.5347 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.3666, allocations: 1.675 MB / 0.5364 GB, free: 7.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008536/0.3675, allocations: 0.6676 MB / 0.537 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.3686, allocations: 0.8843 MB / 0.5379 GB, free: 6.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002103/0.3688, allocations: 138.4 kB / 0.538 GB, free: 6.125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001121/0.3699, allocations: 0.6013 MB / 0.5386 GB, free: 5.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007226/0.3706, allocations: 0.7285 MB / 0.5393 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000817/0.3715, allocations: 0.8372 MB / 0.5401 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002968/0.3744, allocations: 2.514 MB / 0.5426 GB, free: 3.102 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3745, allocations: 0 / 0.5426 GB, free: 3.102 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3745, allocations: 3.938 kB / 0.5426 GB, free: 3.098 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.46e-05/0.3745, allocations: 0 / 0.5426 GB, free: 3.098 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 449 * Number of variables: 449 Notification: Performance of Generate backend data structure: time 0.003747/0.3783, allocations: 2.065 MB / 0.5446 GB, free: 1.168 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.3783, allocations: 12.03 kB / 0.5446 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002672/0.3786, allocations: 245.5 kB / 0.5448 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/0.3797, allocations: 283.5 kB / 0.5451 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002342/0.3821, allocations: 1.399 MB / 0.5465 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.556e-05/0.3821, allocations: 94.39 kB / 0.5466 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.3824, allocations: 135.8 kB / 0.5467 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005149/0.3875, allocations: 2.984 MB / 0.5496 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.731e-05/0.3876, allocations: 11.92 kB / 0.5496 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.3877, allocations: 63.91 kB / 0.5497 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005868/0.3883, allocations: 426 kB / 0.5501 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004602/0.3929, allocations: 2.163 MB / 0.5522 GB, free: 9.117 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01201/0.4049, allocations: 10.71 MB / 0.5627 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003829/0.4088, allocations: 1.242 MB / 0.5639 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005785/0.4094, allocations: 403.2 kB / 0.5642 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003915/0.4133, allocations: 2.998 MB / 0.5672 GB, free: 9.227 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.4134, allocations: 43 kB / 0.5672 GB, free: 9.176 MB / 430.1 MB Notification: Performance of pre-optimization done (n=51): time 2.264e-06/0.4134, allocations: 0 / 0.5672 GB, free: 9.176 MB / 430.1 MB Notification: Performance of matching and sorting (n=57): time 0.01179/0.4252, allocations: 3.775 MB / 0.5709 GB, free: 5.293 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.4253, allocations: 89.66 kB / 0.571 GB, free: 5.184 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00168/0.427, allocations: 1.194 MB / 0.5722 GB, free: 3.977 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.4271, allocations: 37.7 kB / 0.5722 GB, free: 3.934 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007604/0.4278, allocations: 0.978 MB / 0.5731 GB, free: 2.945 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.428, allocations: 226.2 kB / 0.5734 GB, free: 2.723 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004022/0.4284, allocations: 311.4 kB / 0.5737 GB, free: 2.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4286, allocations: 301.1 kB / 0.5739 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000607/0.4292, allocations: 407.7 kB / 0.5743 GB, free: 1.715 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.4305, allocations: 1.254 MB / 0.5756 GB, free: 48 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/0.4323, allocations: 1.791 MB / 0.5773 GB, free: 13.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.458e-05/0.4324, allocations: 8 kB / 0.5773 GB, free: 13.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.002398/0.4348, allocations: 1.711 MB / 0.579 GB, free: 12.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.4348, allocations: 26.8 kB / 0.579 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/0.4349, allocations: 28 kB / 0.579 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.4351, allocations: 84.83 kB / 0.5791 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4361, allocations: 351.4 kB / 0.5795 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/0.4377, allocations: 1.877 MB / 0.5813 GB, free: 9.613 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009115/0.4387, allocations: 76.05 kB / 0.5814 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.375e-05/0.4388, allocations: 84 kB / 0.5814 GB, free: 9.457 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 189 * Array equations: 0 * 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.0009831/0.4398, allocations: 0.6383 MB / 0.5821 GB, free: 8.809 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.4399, allocations: 123.2 kB / 0.5822 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.4411, allocations: 0.7107 MB / 0.5829 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.4411, allocations: 7.984 kB / 0.5829 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4411, allocations: 4 kB / 0.5829 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.4411, allocations: 0 / 0.5829 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003262/0.4444, allocations: 2.227 MB / 0.5851 GB, free: 5.617 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.4444, allocations: 7.938 kB / 0.5851 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.4447, allocations: 95.89 kB / 0.5852 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001827/0.4449, allocations: 73.19 kB / 0.5852 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.445, allocations: 15.94 kB / 0.5852 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001518/0.4465, allocations: 1.948 MB / 0.5871 GB, free: 3.344 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4465, allocations: 4 kB / 0.5872 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.4478, allocations: 1.109 MB / 0.5882 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.4481, allocations: 180.3 kB / 0.5884 GB, free: 1.961 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.4482, allocations: 19.98 kB / 0.5884 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/0.4485, allocations: 24.05 kB / 0.5884 GB, free: 1.918 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.4486, allocations: 55.89 kB / 0.5885 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.4487, allocations: 20 kB / 0.5885 GB, free: 1.844 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009027/0.4496, allocations: 0.7638 MB / 0.5893 GB, free: 1.074 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4496, allocations: 0 / 0.5893 GB, free: 1.074 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001349/0.4509, allocations: 299.9 kB / 0.5896 GB, free: 0.7812 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * 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,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001773/0.4527, allocations: 1.678 MB / 0.5912 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.4544, allocations: 1.104 MB / 0.5923 GB, free: 13.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.4544, allocations: 0 / 0.5923 GB, free: 13.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005217/0.4549, allocations: 411.8 kB / 0.5927 GB, free: 13.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009477/0.4559, allocations: 184.8 kB / 0.5928 GB, free: 13.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.4697, allocations: 11.49 MB / 0.6041 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.4709, allocations: 1.451 MB / 0.6055 GB, free: 15.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008906/0.4718, allocations: 409.7 kB / 0.6059 GB, free: 14.88 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006078/0.4724, allocations: 0.5813 MB / 0.6064 GB, free: 14.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4724, allocations: 3.938 kB / 0.6064 GB, free: 14.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05021/0.5226, allocations: 23.09 MB / 0.629 GB, free: 7.422 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.88, allocations: 3.938 kB / 0.629 GB, free: 7.418 MB / 494.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/PrismaticInit/PrismaticInit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches