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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 183.5 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0009859/0.0009859, allocations: 99.94 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09189/0.09291, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.2659, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1146/0.3806, allocations: 113.7 MB / 0.4889 GB, free: 5.066 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.3809, allocations: 84.45 kB / 0.489 GB, free: 4.984 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: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.4405/0.8214, allocations: 136.8 MB / 0.6226 GB, free: 1.457 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.8214, allocations: 8 kB / 0.6226 GB, free: 1.449 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0121/0.8335, allocations: 2.521 MB / 0.625 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01795/0.8515, allocations: 7.353 MB / 0.6322 GB, free: 7.473 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002752/0.8518, allocations: 244 kB / 0.6325 GB, free: 7.234 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001722/0.8536, allocations: 439.9 kB / 0.6329 GB, free: 6.805 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01665/0.8702, allocations: 10.76 MB / 0.6434 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1415/1.012, allocations: 15.35 MB / 0.6584 GB, free: 84.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002215/1.012, allocations: 85 kB / 0.6585 GB, free: 84.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000781/1.013, allocations: 47.16 kB / 0.6585 GB, free: 84.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001797/1.015, allocations: 1.647 MB / 0.6601 GB, free: 84.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06587/1.081, allocations: 74.68 MB / 0.7331 GB, free: 45.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00406/1.085, allocations: 3.888 MB / 0.7368 GB, free: 44.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002792/1.087, allocations: 2.976 MB / 0.7398 GB, free: 44.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01252/1.1, allocations: 10.07 MB / 0.7496 GB, free: 40.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/1.1, allocations: 68.53 kB / 0.7497 GB, free: 40.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=247): time 4.769e-06/1.1, allocations: 0 / 0.7497 GB, free: 40.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=293): time 0.1383/1.238, allocations: 40.44 MB / 0.7891 GB, free: 27.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/1.238, allocations: 160.5 kB / 0.7893 GB, free: 27.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006385/1.245, allocations: 4.418 MB / 0.7936 GB, free: 26.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005738/1.245, allocations: 25.7 kB / 0.7936 GB, free: 26.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001996/1.247, allocations: 4.511 MB / 0.798 GB, free: 22.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001202/1.249, allocations: 1.08 MB / 0.7991 GB, free: 21.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000462/1.249, allocations: 7.469 kB / 0.7991 GB, free: 21.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004043/1.249, allocations: 0.6793 MB / 0.7998 GB, free: 21.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004402/1.254, allocations: 3.838 MB / 0.8035 GB, free: 19.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006032/1.26, allocations: 9.026 MB / 0.8123 GB, free: 10.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006317/1.266, allocations: 5.749 MB / 0.8179 GB, free: 5.242 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.618e-05/1.266, allocations: 56 kB / 0.818 GB, free: 5.188 MB / 426.7 MB Warning: The linear system: 1 : bodyOfConstraint.body.frame_a.r_0[1] = 0.2 + 0.2148655148851041 * freeMotionScalarInit.derv[1].u + -0.5318108111446446 * freeMotionScalarInit.derv[2].u + 0.8191520442889918 * freeMotionScalarInit.derv[3].u 2 : 0.0 = 0.8191520442889918 * (-0.2 + bodyOfConstraint.body.frame_a.r_0[1]) + -0.09960050292505122 * (0.3 + bodyOfConstraint.body.frame_a.r_0[2]) + 0.5648625214636235 * (-0.2 + bodyOfConstraint.body.frame_a.r_0[3]) 3 : bodyOfConstraint.body.frame_a.r_0[2] = -0.3 + 0.9663834860128886 * freeMotionScalarInit.derv[1].u + 0.2370288965055821 * freeMotionScalarInit.derv[2].u + -0.09960050292505122 * freeMotionScalarInit.derv[3].u 4 : bodyOfConstraint.body.frame_a.r_0[3] = 0.2 + -0.1411940808771254 * freeMotionScalarInit.derv[1].u + 0.8130157214783864 * freeMotionScalarInit.derv[2].u + 0.5648625214636235 * freeMotionScalarInit.derv[3].u [ 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.body.frame_a.r_0[3] ; freeMotionScalarInit.derv[1].u ; bodyOfConstraint.body.frame_a.r_0[2] ; bodyOfConstraint.body.frame_a.r_0[1] ] = [ 0.2 + -0.5318108111446446 * freeMotionScalarInit.derv[2].u + 0.8191520442889918 * freeMotionScalarInit.derv[3].u ; -0.3066830640280385 ; -0.3 + 0.2370288965055821 * freeMotionScalarInit.derv[2].u + -0.09960050292505122 * freeMotionScalarInit.derv[3].u ; 0.2 + 0.8130157214783864 * freeMotionScalarInit.derv[2].u + 0.5648625214636235 * freeMotionScalarInit.derv[3].u ] might be structurally or numerically singular for variable bodyOfConstraint.body.frame_a.r_0[1] since U(4,4) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=1149) (initialization): time 0.196/1.462, allocations: 20.67 MB / 0.8382 GB, free: 80.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/1.462, allocations: 10.53 kB / 0.8382 GB, free: 80.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001773/1.463, allocations: 183.5 kB / 0.8384 GB, free: 80.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01577/1.478, allocations: 4.932 MB / 0.8432 GB, free: 80.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007236/1.486, allocations: 2.025 MB / 0.8452 GB, free: 80.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03877/1.524, allocations: 28.84 MB / 0.8733 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007676/1.532, allocations: 341.1 kB / 0.8737 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001011/1.533, allocations: 0.5134 MB / 0.8742 GB, free: 72.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 847 * 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 (1066): * Single equations (assignments): 1055 * 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.001592/1.535, allocations: 0.5883 MB / 0.8747 GB, free: 71.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008821/1.536, allocations: 487.4 kB / 0.8752 GB, free: 71.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06139/1.597, allocations: 14.76 MB / 0.8896 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-05/1.597, allocations: 38.75 kB / 0.8896 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.543e-05/1.597, allocations: 11 kB / 0.8897 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-05/1.597, allocations: 16.25 kB / 0.8897 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07386/1.671, allocations: 23.85 MB / 0.913 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.408e-05/1.671, allocations: 0 / 0.913 GB, free: 66.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003211/1.674, allocations: 487 kB / 0.9134 GB, free: 66.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01549/1.69, allocations: 4.685 MB / 0.918 GB, free: 65.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005407/1.69, allocations: 15.61 kB / 0.918 GB, free: 65.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03745/1.728, allocations: 28.43 MB / 0.9458 GB, free: 42.42 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.728, allocations: 4 kB / 0.9458 GB, free: 42.41 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06485/1.793, allocations: 19.77 MB / 0.9651 GB, free: 26.51 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1938/1.987, allocations: 24.79 MB / 0.9893 GB, free: 78.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/1.988, allocations: 0.4977 MB / 0.9898 GB, free: 78.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009366/1.989, allocations: 6.281 kB / 0.9898 GB, free: 78.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003195/1.992, allocations: 158.4 kB / 0.9899 GB, free: 78.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004908/1.993, allocations: 132 kB / 0.9901 GB, free: 78.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003205/1.993, allocations: 74 kB / 0.9901 GB, free: 78.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004175/1.997, allocations: 2.961 MB / 0.993 GB, free: 78.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008264/2.005, allocations: 1.636 MB / 0.9946 GB, free: 78.12 MB / 426.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 (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 {(5,60.0%) 4,(4,100.0%) 9,(4,100.0%) 9,(2,100.0%) 1,(2,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 1 {4 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008107/2.006, allocations: 217.1 kB / 0.9948 GB, free: 78.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01662/2.023, allocations: 10.24 MB / 1.005 GB, free: 77.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/2.023, allocations: 0 / 1.005 GB, free: 77.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0101/2.033, allocations: 4.625 MB / 1.009 GB, free: 76.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003314/2.036, allocations: 0.6184 MB / 1.01 GB, free: 76.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02615/2.062, allocations: 14.31 MB / 1.024 GB, free: 74.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006787/2.069, allocations: 5.509 MB / 1.029 GB, free: 73.39 MB / 426.7 MB Notification: Performance of SimCode: time 6.71e-07/2.069, allocations: 0 / 1.029 GB, free: 73.39 MB / 426.7 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)