Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001015/0.001016, allocations: 101 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009515/0.0009515, allocations: 199.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2307/0.2307, allocations: 45.92 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004177/0.0004179, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1504, allocations: 63.46 MB / 481.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.3974/0.5478, allocations: 71.28 MB / 0.5398 GB, free: 3.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04955/0.5975, allocations: 16.54 MB / 0.556 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02588/0.6234, allocations: 377 kB / 0.5564 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01524/0.6387, allocations: 3.573 MB / 0.5598 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04075/0.6795, allocations: 10.35 MB / 0.57 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008002/0.6875, allocations: 1.127 MB / 0.5711 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.1388/0.8263, allocations: 95.13 MB / 0.664 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01068/0.8371, allocations: 7.001 MB / 0.6708 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003787/0.8409, allocations: 1.717 MB / 0.6725 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003567/0.8445, allocations: 2.037 MB / 0.6745 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007477/0.8453, allocations: 184 kB / 0.6746 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.8474, allocations: 0.8038 MB / 0.6754 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002238/0.8496, allocations: 2.287 MB / 0.6776 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.8511, allocations: 1.084 MB / 0.6787 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.009097/0.8602, allocations: 7.329 MB / 0.6859 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.8602, allocations: 0 / 0.6859 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.046e-06/0.8602, allocations: 0 / 0.6859 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0002939/0.8605, allocations: 0 / 0.6859 GB, free: 5.922 MB / 0.5137 GB 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.01846/0.879, allocations: 6.768 MB / 0.6925 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.8791, allocations: 12.02 kB / 0.6925 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002844/0.8819, allocations: 0.7308 MB / 0.6932 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0714/0.9533, allocations: 12.15 MB / 0.7051 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3024/1.256, allocations: 5.669 MB / 0.7106 GB, free: 189.6 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004508/1.256, allocations: 318.3 kB / 0.7109 GB, free: 189.5 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001961/1.258, allocations: 416.9 kB / 0.7113 GB, free: 189.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0292/1.287, allocations: 11.02 MB / 0.7221 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002775/1.288, allocations: 58.02 kB / 0.7221 GB, free: 185.1 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005277/1.288, allocations: 185.3 kB / 0.7223 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003458/1.292, allocations: 1.725 MB / 0.724 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02405/1.316, allocations: 9.315 MB / 0.7331 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05804/1.374, allocations: 44.71 MB / 0.7767 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02059/1.395, allocations: 7.95 MB / 0.7845 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01799/1.413, allocations: 12.82 MB / 0.797 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/1.413, allocations: 64.8 kB / 0.7971 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=283): time 4.469e-06/1.413, allocations: 0 / 0.7971 GB, free: 114.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=406): time 0.2182/1.631, allocations: 76.92 MB / 0.8722 GB, free: 37.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01382/1.645, allocations: 11.37 MB / 0.8833 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007771/1.653, allocations: 4.795 MB / 0.888 GB, free: 21.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001717/1.654, allocations: 90.8 kB / 0.8881 GB, free: 21.36 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002313/1.657, allocations: 2.97 MB / 0.891 GB, free: 18.39 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002233/1.659, allocations: 1.408 MB / 0.8924 GB, free: 16.99 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004591/1.659, allocations: 108 kB / 0.8925 GB, free: 16.89 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002955/1.66, allocations: 0.5337 MB / 0.893 GB, free: 16.35 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005173/1.665, allocations: 4.63 MB / 0.8975 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005736/1.671, allocations: 6.641 MB / 0.904 GB, free: 4.137 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2914/1.962, allocations: 5.59 MB / 0.9094 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-05/1.962, allocations: 19.66 kB / 0.9095 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.04484/2.007, allocations: 18.98 MB / 0.928 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.43e-05/2.007, allocations: 30.78 kB / 0.928 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.881e-05/2.007, allocations: 68.53 kB / 0.9281 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02301/2.03, allocations: 8.795 MB / 0.9367 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00406/2.034, allocations: 1.014 MB / 0.9377 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06141/2.096, allocations: 52.23 MB / 0.9887 GB, free: 119.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006643/2.103, allocations: 498 kB / 0.9892 GB, free: 119.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/2.104, allocations: 282 kB / 0.9894 GB, free: 118.8 MB / 0.5294 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.004561/2.108, allocations: 2.272 MB / 0.9916 GB, free: 116.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/2.11, allocations: 479.2 kB / 0.9921 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0296/2.139, allocations: 17.94 MB / 1.01 GB, free: 98.25 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02852/2.168, allocations: 16.45 MB / 1.026 GB, free: 81.78 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.439e-05/2.168, allocations: 31.95 kB / 1.026 GB, free: 81.75 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001106/2.168, allocations: 19.92 kB / 1.026 GB, free: 81.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06511/2.233, allocations: 35.33 MB / 1.06 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.397e-05/2.233, allocations: 4 kB / 1.06 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002343/2.236, allocations: 459.8 kB / 1.061 GB, free: 45.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02205/2.258, allocations: 8.796 MB / 1.069 GB, free: 36.75 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001162/2.259, allocations: 75.98 kB / 1.069 GB, free: 36.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4198/2.679, allocations: 50.79 MB / 1.119 GB, free: 174.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01825/2.697, allocations: 10.18 MB / 1.129 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04302/2.74, allocations: 24.49 MB / 1.153 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002169/2.742, allocations: 0.5341 MB / 1.153 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00264/2.745, allocations: 74.75 kB / 1.153 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004491/2.749, allocations: 387.4 kB / 1.154 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001553/2.751, allocations: 328.3 kB / 1.154 GB, free: 163.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003553/2.751, allocations: 102.2 kB / 1.154 GB, free: 163.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005318/2.757, allocations: 3.199 MB / 1.157 GB, free: 162 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/2.757, allocations: 1.594 kB / 1.157 GB, free: 162 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008292/2.765, allocations: 2.011 MB / 1.159 GB, free: 160.8 MB / 0.545 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.0412/2.806, allocations: 25.92 MB / 1.185 GB, free: 137.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02025/2.827, allocations: 12.61 MB / 1.197 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/2.827, allocations: 0 / 1.197 GB, free: 124.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.012/2.839, allocations: 7.194 MB / 1.204 GB, free: 117.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004517/2.843, allocations: 0.739 MB / 1.205 GB, free: 116.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04699/2.89, allocations: 68.31 MB / 1.271 GB, free: 46.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/2.894, allocations: 4.272 MB / 1.276 GB, free: 41.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004501/2.899, allocations: 1.618 MB / 1.277 GB, free: 40.18 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003522/2.903, allocations: 2.628 MB / 1.28 GB, free: 37.55 MB / 0.545 GB Notification: Performance of SimCode: time 1.673e-06/2.903, allocations: 0 / 1.28 GB, free: 37.55 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5175/3.42, allocations: 164.2 MB / 1.44 GB, free: 76.91 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001459/3.42, allocations: 228.6 kB / 1.44 GB, free: 76.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.583/9.003, allocations: 7.75 kB / 1.44 GB, free: 76.66 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat