Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009784/0.0009783, allocations: 173.5 kB / 8.743 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 221.5 MB / 230.7 MB, free: 7.516 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.0009132/0.0009132, allocations: 91.48 kB / 281.6 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2237/0.2237, allocations: 44.14 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.955e-05/1.958e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1332, allocations: 61.92 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4742/0.6075, allocations: 105.7 MB / 0.598 GB, free: 6.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.6078, allocations: 83.94 kB / 0.5981 GB, free: 6.531 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5849/1.193, allocations: 110.5 MB / 0.706 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.963e-06/1.193, allocations: 0 / 0.706 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006681/1.193, allocations: 106 kB / 0.7061 GB, free: 103.9 MB / 0.4948 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.02547/1.219, allocations: 6.103 MB / 0.7121 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/1.219, allocations: 22.11 kB / 0.7121 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04216/1.261, allocations: 10.14 MB / 0.722 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02653/1.288, allocations: 9.178 MB / 0.7309 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006489/1.288, allocations: 220.3 kB / 0.7312 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003048/1.292, allocations: 298.9 kB / 0.7314 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0147/1.306, allocations: 6.296 MB / 0.7376 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02443/1.331, allocations: 8.892 MB / 0.7463 GB, free: 98.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005363/1.331, allocations: 60.27 kB / 0.7463 GB, free: 98.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0021/1.333, allocations: 17.12 kB / 0.7463 GB, free: 98.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001598/1.335, allocations: 0.9984 MB / 0.7473 GB, free: 98.88 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06428/1.399, allocations: 42.94 MB / 0.7893 GB, free: 72.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007125/1.407, allocations: 5.696 MB / 0.7948 GB, free: 70.22 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005275/1.412, allocations: 4.858 MB / 0.7996 GB, free: 66.65 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001138/1.413, allocations: 1.122 MB / 0.8007 GB, free: 65.47 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/1.413, allocations: 64.81 kB / 0.8007 GB, free: 65.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=286): time 4.648e-06/1.413, allocations: 0 / 0.8007 GB, free: 65.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=415): time 0.1401/1.553, allocations: 59.6 MB / 0.8589 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.985e-05/1.553, allocations: 205.5 kB / 0.8591 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004957/1.558, allocations: 3.184 MB / 0.8622 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001081/1.559, allocations: 25.7 kB / 0.8622 GB, free: 10.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001725/1.561, allocations: 3.002 MB / 0.8652 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001973/1.563, allocations: 1.378 MB / 0.8665 GB, free: 6.414 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004111/1.564, allocations: 0 / 0.8665 GB, free: 6.414 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002648/1.564, allocations: 0.5336 MB / 0.867 GB, free: 5.875 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004414/1.568, allocations: 4.252 MB / 0.8712 GB, free: 1.617 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006784/1.575, allocations: 6.265 MB / 0.8773 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007271/1.582, allocations: 5.236 MB / 0.8824 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.144e-05/1.582, allocations: 20 kB / 0.8825 GB, free: 5.223 MB / 0.5105 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.03912/1.622, allocations: 17.64 MB / 0.8997 GB, free: 3.582 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.764e-05/1.622, allocations: 37.16 kB / 0.8997 GB, free: 3.547 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.567e-05/1.622, allocations: 64 kB / 0.8998 GB, free: 3.484 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3944/2.016, allocations: 8.37 MB / 0.9079 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005453/2.022, allocations: 1.037 MB / 0.909 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0715/2.093, allocations: 45.33 MB / 0.9532 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007546/2.101, allocations: 379.9 kB / 0.9536 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001839/2.103, allocations: 279.3 kB / 0.9538 GB, free: 111.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (531): * Single equations (assignments): 526 * Array equations: 2 * 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,51.4%) 103,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.001451/2.104, allocations: 328.4 kB / 0.9542 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03209/2.136, allocations: 16.07 MB / 0.9699 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002421/2.139, allocations: 461.4 kB / 0.9703 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0341/2.173, allocations: 16.95 MB / 0.9869 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0304/2.203, allocations: 15.58 MB / 1.002 GB, free: 94.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.071e-05/2.203, allocations: 28 kB / 1.002 GB, free: 94.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001441/2.204, allocations: 19.97 kB / 1.002 GB, free: 94.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05855/2.262, allocations: 33.37 MB / 1.035 GB, free: 66.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.493e-05/2.262, allocations: 8 kB / 1.035 GB, free: 66.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002428/2.265, allocations: 449.6 kB / 1.035 GB, free: 66.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02139/2.286, allocations: 7.942 MB / 1.043 GB, free: 58.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001269/2.287, allocations: 23.42 kB / 1.043 GB, free: 58.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05414/2.342, allocations: 44.36 MB / 1.086 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0117/2.353, allocations: 9.128 MB / 1.095 GB, free: 4.48 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4619/2.815, allocations: 23.12 MB / 1.118 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/2.817, allocations: 486.3 kB / 1.118 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002307/2.82, allocations: 15.22 kB / 1.118 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004659/2.824, allocations: 292.5 kB / 1.118 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001857/2.826, allocations: 340.1 kB / 1.119 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004631/2.827, allocations: 102.9 kB / 1.119 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004307/2.831, allocations: 2.301 MB / 1.121 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.61e-07/2.831, allocations: 0 / 1.121 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01177/2.843, allocations: 1.747 MB / 1.123 GB, free: 113.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 223 * 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,(5,84.0%) 36} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.04101/2.884, allocations: 24.99 MB / 1.147 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01998/2.904, allocations: 11.64 MB / 1.159 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.348e-05/2.904, allocations: 3.875 kB / 1.159 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01262/2.916, allocations: 6.726 MB / 1.165 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00513/2.922, allocations: 0.6157 MB / 1.166 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03127/2.953, allocations: 14.85 MB / 1.18 GB, free: 96.04 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005103/2.958, allocations: 4.291 MB / 1.184 GB, free: 94.62 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005763/2.964, allocations: 1.628 MB / 1.186 GB, free: 94.58 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004834/2.969, allocations: 2.59 MB / 1.189 GB, free: 92.43 MB / 0.5261 GB Notification: Performance of SimCode: time 9.82e-07/2.969, allocations: 0 / 1.189 GB, free: 92.43 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6006/3.569, allocations: 152.4 MB / 1.337 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/3.57, allocations: 154.5 kB / 1.338 GB, free: 116.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.09/9.66, allocations: 0 / 1.338 GB, free: 116.2 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat