Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",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.001339/0.001339, allocations: 176.9 kB / 16.72 MB, free: 4.961 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.363/1.363, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0007239/0.0007242, allocations: 85.41 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.318/0.318, allocations: 43.56 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004056/0.0004059, allocations: 20 kB / 432.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1189, allocations: 58.84 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.2738/0.3928, allocations: 75.72 MB / 0.5534 GB, free: 12.32 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03949/0.4323, allocations: 15.73 MB / 0.5687 GB, free: 1.582 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01758/0.45, allocations: 380 kB / 0.5691 GB, free: 1.52 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01459/0.4646, allocations: 3.809 MB / 0.5728 GB, free: 160 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03366/0.4983, allocations: 11.41 MB / 0.5839 GB, free: 10.06 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006005/0.5043, allocations: 1.189 MB / 0.5851 GB, free: 9.309 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07697/0.5813, allocations: 65.11 MB / 0.6487 GB, free: 8.473 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01049/0.5918, allocations: 7.582 MB / 0.6561 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00435/0.5962, allocations: 2.102 MB / 0.6581 GB, free: 14.7 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004396/0.6007, allocations: 2.937 MB / 0.661 GB, free: 11.76 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001019/0.6017, allocations: 184 kB / 0.6612 GB, free: 11.58 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002908/0.6046, allocations: 1.034 MB / 0.6622 GB, free: 10.54 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003167/0.6078, allocations: 2.49 MB / 0.6646 GB, free: 8.047 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003411/0.6112, allocations: 2.592 MB / 0.6672 GB, free: 5.434 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2505/0.8617, allocations: 7.398 MB / 0.6744 GB, free: 73.68 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.8618, allocations: 0 / 0.6744 GB, free: 73.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.8618, allocations: 1 kB / 0.6744 GB, free: 73.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002603/0.862, allocations: 0 / 0.6744 GB, free: 73.68 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01672/0.8788, allocations: 6.364 MB / 0.6806 GB, free: 71.25 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.8788, allocations: 9.469 kB / 0.6806 GB, free: 71.25 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002207/0.881, allocations: 0.738 MB / 0.6813 GB, free: 71.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06033/0.9414, allocations: 8.992 MB / 0.6901 GB, free: 70.73 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01572/0.9572, allocations: 7.259 MB / 0.6972 GB, free: 69.77 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000348/0.9575, allocations: 325.2 kB / 0.6975 GB, free: 69.73 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001735/0.9593, allocations: 412.3 kB / 0.6979 GB, free: 69.71 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/0.9819, allocations: 10.77 MB / 0.7084 GB, free: 67.66 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/0.9821, allocations: 65.33 kB / 0.7085 GB, free: 67.64 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004705/0.9826, allocations: 174.4 kB / 0.7086 GB, free: 67.64 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002919/0.9855, allocations: 1.728 MB / 0.7103 GB, free: 67.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01739/1.003, allocations: 9.044 MB / 0.7192 GB, free: 65.17 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05163/1.055, allocations: 44.5 MB / 0.7626 GB, free: 29.26 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/1.073, allocations: 7.667 MB / 0.7701 GB, free: 23.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004681/1.078, allocations: 5.116 MB / 0.7751 GB, free: 20.44 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01528/1.093, allocations: 12.75 MB / 0.7876 GB, free: 9.555 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/1.093, allocations: 68.8 kB / 0.7876 GB, free: 9.477 MB / 490.7 MB Notification: Performance of pre-optimization done (n=283): time 5.21e-06/1.093, allocations: 0 / 0.7876 GB, free: 9.477 MB / 490.7 MB Notification: Performance of matching and sorting (n=406): time 0.23/1.323, allocations: 75.88 MB / 0.8617 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01635/1.34, allocations: 10.96 MB / 0.8724 GB, free: 2.641 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00813/1.348, allocations: 4.356 MB / 0.8767 GB, free: 14.29 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001188/1.349, allocations: 89.7 kB / 0.8768 GB, free: 14.2 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002311/1.351, allocations: 2.973 MB / 0.8797 GB, free: 11.24 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002079/1.353, allocations: 1.4 MB / 0.881 GB, free: 9.848 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009712/1.354, allocations: 112 kB / 0.8811 GB, free: 9.738 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0004077/1.355, allocations: 0.5383 MB / 0.8817 GB, free: 9.195 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006967/1.362, allocations: 4.63 MB / 0.8862 GB, free: 4.559 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2065/1.568, allocations: 6.657 MB / 0.8927 GB, free: 224.7 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01802/1.586, allocations: 12.04 MB / 0.9044 GB, free: 220.4 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001544/1.587, allocations: 22.81 kB / 0.9045 GB, free: 220.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.0392/1.626, allocations: 18.99 MB / 0.923 GB, free: 214.6 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/1.626, allocations: 32.81 kB / 0.923 GB, free: 214.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/1.626, allocations: 64.25 kB / 0.9231 GB, free: 214.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02667/1.653, allocations: 8.788 MB / 0.9317 GB, free: 213 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00436/1.657, allocations: 1.013 MB / 0.9327 GB, free: 212.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06323/1.72, allocations: 50.25 MB / 0.9818 GB, free: 177.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006413/1.727, allocations: 0.496 MB / 0.9822 GB, free: 176.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/1.728, allocations: 281.1 kB / 0.9825 GB, free: 176.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 294 * Number of states: 0 () * Number of discrete variables: 57 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (515): * Single equations (assignments): 506 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,52.1%) 103,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.005193/1.733, allocations: 2.272 MB / 0.9847 GB, free: 174.4 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/1.735, allocations: 486.7 kB / 0.9852 GB, free: 174.1 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0339/1.769, allocations: 17.95 MB / 1.003 GB, free: 156.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03096/1.8, allocations: 16.46 MB / 1.019 GB, free: 139.7 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.919e-05/1.8, allocations: 33.06 kB / 1.019 GB, free: 139.6 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.304e-05/1.8, allocations: 19.92 kB / 1.019 GB, free: 139.6 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06131/1.861, allocations: 35.33 MB / 1.053 GB, free: 104 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.863e-05/1.862, allocations: 0 / 1.053 GB, free: 104 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002381/1.864, allocations: 455.7 kB / 1.054 GB, free: 103.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02314/1.887, allocations: 8.797 MB / 1.062 GB, free: 94.77 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001196/1.888, allocations: 72 kB / 1.062 GB, free: 94.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06053/1.949, allocations: 48.68 MB / 1.11 GB, free: 45.62 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01247/1.961, allocations: 9.746 MB / 1.119 GB, free: 35.73 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04298/2.004, allocations: 24.05 MB / 1.143 GB, free: 11.55 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2121/2.217, allocations: 1.441 MB / 1.144 GB, free: 212.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001611/2.218, allocations: 74.41 kB / 1.144 GB, free: 212.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00427/2.223, allocations: 388.4 kB / 1.145 GB, free: 212.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001778/2.224, allocations: 323.5 kB / 1.145 GB, free: 212.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003834/2.225, allocations: 101.5 kB / 1.145 GB, free: 212.9 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.005297/2.23, allocations: 2.857 MB / 1.148 GB, free: 212.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 3e-07/2.23, allocations: 0 / 1.148 GB, free: 212.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007868/2.238, allocations: 1.995 MB / 1.15 GB, free: 212.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * 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 (217): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(11,54.5%) 97,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.04071/2.279, allocations: 24.73 MB / 1.174 GB, free: 209.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02238/2.301, allocations: 12.6 MB / 1.186 GB, free: 204.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/2.301, allocations: 1.25 kB / 1.186 GB, free: 204.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0122/2.313, allocations: 7.191 MB / 1.193 GB, free: 201.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007379/2.321, allocations: 0.7945 MB / 1.194 GB, free: 200.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1082/2.429, allocations: 65.5 MB / 1.258 GB, free: 146.7 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00563/2.435, allocations: 4.171 MB / 1.262 GB, free: 142.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005093/2.44, allocations: 2.659 MB / 1.265 GB, free: 139.9 MB / 0.573 GB Notification: Performance of SimCode: time 3.487e-06/2.44, allocations: 4 kB / 1.265 GB, free: 139.9 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.7/13.14, allocations: 173.9 MB / 1.435 GB, free: 203.2 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)