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.001586/0.001586, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.085/2.085, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001123/0.001123, allocations: 94.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.259e-05/3.276e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4875/0.5901, allocations: 113 MB / 482.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003382/0.5905, allocations: 92.14 kB / 482.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8511/1.442, allocations: 137.6 MB / 0.6054 GB, free: 78.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.442, allocations: 0 / 0.6054 GB, free: 78.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000554/1.442, allocations: 152 kB / 0.6055 GB, free: 78.46 MB / 410.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.03648/1.479, allocations: 7.321 MB / 0.6127 GB, free: 71.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/1.479, allocations: 8.031 kB / 0.6127 GB, free: 71.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006402/1.485, allocations: 1.309 MB / 0.614 GB, free: 69.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02422/1.509, allocations: 3.063 MB / 0.6169 GB, free: 66.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02925/1.539, allocations: 7.724 MB / 0.6245 GB, free: 58.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007503/1.54, allocations: 0.5775 MB / 0.6251 GB, free: 58.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004326/1.544, allocations: 0.7536 MB / 0.6258 GB, free: 57.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06325/1.607, allocations: 18.52 MB / 0.6439 GB, free: 37.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005675/1.608, allocations: 87.2 kB / 0.644 GB, free: 37.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004139/1.612, allocations: 359.8 kB / 0.6443 GB, free: 37.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004072/1.616, allocations: 1.633 MB / 0.6459 GB, free: 35.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05188/1.668, allocations: 15.16 MB / 0.6607 GB, free: 20.43 MB / 410.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.4792/2.147, allocations: 76.56 MB / 0.7355 GB, free: 41.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04217/2.19, allocations: 7.932 MB / 0.7432 GB, free: 40.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007336/2.197, allocations: 3.463 MB / 0.7466 GB, free: 40.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03884/2.236, allocations: 15 MB / 0.7612 GB, free: 36.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.75e-05/2.236, allocations: 61.91 kB / 0.7613 GB, free: 36.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=268): time 6.923e-06/2.236, allocations: 2.438 kB / 0.7613 GB, free: 36.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=314): time 0.2966/2.533, allocations: 46.69 MB / 0.8069 GB, free: 24.42 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/2.533, allocations: 158.5 kB / 0.8071 GB, free: 24.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01464/2.547, allocations: 5.153 MB / 0.8121 GB, free: 19.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/2.549, allocations: 73.7 kB / 0.8122 GB, free: 19.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00455/2.553, allocations: 4.852 MB / 0.8169 GB, free: 15.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00227/2.555, allocations: 1.195 MB / 0.8181 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001722/2.557, allocations: 176 kB / 0.8182 GB, free: 13.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008562/2.558, allocations: 0.6914 MB / 0.8189 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01047/2.569, allocations: 4.011 MB / 0.8228 GB, free: 9.699 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01478/2.583, allocations: 9.26 MB / 0.8319 GB, free: 14.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01612/2.6, allocations: 5.931 MB / 0.8377 GB, free: 9.465 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002467/2.6, allocations: 52 kB / 0.8377 GB, free: 9.414 MB / 442.7 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.1451/2.745, allocations: 24.17 MB / 0.8613 GB, free: 1.742 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/2.745, allocations: 85.25 kB / 0.8614 GB, free: 1.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003109/2.746, allocations: 184 kB / 0.8616 GB, free: 1.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3552/3.101, allocations: 5.434 MB / 0.8669 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01468/3.115, allocations: 2.124 MB / 0.8689 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07732/3.193, allocations: 33.07 MB / 0.9012 GB, free: 98.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01318/3.206, allocations: 0.6196 MB / 0.9018 GB, free: 98.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00257/3.209, allocations: 0.5186 MB / 0.9023 GB, free: 98.47 MB / 458.7 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 () * 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.004246/3.213, allocations: 0.8012 MB / 0.9031 GB, free: 98.12 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002022/3.215, allocations: 0.5318 MB / 0.9037 GB, free: 98.12 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1186/3.334, allocations: 17.53 MB / 0.9208 GB, free: 94.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/3.334, allocations: 45.44 kB / 0.9208 GB, free: 94.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-05/3.334, allocations: 11.06 kB / 0.9208 GB, free: 94.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.884e-05/3.334, allocations: 14.53 kB / 0.9208 GB, free: 94.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1497/3.484, allocations: 28.43 MB / 0.9486 GB, free: 82.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.152e-05/3.484, allocations: 4 kB / 0.9486 GB, free: 82.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006462/3.49, allocations: 0.5638 MB / 0.9491 GB, free: 82.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02841/3.519, allocations: 5.179 MB / 0.9542 GB, free: 78.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/3.52, allocations: 64.77 kB / 0.9543 GB, free: 78.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07331/3.593, allocations: 32.6 MB / 0.9861 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/3.593, allocations: 0 / 0.9861 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1248/3.718, allocations: 22.53 MB / 1.008 GB, free: 23.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004915/3.723, allocations: 1.217 MB / 1.009 GB, free: 22.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002337/3.726, allocations: 53.16 kB / 1.009 GB, free: 22.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007554/3.733, allocations: 313.6 kB / 1.01 GB, free: 22.22 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001866/3.735, allocations: 186.9 kB / 1.01 GB, free: 22.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006949/3.736, allocations: 85 kB / 1.01 GB, free: 21.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01001/3.746, allocations: 3.572 MB / 1.013 GB, free: 18.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.262e-06/3.746, allocations: 0 / 1.013 GB, free: 18.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01332/3.759, allocations: 1.921 MB / 1.015 GB, free: 16.48 MB / 458.7 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 (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.4675/4.227, allocations: 23.46 MB / 1.038 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0371/4.264, allocations: 11.18 MB / 1.049 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/4.264, allocations: 0 / 1.049 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02061/4.285, allocations: 5.184 MB / 1.054 GB, free: 99.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006974/4.292, allocations: 0.7417 MB / 1.055 GB, free: 99.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06434/4.356, allocations: 18 MB / 1.072 GB, free: 95.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01404/4.37, allocations: 5.332 MB / 1.078 GB, free: 94.15 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00908/4.379, allocations: 3.43 MB / 1.081 GB, free: 91.35 MB / 458.7 MB Notification: Performance of SimCode: time 1.843e-06/4.379, allocations: 0 / 1.081 GB, free: 91.35 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.998/11.38, allocations: 350.3 MB / 1.423 GB, free: 127.1 MB / 490.7 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