Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009322/0.0009322, allocations: 88.11 kB / 286.5 MB, free: 168 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.442e-05, allocations: 0 / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1175, allocations: 50.42 MB / 394.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4134/0.531, allocations: 114.4 MB / 0.4968 GB, free: 5.004 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.5313, allocations: 83.95 kB / 0.4969 GB, free: 4.922 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6152/1.147, allocations: 134.5 MB / 0.6283 GB, free: 77.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.677e-06/1.147, allocations: 0 / 0.6283 GB, free: 77.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007207/1.147, allocations: 144 kB / 0.6284 GB, free: 77 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.02955/1.177, allocations: 7.139 MB / 0.6354 GB, free: 69.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/1.177, allocations: 12.03 kB / 0.6354 GB, free: 69.77 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006364/1.183, allocations: 1.264 MB / 0.6366 GB, free: 68.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01501/1.198, allocations: 3.006 MB / 0.6395 GB, free: 65.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02003/1.218, allocations: 7.291 MB / 0.6467 GB, free: 58.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006023/1.219, allocations: 0.5576 MB / 0.6472 GB, free: 57.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004035/1.223, allocations: 0.734 MB / 0.6479 GB, free: 56.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04848/1.272, allocations: 17.95 MB / 0.6655 GB, free: 37.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006088/1.272, allocations: 79.33 kB / 0.6655 GB, free: 37.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003779/1.276, allocations: 347.9 kB / 0.6659 GB, free: 37.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00242/1.279, allocations: 1.559 MB / 0.6674 GB, free: 35.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03325/1.312, allocations: 14.62 MB / 0.6817 GB, free: 20.98 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7228/2.035, allocations: 74.6 MB / 0.7545 GB, free: 41.24 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02516/2.06, allocations: 7.73 MB / 0.7621 GB, free: 40.57 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004857/2.065, allocations: 3.348 MB / 0.7653 GB, free: 40.53 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02203/2.087, allocations: 14.54 MB / 0.7795 GB, free: 36.77 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.668e-05/2.087, allocations: 59.88 kB / 0.7796 GB, free: 36.73 MB / 442.8 MB Notification: Performance of pre-optimization done (n=247): time 6.823e-06/2.087, allocations: 0 / 0.7796 GB, free: 36.73 MB / 442.8 MB Notification: Performance of matching and sorting (n=293): time 0.1644/2.252, allocations: 45.87 MB / 0.8244 GB, free: 27.25 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.514e-05/2.252, allocations: 160.4 kB / 0.8245 GB, free: 27.1 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01173/2.263, allocations: 4.98 MB / 0.8294 GB, free: 23.38 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009471/2.264, allocations: 69.7 kB / 0.8295 GB, free: 23.31 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003916/2.268, allocations: 4.879 MB / 0.8342 GB, free: 18.95 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001818/2.27, allocations: 1.113 MB / 0.8353 GB, free: 17.97 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/2.272, allocations: 168.9 kB / 0.8355 GB, free: 17.81 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009285/2.273, allocations: 0.674 MB / 0.8361 GB, free: 17.23 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006794/2.279, allocations: 3.871 MB / 0.8399 GB, free: 13.7 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009367/2.289, allocations: 8.966 MB / 0.8487 GB, free: 2.871 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01058/2.299, allocations: 5.821 MB / 0.8544 GB, free: 14.23 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000292/2.3, allocations: 56 kB / 0.8544 GB, free: 14.18 MB / 458.8 MB Notification: Performance of matching and sorting (n=1125) (initialization): time 0.08035/2.38, allocations: 23.74 MB / 0.8776 GB, free: 8.23 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002915/2.38, allocations: 84 kB / 0.8777 GB, free: 8.148 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004669/2.381, allocations: 187.5 kB / 0.8779 GB, free: 7.969 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01655/2.397, allocations: 5.418 MB / 0.8832 GB, free: 2.586 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008344/2.406, allocations: 2.027 MB / 0.8851 GB, free: 0.5547 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4119/2.818, allocations: 33.06 MB / 0.9174 GB, free: 113.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01057/2.828, allocations: 0.602 MB / 0.918 GB, free: 113.1 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002792/2.831, allocations: 0.4947 MB / 0.9185 GB, free: 113.1 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 67 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],jointPrismatic_y.boxColor[3],jointPrismatic_y.boxColor[2],jointPrismatic_y.boxColor[1],jointPrismatic_x.boxColor[3],jointPrismatic_x.boxColor[2],jointPrismatic_x.boxColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1042): * Single equations (assignments): 1031 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(5,60.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 6,(4,100.0%) 9,(4,100.0%) 9} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.003801/2.835, allocations: 0.7788 MB / 0.9192 GB, free: 112.9 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001937/2.837, allocations: 0.5128 MB / 0.9197 GB, free: 112.9 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06114/2.898, allocations: 17.25 MB / 0.9366 GB, free: 112.5 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001209/2.898, allocations: 44.45 kB / 0.9366 GB, free: 112.5 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.59e-05/2.898, allocations: 12.16 kB / 0.9366 GB, free: 112.5 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.934e-05/2.899, allocations: 19.67 kB / 0.9367 GB, free: 112.5 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.084/2.983, allocations: 27.85 MB / 0.9639 GB, free: 106.5 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.723e-05/2.983, allocations: 9.578 kB / 0.9639 GB, free: 106.5 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003433/2.986, allocations: 0.5235 MB / 0.9644 GB, free: 106.5 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01479/3.001, allocations: 5.165 MB / 0.9694 GB, free: 105.4 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008096/3.002, allocations: 54.64 kB / 0.9695 GB, free: 105.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04076/3.043, allocations: 32.61 MB / 1.001 GB, free: 84.72 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/3.043, allocations: 0 / 1.001 GB, free: 84.72 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06433/3.107, allocations: 22.14 MB / 1.023 GB, free: 64.3 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002259/3.109, allocations: 0.5361 MB / 1.023 GB, free: 63.82 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002419/3.112, allocations: 47.98 kB / 1.024 GB, free: 63.77 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005185/3.117, allocations: 301.9 kB / 1.024 GB, free: 63.48 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00143/3.118, allocations: 174.1 kB / 1.024 GB, free: 63.31 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007728/3.119, allocations: 81.16 kB / 1.024 GB, free: 63.23 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007982/3.127, allocations: 3.449 MB / 1.027 GB, free: 59.82 MB / 490.8 MB Notification: Performance of sort global known variables: time 6.31e-07/3.127, allocations: 0 / 1.027 GB, free: 59.82 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01151/3.139, allocations: 1.861 MB / 1.029 GB, free: 57.98 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (jointPrismatic_x.s,jointPrismatic_x.v,jointPrismatic_y.s,jointPrismatic_y.v,bodyOfConstraint.v_0[2],bodyOfConstraint.v_0[3],bodyOfConstraint.body.frame_a.r_0[2],bodyOfConstraint.body.frame_a.r_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 201 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 6,(5,60.0%) 4,(2,100.0%) 1,(4,100.0%) 9,(4,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 1 {4 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.06664/3.205, allocations: 23.04 MB / 1.052 GB, free: 34.9 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02156/3.227, allocations: 10.86 MB / 1.062 GB, free: 24.52 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/3.227, allocations: 0 / 1.062 GB, free: 24.52 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01194/3.239, allocations: 5.061 MB / 1.067 GB, free: 19.39 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005465/3.245, allocations: 0.7486 MB / 1.068 GB, free: 18.7 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3153/3.56, allocations: 16.48 MB / 1.084 GB, free: 121.1 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01052/3.571, allocations: 5.174 MB / 1.089 GB, free: 120.2 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.009592/3.58, allocations: 2.684 MB / 1.092 GB, free: 120.1 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006318/3.586, allocations: 3.232 MB / 1.095 GB, free: 120.1 MB / 490.8 MB Notification: Performance of SimCode: time 1.273e-06/3.587, allocations: 0 / 1.095 GB, free: 120.1 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.213/3.8, allocations: 151.3 MB / 1.243 GB, free: 11.91 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/3.8, allocations: 203.7 kB / 1.243 GB, free: 11.69 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.227/11.03, allocations: 0 / 1.243 GB, free: 11.69 MB / 490.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat does not exist to compare? outputFormat=mat