Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007671/0.0007671, allocations: 95.53 kB / 295.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3145/0.3145, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002545, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3057, allocations: 62.96 MB / 0.516 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.01616/0.3219, allocations: 23.61 MB / 0.539 GB, free: 20.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.333, allocations: 5.976 MB / 0.5449 GB, free: 16.2 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003848/0.3369, allocations: 115.6 kB / 0.545 GB, free: 16.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002816/0.3398, allocations: 1.034 MB / 0.546 GB, free: 15.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008328/0.3481, allocations: 3.324 MB / 0.5492 GB, free: 14.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001978/0.3501, allocations: 472.1 kB / 0.5497 GB, free: 14.26 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003209/0.3534, allocations: 1.957 MB / 0.5516 GB, free: 13.59 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003384/0.3568, allocations: 2.203 MB / 0.5537 GB, free: 12.63 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.358, allocations: 0.5192 MB / 0.5542 GB, free: 12.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00146/0.3595, allocations: 0.7843 MB / 0.555 GB, free: 12.21 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002148/0.3597, allocations: 53.94 kB / 0.5551 GB, free: 12.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/0.361, allocations: 0.522 MB / 0.5556 GB, free: 12.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008898/0.3619, allocations: 0.6206 MB / 0.5562 GB, free: 11.9 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008059/0.3628, allocations: 0.6994 MB / 0.5569 GB, free: 11.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002524/0.3653, allocations: 1.898 MB / 0.5587 GB, free: 10.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3653, allocations: 0.9688 kB / 0.5587 GB, free: 10.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3653, allocations: 0 / 0.5587 GB, free: 10.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.08e-05/0.3654, allocations: 0 / 0.5587 GB, free: 10.61 MB / 378.7 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.003705/0.3691, allocations: 1.705 MB / 0.5604 GB, free: 9.348 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.379e-05/0.3692, allocations: 9.406 kB / 0.5604 GB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003427/0.3695, allocations: 245.2 kB / 0.5606 GB, free: 9.164 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.3708, allocations: 279.6 kB / 0.5609 GB, free: 9.031 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.373, allocations: 1.266 MB / 0.5621 GB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.719e-05/0.3731, allocations: 104.8 kB / 0.5622 GB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/0.3733, allocations: 124.6 kB / 0.5623 GB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00511/0.3784, allocations: 2.983 MB / 0.5653 GB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.003e-05/0.3784, allocations: 14.75 kB / 0.5653 GB, free: 6.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.3786, allocations: 54.5 kB / 0.5653 GB, free: 6.184 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006365/0.3792, allocations: 436.2 kB / 0.5657 GB, free: 6.016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004027/0.3833, allocations: 2.16 MB / 0.5678 GB, free: 3.848 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01203/0.3953, allocations: 10.74 MB / 0.5783 GB, free: 8.844 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003652/0.399, allocations: 1.237 MB / 0.5795 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005591/0.3996, allocations: 401 kB / 0.5799 GB, free: 7.195 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003529/0.4031, allocations: 2.993 MB / 0.5828 GB, free: 3.953 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.4032, allocations: 50.92 kB / 0.5829 GB, free: 3.895 MB / 394.7 MB Notification: Performance of pre-optimization done (n=51): time 2.154e-06/0.4032, allocations: 4 kB / 0.5829 GB, free: 3.891 MB / 394.7 MB Notification: Performance of matching and sorting (n=57): time 0.01099/0.4142, allocations: 3.741 MB / 0.5866 GB, free: 36 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.4143, allocations: 89.61 kB / 0.5866 GB, free: 15.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.4159, allocations: 1.19 MB / 0.5878 GB, free: 14.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.4159, allocations: 37.64 kB / 0.5878 GB, free: 14.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006525/0.4166, allocations: 0.9395 MB / 0.5888 GB, free: 13.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.4168, allocations: 225 kB / 0.589 GB, free: 13.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.4168, allocations: 31.94 kB / 0.589 GB, free: 13.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.417, allocations: 369.9 kB / 0.5893 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006046/0.4176, allocations: 403.7 kB / 0.5897 GB, free: 12.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.4187, allocations: 1.231 MB / 0.5909 GB, free: 11.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.4205, allocations: 1.787 MB / 0.5927 GB, free: 8.875 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.4206, allocations: 8 kB / 0.5927 GB, free: 8.867 MB / 410.7 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.002476/0.4231, allocations: 1.695 MB / 0.5943 GB, free: 7.164 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.4231, allocations: 20 kB / 0.5944 GB, free: 7.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/0.4231, allocations: 32 kB / 0.5944 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002122/0.4234, allocations: 84.81 kB / 0.5945 GB, free: 7.027 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.4244, allocations: 355.4 kB / 0.5948 GB, free: 6.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.4259, allocations: 1.698 MB / 0.5965 GB, free: 4.848 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009452/0.4268, allocations: 63.98 kB / 0.5965 GB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-05/0.4269, allocations: 92.06 kB / 0.5966 GB, free: 4.695 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001073/0.428, allocations: 0.6284 MB / 0.5972 GB, free: 4.055 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.4282, allocations: 114.5 kB / 0.5973 GB, free: 3.941 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.4294, allocations: 0.7184 MB / 0.598 GB, free: 3.203 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.4294, allocations: 7.938 kB / 0.5981 GB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4294, allocations: 4 kB / 0.5981 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.4294, allocations: 3.984 kB / 0.5981 GB, free: 3.188 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003316/0.4327, allocations: 2.224 MB / 0.6002 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4328, allocations: 4.625 kB / 0.6002 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003621/0.4331, allocations: 107.8 kB / 0.6003 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001846/0.4333, allocations: 60.81 kB / 0.6004 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.062e-05/0.4334, allocations: 16 kB / 0.6004 GB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001478/0.4348, allocations: 1.745 MB / 0.6021 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.4349, allocations: 15.91 kB / 0.6021 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.4362, allocations: 1.095 MB / 0.6032 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002823/0.4365, allocations: 183.6 kB / 0.6034 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.5e-05/0.4366, allocations: 16.06 kB / 0.6034 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.437, allocations: 27.98 kB / 0.6034 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.289e-05/0.4371, allocations: 47.81 kB / 0.6035 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.4371, allocations: 20 kB / 0.6035 GB, free: 13.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001021/0.4382, allocations: 0.7599 MB / 0.6042 GB, free: 12.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4382, allocations: 0 / 0.6042 GB, free: 12.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001364/0.4395, allocations: 296 kB / 0.6045 GB, free: 12.24 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001755/0.4413, allocations: 1.659 MB / 0.6061 GB, free: 10.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00165/0.443, allocations: 1.081 MB / 0.6072 GB, free: 9.418 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.443, allocations: 0 / 0.6072 GB, free: 9.418 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005134/0.4435, allocations: 411.3 kB / 0.6076 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.445, allocations: 173 kB / 0.6077 GB, free: 8.836 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/0.4575, allocations: 8.744 MB / 0.6163 GB, free: 15.33 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/0.4586, allocations: 1.443 MB / 0.6177 GB, free: 13.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006667/0.4593, allocations: 0.5891 MB / 0.6183 GB, free: 13.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4593, allocations: 3.938 kB / 0.6183 GB, free: 13.26 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.12/4.579, allocations: 27.63 MB / 0.6453 GB, free: 1.613 MB / 458.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_PrismaticInit_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/PrismaticInit/PrismaticInit.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches