Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.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.RevoluteConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",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.001447/0.001447, allocations: 186.9 kB / 8.136 MB, free: 2.18 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.233/1.233, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.001004/0.001004, allocations: 100 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0962/0.09724, allocations: 55.82 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.2788, allocations: 50.4 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1156/0.3944, allocations: 114.2 MB / 0.4895 GB, free: 4.559 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.3947, allocations: 87.88 kB / 0.4896 GB, free: 4.473 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: 2341 * Number of variables: 2341 Notification: Performance of Generate backend data structure: time 0.4403/0.835, allocations: 130.3 MB / 0.6168 GB, free: 7.539 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.835, allocations: 8 kB / 0.6169 GB, free: 7.531 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01205/0.8471, allocations: 2.296 MB / 0.6191 GB, free: 5.223 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/0.8664, allocations: 7.215 MB / 0.6261 GB, free: 13.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003552/0.8668, allocations: 228 kB / 0.6264 GB, free: 13.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002843/0.8697, allocations: 415.9 kB / 0.6268 GB, free: 13.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01974/0.8895, allocations: 10.32 MB / 0.6368 GB, free: 2.961 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0274/0.9169, allocations: 14.81 MB / 0.6513 GB, free: 2.855 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000314/0.9173, allocations: 79.28 kB / 0.6514 GB, free: 2.777 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001591/0.9189, allocations: 40 kB / 0.6514 GB, free: 2.738 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002291/0.9212, allocations: 1.573 MB / 0.653 GB, free: 1.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2003/1.122, allocations: 73.61 MB / 0.7248 GB, free: 56.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004993/1.127, allocations: 4.706 MB / 0.7294 GB, free: 55.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003861/1.13, allocations: 3.895 MB / 0.7332 GB, free: 55.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/1.147, allocations: 11.3 MB / 0.7443 GB, free: 50.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/1.147, allocations: 68.06 kB / 0.7443 GB, free: 50.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=266): time 6.994e-06/1.147, allocations: 0 / 0.7443 GB, free: 50.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=349): time 0.1018/1.248, allocations: 40.85 MB / 0.7842 GB, free: 36.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/1.249, allocations: 158.8 kB / 0.7844 GB, free: 36.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006389/1.255, allocations: 4.435 MB / 0.7887 GB, free: 32.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006851/1.256, allocations: 27.92 kB / 0.7887 GB, free: 32.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/1.257, allocations: 4.321 MB / 0.793 GB, free: 28.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001336/1.259, allocations: 1.257 MB / 0.7942 GB, free: 27.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005101/1.259, allocations: 2.25 kB / 0.7942 GB, free: 27.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004391/1.26, allocations: 0.7047 MB / 0.7949 GB, free: 27.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005208/1.265, allocations: 4.051 MB / 0.7988 GB, free: 23.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007912/1.273, allocations: 9.291 MB / 0.8079 GB, free: 12.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007882/1.281, allocations: 6.116 MB / 0.8139 GB, free: 7.375 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.904e-05/1.281, allocations: 56 kB / 0.8139 GB, free: 7.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.1668/1.448, allocations: 17.42 MB / 0.8309 GB, free: 84.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/1.448, allocations: 11.78 kB / 0.831 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002092/1.448, allocations: 185.4 kB / 0.8311 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01924/1.467, allocations: 5.119 MB / 0.8361 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007427/1.475, allocations: 2.015 MB / 0.8381 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04301/1.518, allocations: 33.26 MB / 0.8706 GB, free: 76.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008187/1.526, allocations: 322.2 kB / 0.8709 GB, free: 76.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001129/1.527, allocations: 0.5835 MB / 0.8715 GB, free: 76.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 62 (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],joint.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1075): * Single equations (assignments): 1064 * 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 {(3,100.0%) 38,(2,100.0%) 23,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.001361/1.528, allocations: 0.5784 MB / 0.872 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008384/1.529, allocations: 0.501 MB / 0.8725 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02214/1.551, allocations: 10.27 MB / 0.8825 GB, free: 75.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-05/1.552, allocations: 49.39 kB / 0.8826 GB, free: 75.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02035/1.572, allocations: 9.349 MB / 0.8917 GB, free: 75.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.004e-05/1.572, allocations: 13.52 kB / 0.8917 GB, free: 75.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04349/1.616, allocations: 21.73 MB / 0.913 GB, free: 67.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.707e-05/1.616, allocations: 4.828 kB / 0.913 GB, free: 67.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002694/1.618, allocations: 430.2 kB / 0.9134 GB, free: 67.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01421/1.633, allocations: 3.561 MB / 0.9168 GB, free: 66.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005261/1.633, allocations: 15.16 kB / 0.9169 GB, free: 66.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03259/1.666, allocations: 24.12 MB / 0.9404 GB, free: 49.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01455/1.68, allocations: 10.66 MB / 0.9508 GB, free: 39.31 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0258/1.706, allocations: 14.6 MB / 0.9651 GB, free: 26.86 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1627/1.869, allocations: 19.55 MB / 0.9842 GB, free: 81.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/1.87, allocations: 0.52 MB / 0.9847 GB, free: 81.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001193/1.871, allocations: 12.12 kB / 0.9847 GB, free: 81.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003312/1.875, allocations: 115.7 kB / 0.9848 GB, free: 81.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005888/1.875, allocations: 155.9 kB / 0.985 GB, free: 81.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003648/1.876, allocations: 93.59 kB / 0.985 GB, free: 81.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004431/1.88, allocations: 2.991 MB / 0.988 GB, free: 80.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00953/1.89, allocations: 1.741 MB / 0.9897 GB, free: 80.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,joint.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 207 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(3,100.0%) 35,(3,100.0%) 25} * Non-linear torn systems: 1 {3 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/1.891, allocations: 221.4 kB / 0.9899 GB, free: 80.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01406/1.905, allocations: 10.16 MB / 0.9998 GB, free: 80.08 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.905, allocations: 5.047 kB / 0.9998 GB, free: 80.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005563/1.911, allocations: 3.926 MB / 1.004 GB, free: 79.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003499/1.914, allocations: 0.6242 MB / 1.004 GB, free: 79.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02515/1.939, allocations: 13.49 MB / 1.017 GB, free: 77.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007511/1.947, allocations: 5.412 MB / 1.023 GB, free: 76.19 MB / 426.7 MB Notification: Performance of SimCode: time 8.91e-07/1.947, allocations: 0 / 1.023 GB, free: 76.19 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1)