Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.PrismaticInit,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_3_2_3_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.001882/0.001882, allocations: 102.5 kB / 16.27 MB, free: 5.93 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.002434/0.002434, allocations: 188.1 kB / 17.2 MB, free: 5.574 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.495/1.495, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2586/0.2586, allocations: 43.52 MB / 313.9 MB, free: 0.5234 MB / 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.001509/0.00151, allocations: 70.08 kB / 382.8 MB, free: 56.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1307, allocations: 57.79 MB / 440.6 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.01116/0.142, allocations: 8.677 MB / 449.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008267/0.1504, allocations: 3.464 MB / 452.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.1522, allocations: 43.88 kB / 452.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002723/0.1549, allocations: 1.371 MB / 454.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002635/0.1576, allocations: 0.9377 MB / 455.1 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.1588, allocations: 0.5225 MB / 455.6 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002223/0.1611, allocations: 1.691 MB / 457.3 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.163, allocations: 1.663 MB / 459 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.1641, allocations: 0.6737 MB / 459.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.1652, allocations: 0.8918 MB / 460.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002247/0.1655, allocations: 140 kB / 460.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001128/0.1666, allocations: 0.6007 MB / 461.3 MB, free: 2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006728/0.1673, allocations: 0.7248 MB / 462 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008387/0.1681, allocations: 0.8353 MB / 462.9 MB, free: 444 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002885/0.171, allocations: 2.465 MB / 465.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.1711, allocations: 4 kB / 465.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1711, allocations: 0 / 465.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.979e-05/0.1711, allocations: 0 / 465.3 MB, free: 13.96 MB / 350.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.004206/0.1753, allocations: 2.025 MB / 467.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.1754, allocations: 11.89 kB / 467.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002971/0.1757, allocations: 249.5 kB / 467.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/0.1769, allocations: 274.5 kB / 467.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002643/0.1795, allocations: 1.52 MB / 469.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.1796, allocations: 98.38 kB / 469.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/0.1798, allocations: 127.9 kB / 469.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005479/0.1853, allocations: 2.98 MB / 472.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.953e-05/0.1854, allocations: 11.92 kB / 472.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.1855, allocations: 63.91 kB / 472.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006255/0.1862, allocations: 430 kB / 473.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004796/0.191, allocations: 2.163 MB / 475.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0143/0.2053, allocations: 10.75 MB / 486 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004245/0.2096, allocations: 1.227 MB / 487.2 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006313/0.2103, allocations: 407.2 kB / 487.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004323/0.2146, allocations: 3.005 MB / 490.6 MB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.681e-05/0.2147, allocations: 39 kB / 490.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 3.286e-06/0.2147, allocations: 0 / 490.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.01273/0.2274, allocations: 3.799 MB / 494.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.2276, allocations: 89.66 kB / 494.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002077/0.2296, allocations: 1.214 MB / 495.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.595e-05/0.2297, allocations: 37.7 kB / 495.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007719/0.2305, allocations: 0.9433 MB / 496.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.2307, allocations: 221 kB / 497 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004223/0.2311, allocations: 315.1 kB / 497.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.2313, allocations: 301.1 kB / 497.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006761/0.232, allocations: 407.7 kB / 498 MB, free: 12.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.2333, allocations: 1.246 MB / 499.2 MB, free: 10.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00212/0.2354, allocations: 1.791 MB / 0.4893 GB, free: 8.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/0.2355, allocations: 12 kB / 0.4893 GB, free: 8.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.003189/0.2387, allocations: 1.71 MB / 0.4909 GB, free: 6.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.31e-05/0.2387, allocations: 16 kB / 0.491 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-05/0.2388, allocations: 28.06 kB / 0.491 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002634/0.2391, allocations: 101.4 kB / 0.4911 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.2402, allocations: 351.3 kB / 0.4914 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.2424, allocations: 1.876 MB / 0.4932 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.2437, allocations: 63.98 kB / 0.4933 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.2439, allocations: 88 kB / 0.4934 GB, free: 4.012 MB / 382.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.001323/0.2452, allocations: 0.6517 MB / 0.494 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003721/0.2456, allocations: 114.5 kB / 0.4941 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.2471, allocations: 0.7108 MB / 0.4948 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.2471, allocations: 4 kB / 0.4948 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.2472, allocations: 4 kB / 0.4948 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.2472, allocations: 7.984 kB / 0.4948 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.2515, allocations: 2.235 MB / 0.497 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.2515, allocations: 4.125 kB / 0.497 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003709/0.2519, allocations: 99.83 kB / 0.4971 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002161/0.2521, allocations: 69.34 kB / 0.4972 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-05/0.2522, allocations: 16 kB / 0.4972 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.254, allocations: 1.939 MB / 0.4991 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.254, allocations: 7.938 kB / 0.4991 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.256, allocations: 1.103 MB / 0.5002 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006331/0.2566, allocations: 215.7 kB / 0.5004 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003418/0.257, allocations: 16 kB / 0.5004 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000542/0.2575, allocations: 23.98 kB / 0.5004 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.2576, allocations: 47.83 kB / 0.5005 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.795e-05/0.2577, allocations: 19.98 kB / 0.5005 GB, free: 12.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001405/0.2591, allocations: 0.7798 MB / 0.5013 GB, free: 11.6 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2591, allocations: 0 / 0.5013 GB, free: 11.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00167/0.2608, allocations: 296 kB / 0.5015 GB, free: 11.31 MB / 398.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.002173/0.263, allocations: 1.674 MB / 0.5032 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.2654, allocations: 1.206 MB / 0.5044 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.2654, allocations: 0 / 0.5044 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.266, allocations: 407.1 kB / 0.5047 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.2672, allocations: 201.3 kB / 0.5049 GB, free: 7.738 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01922/0.2865, allocations: 12.14 MB / 0.5168 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/0.2884, allocations: 1.455 MB / 0.5182 GB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001238/0.2896, allocations: 413.7 kB / 0.5186 GB, free: 8.453 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008593/0.2905, allocations: 0.5813 MB / 0.5192 GB, free: 7.871 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2905, allocations: 0 / 0.5192 GB, free: 7.871 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3048/0.5954, allocations: 22.73 MB / 0.5414 GB, free: 87.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.93, allocations: 11.81 kB / 0.5414 GB, free: 87.27 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_PrismaticInit_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/PrismaticInit/PrismaticInit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches