Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001608/0.001607, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.951/1.951, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001837/0.001836, allocations: 96.31 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003993/0.0003994, allocations: 11.98 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3293, allocations: 47.56 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1887/0.5181, allocations: 113.1 MB / 487.8 MB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003515/0.5185, allocations: 95.95 kB / 487.8 MB, free: 15.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7871/1.306, allocations: 137.5 MB / 0.6107 GB, free: 4.141 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.347e-06/1.306, allocations: 0 / 0.6107 GB, free: 4.141 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000485/1.306, allocations: 152 kB / 0.6109 GB, free: 3.992 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: 2584 * Number of variables: 2584 Notification: Performance of Generate backend data structure: time 0.03878/1.345, allocations: 7.754 MB / 0.6184 GB, free: 12.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/1.345, allocations: 8.031 kB / 0.6185 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006673/1.352, allocations: 1.309 MB / 0.6197 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02508/1.377, allocations: 3.055 MB / 0.6227 GB, free: 7.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03103/1.408, allocations: 7.747 MB / 0.6303 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009498/1.409, allocations: 0.5697 MB / 0.6308 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004561/1.414, allocations: 0.7652 MB / 0.6316 GB, free: 14.58 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7217/2.135, allocations: 18.66 MB / 0.6498 GB, free: 49.13 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005299/2.136, allocations: 78.77 kB / 0.6499 GB, free: 49.13 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003658/2.14, allocations: 359.9 kB / 0.6502 GB, free: 49.13 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004/2.144, allocations: 1.635 MB / 0.6518 GB, free: 49.12 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05069/2.194, allocations: 15.38 MB / 0.6668 GB, free: 49.07 MB / 410.8 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.1301/2.325, allocations: 76.58 MB / 0.7416 GB, free: 20.08 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04096/2.366, allocations: 8.016 MB / 0.7495 GB, free: 17.79 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03686/2.403, allocations: 15.01 MB / 0.7641 GB, free: 10.05 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.33e-05/2.403, allocations: 60.19 kB / 0.7642 GB, free: 9.992 MB / 426.8 MB Notification: Performance of pre-optimization done (n=268): time 8.576e-06/2.403, allocations: 2.719 kB / 0.7642 GB, free: 9.992 MB / 426.8 MB Notification: Performance of matching and sorting (n=314): time 0.728/3.131, allocations: 55.54 MB / 0.8184 GB, free: 97.55 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.735e-05/3.131, allocations: 161.3 kB / 0.8186 GB, free: 97.39 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01234/3.143, allocations: 5.21 MB / 0.8237 GB, free: 97.06 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008929/3.144, allocations: 71.64 kB / 0.8237 GB, free: 97.03 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004193/3.148, allocations: 4.858 MB / 0.8285 GB, free: 95.33 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002098/3.15, allocations: 1.187 MB / 0.8296 GB, free: 94.65 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/3.152, allocations: 176.7 kB / 0.8298 GB, free: 94.65 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0006951/3.153, allocations: 0.6854 MB / 0.8305 GB, free: 94.32 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01041/3.163, allocations: 4.103 MB / 0.8345 GB, free: 94.3 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0142/3.177, allocations: 9.353 MB / 0.8436 GB, free: 87.53 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01467/3.192, allocations: 5.972 MB / 0.8494 GB, free: 87.48 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002283/3.192, allocations: 53.72 kB / 0.8495 GB, free: 87.48 MB / 458.8 MB Warning: The linear system: 1 : bodyOfConstraint.v_0[1] = 0.2148655148851041 * freeMotionScalarInit.v_rel_a_1 + (-0.5318108111446446) * freeMotionScalarInit.v_rel_a_2 + 0.8191520442889918 * freeMotionScalarInit.v_rel_a_3 2 : 0.0 = 0.8191520442889918 * bodyOfConstraint.v_0[1] + (-0.09960050292505122) * bodyOfConstraint.v_0[2] + 0.5648625214636235 * bodyOfConstraint.v_0[3] 3 : bodyOfConstraint.v_0[2] = 0.9663834860128886 * freeMotionScalarInit.v_rel_a_1 + 0.2370288965055821 * freeMotionScalarInit.v_rel_a_2 + (-0.09960050292505122) * freeMotionScalarInit.v_rel_a_3 4 : bodyOfConstraint.v_0[3] = (-0.1411940808771254) * freeMotionScalarInit.v_rel_a_1 + 0.8130157214783864 * freeMotionScalarInit.v_rel_a_2 + 0.5648625214636235 * freeMotionScalarInit.v_rel_a_3 [ 0.0 , -0.2148655148851041 , 0.0 , 1.0 ; -0.5648625214636235 , 0.0 , 0.09960050292505122 , -0.8191520442889918 ; 0.0 , -0.9663834860128886 , 1.0 , 0.0 ; 1.0 , 0.1411940808771254 , 0.0 , 0.0 ] * [ bodyOfConstraint.v_0[3] ; freeMotionScalarInit.v_rel_a_1 ; bodyOfConstraint.v_0[2] ; bodyOfConstraint.v_0[1] ] = [ (-0.5318108111446446) * freeMotionScalarInit.v_rel_a_2 + 0.8191520442889918 * freeMotionScalarInit.v_rel_a_3 ; -0.0 ; 0.2370288965055821 * freeMotionScalarInit.v_rel_a_2 + (-0.09960050292505122) * freeMotionScalarInit.v_rel_a_3 ; 0.8130157214783864 * freeMotionScalarInit.v_rel_a_2 + 0.5648625214636235 * freeMotionScalarInit.v_rel_a_3 ] might be structurally or numerically singular for variable bodyOfConstraint.v_0[1] since U(4,4) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=1172) (initialization): time 0.1356/3.328, allocations: 24.35 MB / 0.8733 GB, free: 85.89 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001513/3.328, allocations: 85.53 kB / 0.8734 GB, free: 85.89 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000288/3.328, allocations: 191 kB / 0.8735 GB, free: 85.89 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0289/3.357, allocations: 5.456 MB / 0.8789 GB, free: 84.86 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01377/3.371, allocations: 2.128 MB / 0.8809 GB, free: 84.62 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07713/3.448, allocations: 34.49 MB / 0.9146 GB, free: 66.36 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01221/3.461, allocations: 0.6168 MB / 0.9152 GB, free: 66.2 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002282/3.463, allocations: 0.5212 MB / 0.9157 GB, free: 66.12 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 63 (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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1078 * 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.01004/3.473, allocations: 3.408 MB / 0.9191 GB, free: 63.61 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001579/3.475, allocations: 0.5356 MB / 0.9196 GB, free: 63.07 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1175/3.592, allocations: 17.63 MB / 0.9368 GB, free: 51.02 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.113e-05/3.592, allocations: 47.94 kB / 0.9368 GB, free: 50.97 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-05/3.592, allocations: 19.28 kB / 0.9369 GB, free: 50.96 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.757e-05/3.593, allocations: 10.92 kB / 0.9369 GB, free: 50.96 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.167/3.76, allocations: 28.54 MB / 0.9647 GB, free: 25.22 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-05/3.76, allocations: 0 / 0.9647 GB, free: 25.22 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00617/3.766, allocations: 0.5616 MB / 0.9653 GB, free: 24.66 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02861/3.794, allocations: 5.197 MB / 0.9704 GB, free: 19.52 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009119/3.795, allocations: 60.53 kB / 0.9704 GB, free: 19.46 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4016/4.197, allocations: 34 MB / 1.004 GB, free: 80.67 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/4.197, allocations: 6.375 kB / 1.004 GB, free: 80.67 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1274/4.325, allocations: 22.7 MB / 1.026 GB, free: 79.74 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004556/4.329, allocations: 1.21 MB / 1.027 GB, free: 79.65 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002017/4.331, allocations: 58.28 kB / 1.027 GB, free: 79.65 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007292/4.339, allocations: 309 kB / 1.027 GB, free: 79.65 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001752/4.34, allocations: 191.5 kB / 1.028 GB, free: 79.64 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000649/4.341, allocations: 87.22 kB / 1.028 GB, free: 79.64 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.009706/4.351, allocations: 3.623 MB / 1.031 GB, free: 79.43 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.143e-06/4.351, allocations: 0 / 1.031 GB, free: 79.43 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01263/4.364, allocations: 1.925 MB / 1.033 GB, free: 79.43 MB / 458.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 224 * 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.1277/4.491, allocations: 23.62 MB / 1.056 GB, free: 72.71 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03482/4.526, allocations: 11.35 MB / 1.067 GB, free: 68.73 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/4.526, allocations: 0 / 1.067 GB, free: 68.73 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0203/4.546, allocations: 5.261 MB / 1.072 GB, free: 64.5 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006575/4.553, allocations: 0.7513 MB / 1.073 GB, free: 63.9 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.653/5.206, allocations: 203.4 MB / 1.272 GB, free: 22.57 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01383/5.22, allocations: 5.346 MB / 1.277 GB, free: 21.69 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009058/5.229, allocations: 3.426 MB / 1.28 GB, free: 21.68 MB / 490.8 MB Notification: Performance of SimCode: time 2.765e-06/5.229, allocations: 0 / 1.28 GB, free: 21.68 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.994/12.22, allocations: 349.8 MB / 1.622 GB, free: 61.78 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_PrismaticConstraint.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.PrismaticConstraint_res.mat does not exist to compare? outputFormat=mat