Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.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.PrismaticInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001149/0.001149, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2087/0.2087, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 75.88 kB / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3842, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.01249/0.3968, allocations: 8.636 MB / 0.539 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009548/0.4064, allocations: 3.467 MB / 0.5423 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002064/0.4085, allocations: 45.88 kB / 0.5424 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003003/0.4116, allocations: 1.365 MB / 0.5437 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003591/0.4152, allocations: 0.9315 MB / 0.5446 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001519/0.4167, allocations: 0.5243 MB / 0.5451 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003186/0.4199, allocations: 1.731 MB / 0.5468 GB, free: 1.016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002351/0.4223, allocations: 1.648 MB / 0.5484 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.4238, allocations: 0.6542 MB / 0.5491 GB, free: 14.67 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.4255, allocations: 0.8841 MB / 0.5499 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005042/0.426, allocations: 144 kB / 0.5501 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.4276, allocations: 0.5773 MB / 0.5506 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.4286, allocations: 0.7286 MB / 0.5514 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001633/0.4303, allocations: 0.8315 MB / 0.5522 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004168/0.4345, allocations: 2.482 MB / 0.5546 GB, free: 9.012 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4345, allocations: 0 / 0.5546 GB, free: 9.012 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4345, allocations: 0 / 0.5546 GB, free: 9.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.74e-05/0.4346, allocations: 3.984 kB / 0.5546 GB, free: 9.008 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: 449 * Number of variables: 449 Notification: Performance of Generate backend data structure: time 0.005332/0.44, allocations: 2.062 MB / 0.5566 GB, free: 6.887 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.44, allocations: 12.03 kB / 0.5566 GB, free: 6.875 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005444/0.4406, allocations: 241.5 kB / 0.5569 GB, free: 6.629 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.442, allocations: 287.5 kB / 0.5571 GB, free: 6.348 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003429/0.4454, allocations: 1.282 MB / 0.5584 GB, free: 5.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.4456, allocations: 98.39 kB / 0.5585 GB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005285/0.4462, allocations: 124 kB / 0.5586 GB, free: 4.801 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008803/0.455, allocations: 3.004 MB / 0.5615 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/0.4552, allocations: 15.88 kB / 0.5615 GB, free: 1.586 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003486/0.4556, allocations: 55.97 kB / 0.5616 GB, free: 1.531 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007007/0.4563, allocations: 430 kB / 0.562 GB, free: 1.109 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005971/0.4623, allocations: 2.183 MB / 0.5641 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0161/0.4785, allocations: 10.72 MB / 0.5746 GB, free: 3.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004267/0.4828, allocations: 1.243 MB / 0.5758 GB, free: 2.668 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007789/0.4836, allocations: 419.1 kB / 0.5762 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004629/0.4883, allocations: 3.077 MB / 0.5792 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.4884, allocations: 39 kB / 0.5793 GB, free: 14.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=51): time 3.116e-06/0.4884, allocations: 0 / 0.5793 GB, free: 14.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=57): time 0.01208/0.5005, allocations: 3.806 MB / 0.583 GB, free: 10.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.696e-05/0.5006, allocations: 89.67 kB / 0.5831 GB, free: 10.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.5026, allocations: 1.202 MB / 0.5842 GB, free: 9.621 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.737e-05/0.5026, allocations: 33.7 kB / 0.5843 GB, free: 9.582 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008198/0.5035, allocations: 0.9663 MB / 0.5852 GB, free: 8.605 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.5037, allocations: 226.2 kB / 0.5854 GB, free: 8.383 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004597/0.5042, allocations: 315.4 kB / 0.5857 GB, free: 8.066 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.5043, allocations: 305.1 kB / 0.586 GB, free: 7.766 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007289/0.5051, allocations: 415.7 kB / 0.5864 GB, free: 7.359 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/0.5064, allocations: 1.246 MB / 0.5876 GB, free: 5.703 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/0.5086, allocations: 1.806 MB / 0.5894 GB, free: 3.484 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-05/0.5086, allocations: 8 kB / 0.5894 GB, free: 3.477 MB / 446.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.002924/0.5116, allocations: 1.716 MB / 0.5911 GB, free: 1.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.851e-05/0.5116, allocations: 20 kB / 0.5911 GB, free: 1.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.362e-05/0.5117, allocations: 28 kB / 0.5911 GB, free: 1.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002872/0.512, allocations: 92.84 kB / 0.5912 GB, free: 1.609 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.5131, allocations: 359.4 kB / 0.5916 GB, free: 1.258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.515, allocations: 1.877 MB / 0.5934 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.5161, allocations: 63.98 kB / 0.5934 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.5162, allocations: 88 kB / 0.5935 GB, free: 15.09 MB / 462.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.001186/0.5174, allocations: 0.6439 MB / 0.5942 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003693/0.5178, allocations: 119.2 kB / 0.5943 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004171/0.5182, allocations: 139.6 kB / 0.5944 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.5183, allocations: 4 kB / 0.5944 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-05/0.5183, allocations: 4 kB / 0.5944 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.5183, allocations: 3.984 kB / 0.5944 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005108/0.5234, allocations: 2.239 MB / 0.5966 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.5234, allocations: 4.5 kB / 0.5966 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/0.5239, allocations: 99.83 kB / 0.5967 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002062/0.5241, allocations: 68.8 kB / 0.5968 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/0.5241, allocations: 16 kB / 0.5968 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/0.526, allocations: 1.944 MB / 0.5987 GB, free: 9.551 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/0.526, allocations: 7.938 kB / 0.5987 GB, free: 9.543 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.528, allocations: 1.116 MB / 0.5998 GB, free: 8.363 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000462/0.5284, allocations: 180.3 kB / 0.6 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002077/0.5287, allocations: 19.94 kB / 0.6 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.5292, allocations: 31.91 kB / 0.6 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.449e-05/0.5292, allocations: 47.95 kB / 0.6001 GB, free: 8.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.5293, allocations: 20 kB / 0.6001 GB, free: 8.051 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.5306, allocations: 0.7674 MB / 0.6008 GB, free: 7.277 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5306, allocations: 0 / 0.6008 GB, free: 7.277 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00172/0.5323, allocations: 299.9 kB / 0.6011 GB, free: 6.984 MB / 462.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.002542/0.5349, allocations: 1.678 MB / 0.6027 GB, free: 5.223 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002492/0.5374, allocations: 1.093 MB / 0.6038 GB, free: 4.125 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/0.5375, allocations: 8.062 kB / 0.6038 GB, free: 4.117 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006644/0.5381, allocations: 422.5 kB / 0.6042 GB, free: 3.691 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/0.5395, allocations: 184.8 kB / 0.6044 GB, free: 3.512 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/0.5595, allocations: 11.49 MB / 0.6156 GB, free: 6.961 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/0.5613, allocations: 1.447 MB / 0.617 GB, free: 5.477 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001065/0.5624, allocations: 409.6 kB / 0.6174 GB, free: 5.074 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008646/0.5633, allocations: 0.5774 MB / 0.618 GB, free: 4.496 MB / 478.1 MB Notification: Performance of SimCode: time 1.223e-06/0.5633, allocations: 0 / 0.618 GB, free: 4.496 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0593/0.6226, allocations: 22.97 MB / 0.6404 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/12.05, allocations: 10.8 kB / 0.6404 GB, free: 13.73 MB / 0.4981 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches